/    Sign up×
Community /Pin to ProfileBookmark

Doctype Questions

New to HTML – Question:

Some of my pages have Doctype at top as:
<!DOCTYPE HTML PUBLIC “-//W3C//DTD HTML 4.0 Transitional//EN”>

Some have:
<!DOCTYPE HTML PUBLIC “-//W3C//DTD HTML 4.01 Transitional//EN”>
Followed by:
<Html>

Some have:
<html xmlns:v=”urn:schemas-microsoft-com:vml” xmlns:o=”urn:schemas-microsoft-com?office” xmlns=”http://www.w3.org/TR/REC-html40“>

Some have nothing:

Can someone explain this and what Doctype is all about.
Thanks Much

to post a comment
HTML

5 Comments(s)

Copy linkTweet thisAlerts:
@LaunchnetauthorMar 15.2006 — Thanks for the input. I will certainly look at them.

I would like someone to give me a very short description of what doctype is about and is there an easy explaination as to the different doctypes?

Thanks
Copy linkTweet thisAlerts:
@pcthugMar 15.2006 — A Document Type Declaration, or DOCTYPE, associates a particular SGML or XML document with a Document Type Definition (DTD). In the serialized form of the document, it manifests as a short string of markup that conforms to a particular syntax. A DOCTYPE is essential to the proper rendering and functioning of web documents in compliant browsers like Mozilla, IE5/Mac, and IE6/Win.

For more info see previous links
Copy linkTweet thisAlerts:
@NogDogMar 15.2006 — In overly simplistic terms, the doctype tells the client (the browser) what version of [X]HTML (or other markup type) is being used, so that the client knows how to interpret that markup. Without a doctype declaration, the client has to "guess", usually meaning it uses some default doctype. In the case of IE6, it uses its own non-standards-compliant interpretation, often refered to as "quirks mode", often making it display pages differently from other, standards-compliant browsers (i.e.: pretty much all the other modern browsers).
Copy linkTweet thisAlerts:
@LeeUMar 15.2006 — You can find a short, concise article I wrote on DOCTYPES [URL=http://www.webreference.com/html/doctype/]here[/URL] . It should help you.
×

Success!

Help @Launchnet spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.18,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...