Review: Head Elements

The code below shows an excellent example of the head tag in an HTML document.

HTML
<!DOCTYPE html>
<html lang="en-US">
  <head>
    <meta charset="UTF-8">
    <meta name="description" content="A short description...">
    <meta name="author" content="Your Name">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>My Way-Cool Awesome Site</title>
    <link rel="stylesheet" href="./css/style.css">
    <style>
      body {background-color: snow}
      h1 {color: purple}
    </style>
  </head>

</html>

Neat-O You can use code blocks like these in your HTML documents; be aware of the placeholder text that you’ll need to change!


html document elements head page structure