HTML DTD - what's the point?

Possible duplicate:
What are the various doctrines in html and what do they mean?

Being quite inexperienced with certain aspects of network development (I have always focused more in the background than on the front), can anyone give me their thoughts on whether to worry about the DOCTYPE declaration made at the top of the web page?

Is the most common HTML 4.01 and should I build my web applications in accordance with this standard?

+5
source share
4 answers

(jQuery) . , DocType MSIE6 , ( , ).

+4

DOCTYPE , - . , , , W3C IETF, , quirks.

, XHTML 1.0 Transitiona l HTML 4.01. XHTML 1.0 Transitional - , XHTML, .

+3

DTD . .

DTD . ( HTML/XML). , DTD, , .

DOCTYPE - ( , HTML XML) / DTD .

, HTML (text/html) , DOCTYPE ( DOCTYPE). , Quirks HTML, , URI DTD. dtd .

, doctype XHTML 1.0 Transitional DTD URI , XHTML 1.0 Strict doctype DTD URI . , HTML5 doctype <! DOCTYPE html > IE8 + ( ). , doctype Javascript DOM ( , IE8).

, , , , & ​​lt;! DOCTYPE html > . - . HTML5. DTD HTML 4.01 DTD XHTML 1.0, HTML 4.01 XHTML 1.0 URI DTD .

HTML5, http://validator.nu/. DTD , DTD. HTML 5 , DTD, HTML5 , , .

DTD HTML 4.01 XHTML 1.0, W3C. , DTD , , , . DTD - - , . , - text/html application/xhtml + xml.

Doctype Switching:

http://www.mozilla.org/docs/web-developer/quirks/doctypes.html

http://www.opera.com/docs/specs/doctype/

http://hsivonen.iki.fi/doctype/

+2

Apart from all the good practices, the biggest reason people use DOCTYPE, such as XHTML 1.0 Transitional, is to switch the CSS window model in IE just like other browsers. This gets around a lot of frustration with the CSS layout. This is explained in more detail here: http://css.maxdesign.com.au/listamatic/about-boxmodel.htm

0
source

All Articles