DOCTYPE and META TAGS
<!doctype HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
and
<meta http-equiv="content-type" content="application/xhtml+xml; charset=UTF-8" />
I know these are used more often then others but how do I know which ones best suit my site?
Possible List of others?
Possible better ones to suit my site?
Thanks, Regards X
OmniX
Practically a Master Poster
656 posts since Dec 2007
Reputation Points: 31
Solved Threads: 10
lio04
Junior Poster in Training
78 posts since Mar 2008
Reputation Points: 27
Solved Threads: 4
Ya I have read there are different declerations for HTML and XHTML.
But I only have HTML and on another site PHP are there any recommened ones or is it just straight forward using loose, strict, etc.
OmniX
Practically a Master Poster
656 posts since Dec 2007
Reputation Points: 31
Solved Threads: 10
Both are required to make the page validate with the W3C. Validation is a very good way to troubleshoot a malfunctioning page. It also makes the employers happy if you can make valid pages.
That meta tag is not used to guide search engines, but to tell the browser what character set to use. It is required for validation.
MidiMagic
Nearly a Senior Poster
3,319 posts since Jan 2007
Reputation Points: 730
Solved Threads: 182
Midimagic just summed up what I was going to say.
I never liked using doctypes or meta tags (the extra code) but I realized over the last week its a curcial point that you need them if you have any commerical websites as it would have to be viewable on any browser.
So I am just using strict doctype at the moment and seems to work good with both browsers at the moment.
Also allowed my CSS code to be optimized, which was my intial intent on using doctypes.
OmniX
Practically a Master Poster
656 posts since Dec 2007
Reputation Points: 31
Solved Threads: 10