what goes before <body> (html header)?

This is a discussion on "what goes before <body> (html header)?" within the Starting Out section. This forum, and the thread "what goes before <body> (html header)? are both part of the Design Your Website category.



Go Back   Webforumz.com > Main Forums > Design Your Website > Starting Out

Notices


Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old Jun 30th, 2007, 20:16
Junior Member
Join Date: Mar 2007
Location: Wilts, UK
Posts: 31
Thanks: 0
Thanked 0 Times in 0 Posts
what goes before <body> (html header)?

Hi,
I'm sorry to ask this basic thing but I can't find it clearly described anywhere.
I am trying to find out what needs to go before the <body> of the html document - I know I need a DOCTYPE definition, at the moment I'm using this one, although I don't know if it's the right one to use (I have seen things recommending HTML 4.0 strict instead) -
<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

Then the <html> tag

Then within the <head> bit I've got <title> and this ...
<link rel="stylesheet" type="text/css" href="web1.css"/>

<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />

the meta bit was copied and pasted from advice in another thread, I have read that there are other ways of doing this bit but nothing that has been clear enough for my brain! Should there be more meta bits? I haven't added this (the meta bit) all my pages yet and I want to do everything at once rather than have to keep changing them all!
My site is at http://www.northwiltsholidayclub.org.uk/

I am still working on it, it's my first try. I would welcome any advice on DOCTYPE as well as the meta stuff. Does anyone know a good basic tutorial for this?
Thanks
Reply With Quote

  #2 (permalink)  
Old Jun 30th, 2007, 21:11
SuperMember

SuperMember
Join Date: Sep 2006
Location: Pink House
Posts: 3,946
Thanks: 0
Thanked 0 Times in 0 Posts
Re: what goes before <body> (html header)?

Yeah what you have now is so far so good. You can use the XHTML strict doc type because you are coding in xhtml!

Other meta tags can be keywords, descriptions, robots info.
Here is a good link full of info!http://searchenginewatch.com/showPage.html?page=2167931
Reply With Quote
Reply

Tags
doctype, html header

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Hello every body Syed Zaeem Introduce Yourself 6 Sep 25th, 2007 16:06
hello every body littlepeg Introduce Yourself 8 Jul 4th, 2007 01:08
Hello Every Body setty Introduce Yourself 1 Jul 12th, 2006 14:29
Hi every body matelo Introduce Yourself 4 Jan 18th, 2006 02:38


All times are GMT. The time now is 21:00.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43