HTML: The Head Tag

0
597
HTML head tag

The <head> tag is the document head for an HTML document.

Typically, it will contain metadata type of information inside of it including <meta>, <link>, <style>, <script>, <title> and <base> tags. It does not contain anything that is part of the document, just the metadata of the document (data about data).

Previous versions of HTML allowed the use of a profile attribute that pointed to metadata profile information. This attribute is no longer supported in HTML 5.

Example Code:

  1. <!DOCTYPE html>
  2. <html>
  3.   <head>
  4.     <title>This is the Title | Kobashi Computing</title>
  5.     <meta name="author" content="Kerry Kobashi"/>
  6.     <meta name="copyright" content="&copy; 2016 Kobashi Computing"/>
  7.   </head>
  8.   <body>
  9.     <main>
  10.       <p>The head tag is a parent element for many metadata type tags</p>
  11.     </main>
  12.   </body>
  13. </html>

Of Interest