PDA

View Full Version : Good <head> tags (meta)


cb2004
11-21-2007, 04:46 PM
I always start a new site with this:

<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="imagetoolbar" content="no" />
<meta name="author" content="" />
<meta name="copyright" content="" />
<meta name="Description" content="" />
<meta name="Keywords" content="" />
<meta name="robots" content="all" />
<meta name="verify-v1" content="" />
<meta name="y_key" content="" />
<title></title>
<link href="css/general.css" rel="stylesheet" type="text/css" />
<link href="favicon.ico" rel="shortcut icon" />
</head>

Are there any that are not really needed or any which I should include?

Apostropartheid
11-21-2007, 04:48 PM
It's nice to have a type attribute on your favicon <link />. Set this to image/x-icon or image/vnd.microsoft.icon (the latter being more correct.)

You may also want to use name="generator"

VIPStephan
11-21-2007, 08:13 PM
<meta name="robots" content="all" />


Not necessary. Is default already. You might specify this if robots aren’t supposed to index it (content="noindex, nofollow") but better would be to scrap the whole thing and use a robots.txt file instead.


<meta name="verify-v1" content="" />
<meta name="y_key" content="" />


Useless unless you are actually using Google Webmaster Tools or Yahoo Site Explorer.