demosthenes.info

A blog by Dudley Storey on , , , , , , and anything else that strikes his fancy.

featured articles

popular favourites

The head and title tags

The head section is the sole location of the <title> tag. The title can exist nowhere else, and should be the first thing specified in our page after the basic structure has been created.

  1. <head>
  2. <title>Dudley Storey's Home Page on the Web</title>
  3. </head>

Always make the title full, unique and descriptive. If you were making a web page for a company, include the company name and the subject of the page itself in the <title>.

The one last line we will add in the <head> section of the document, is another method for telling the browser and server what kind of content is on the page. In XHTML, it looks like this:

  1. <meta http-equiv="content-type" content="text/html; charset=utf-8" />

In HTML5, it is a lot simpler:

  1. <meta charset="uft-8">

web developer guide

featured comment

by JoelB in Goodbye, JQuery Validation: HTML5 Form Errors With CSS3

what i'm reading

A Storm of Swords: A Song of Ice and Fire: Book Three
A Storm of Swords: A Song of Ice and Fire: Book Three

what i'm watching

Californication: The Third Season
Californication: The Third Season

what i'm playing

Mass Effect 3 Collector's Edition
Mass Effect 3 Collector's Edition

what i'm hearing

Dub FX
Dub FX

blogs

podcasts

no ads ever

This blog is free of advertising, and always will be.

creative commons licensed

The content of this blog is free to use in whatever way you wish under the Creative Commons license.