...

View Full Version : DOCTYPE dilemmas.



effpeetee
04-22-2011, 01:26 PM
When I start an HTML page, Iusually have no problem with the isolated DOCTYPE for example:
<DOCTYPE HTML>
It is the <HTML hmins= > stuff that throws me. Googling shows so many (to me) confusing views, that I thought it best to come tothe real experts and ask for guidance.:D

What it the correct way to decide how to code from the top to the <BODY> tag.

Doctype
<html hmins...........................>
charset =
etc.
etc.

Frank X :thumbsup:
(Still an unknown quantity)

oracleguy
04-23-2011, 02:44 AM
This really doesn't belong in computer issues. I am moving this to the HTML forum.

effpeetee
04-23-2011, 01:46 PM
I am still looking for a definitive answer to this one. Googling is most unproductive.

Forlorn effpeetee.



perseverance pays - Dunnit?

Apostropartheid
04-23-2011, 04:01 PM
When I start an HTML page, Iusually have no problem with the isolated DOCTYPE for example:
<DOCTYPE HTML>
It is the <HTML hmins= > stuff that throws me. Googling shows so many (to me) confusing views, that I thought it best to come tothe real experts and ask for guidance.:D

What it the correct way to decide how to code from the top to the <BODY> tag.

Doctype
<html hmins...........................>
charset =
etc.
etc.

Frank X :thumbsup:
(Still an unknown quantity)

hmins isn't an attribute (or anything, really).

abduraooft
04-23-2011, 04:20 PM
Seems like Frank is talking about xmlns attribute applied on the <html> tag, when using an XHTML DOCTYPE.

The following links may help.
http://www.w3.org/TR/xhtml1/normative.html
http://en.wikipedia.org/wiki/XML_namespace

effpeetee
04-23-2011, 05:45 PM
Thank you both. What I really want to do is just to use and understand the HTML5 Doctype header. This to include charset and and language,

I usually manage to fidget something together, but it is just a case of 'Suck it and see.' Not a very satisfactory process.

Frank

Apostropartheid
04-23-2011, 06:05 PM
Thank you both. What I really want to do is just to use and understand the HTML5 Doctype header. This to include charset and and language,

I usually manage to fidget something together, but it is just a case of 'Suck it and see.' Not a very satisfactory process.

Frank

Typical HTML 4.01 document:



<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html lang="en">
<head>
<title></title>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
</head>
<body>
...
</body>
</html>


XHTML 1.0



<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title></title>
<meta http-equiv="content-type" content="application/xhtml+xml; charset=utf-8" />
</head>
<body>
...
</body>
</html>


HTML 5 (HTML flavour)



<!DOCTYPE html>
<html>
<head>
<title></title>
<meta charset="utf-8">
</head>
<body>
...
</body>
</html>


Does this make more sense?

effpeetee
04-23-2011, 08:49 PM
Thanks, I have printed it out for future use.:D

Frank



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum