On Wed, 10 Nov 2010, cat soul wrote:
Any thoughts on which we ought to be using, and what information ought to be
up at top of an HTML page, along with <!DOCTYPE>, etc?
The first line should be a doctype. I recommend either 4.01 strict
or HTML5.
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
or
<!DOCTYPE html>
In the HEAD you need a TITLE element.
You probably also want a charset declaration, e.g.:
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
a link to a stylesheet:
<link href="body.css" rel="stylesheet" type="text/css">
a description META tag:
<meta name="description"
content="Chris F.A. Johnson's home page: Web design, Chess, Unix shell, Cryptic
Crosswords, Books">
Then the BODY.
And always check your page with <http://validator.w3.org/>.
--
Chris F.A. Johnson, <http://cfajohnson.com>
Author:
Pro Bash Programming: Scripting the GNU/Linux Shell (2009, Apress)
Shell Scripting Recipes: A Problem-Solution Approach (2005, Apress)
*******************************************************************
List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
Help: [email protected]
*******************************************************************