How To Write a HEAD Element Properly


How To Write a HEAD Element Properly? - XHTML 1.0 Tutorials - Document Structure and Head Level Tags



The head element can not be empty. It must contain the title element, defined by the "title" tag. The head element may contain a number of other miscellaneous elements, like base, script, style, meta, link, and object elements.

Here is good head element:

  <title>My First HTML Document</title>
  <base href=" /">
  <meta name="Author" content="" />
  <meta http-equiv="Content-Type" content="text/html;
    charset=UTF-8" />
  <script type="text/javascript" src="/_local.js"" />
  <link rel="stylesheet" type="text/css" href="/_local.css" />

2007-05-12, 4416👍, 0💬