WEB DEVELOPMENT

FRONT-END

BUILDING BLOCKS OF PAGE

HTML

TAGS

Element

Attributes

STRUCTURE


<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8">
    <title>Hello World</title>
  </head>
  <body>
    <h1>Hello World</h1>
    <p>This is a web page.</p>
  </body>
</html>

SELF CLOSING ELEMENTS

<br/> <embed/> <hr/>
<img/> <input/> <link/>
<meta/>

CSS REFERENCING

INLINE

<h1 style="color: red">Hello World</h1>

INFILE

<!DOCTYPE html>
<html>
  <head>
    <title>My first page!</title>
    <style>
      h1 {
        color: red;
      }    
    </style>
  </head>
  <body>
    <h1>Hello World</h1>
  </body>
</html>

REFERENCE

<!DOCTYPE html>
<html>
  <head>
    <title>My first page!</title>
    <link rel="stylesheet" href="styles-content.css">
    <link rel="stylesheet" href="styles-links.css">
  </head>
  <body>
    <h1>Hello World</h1>
  </body>
</html>

JS REFERENCING

same as css...

...but with a twist!

Q&A

THANK YOU!

WEBDEV-FE-L4 - BUILDING BLOCKS OF PAGE

By Alex Albu

WEBDEV-FE-L4 - BUILDING BLOCKS OF PAGE

  • 424