HTML:Minimal Structure

At a bare minimum an HTML document should contain the following

      <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
      "http://www.w3.org/TR/html4/strict.dtd">
      <html>
        <head>
            <meta name="description" content="Page Content described">
            <title>Page Title</title>
        </head>
        <body>
            ...
        </body>
      </html>
    

We should point out that most browsers will do a fair job of displaying HTML content even in the absence of a DOCTYPE declaration and a head section. While doing this may be excusable when all one seeks to do is create a simple HTML file for testing purposes it has no place in good web page design.

You may wonder why we do not mention the meta name="keywords" tag. The explanation is simple - the days of wide-eyed innocence when search engines provided search results by examining keywords offered via this specification are long gone. Today search engines use extremely sophisticated algorithms to examine and analyze full page content in order to serve up relevant search results to their users.

A few other uses for the meta tag are discussed here.

Jump To...

Colophon