|
Posted by Chaddy2222 on 11/16/67 11:48
test@loctopus.com wrote:
> Hi everybody,
>
> What for does one need to use doctype? I did not put this tag into my
> HTML code and everything looks OK (besides that HTML-validator tells me
> that my document is not valid). Can the absence of the doctype lead to
> more significant problems?
Well, in a lot of ways yes.
The document type decleration (DTD) tells the web browser what type the
document is and what set of rules to use when displaying the website.
As an example, when a half doc type is used, that validates, it gives
the browser some clue as to how to read or pass the source code of the
page, if a half doc type is used, the browser will use quirks mode,
even if the page validates, for a site to be in standards compliant
mode, it needs the full W3C identifyer.
While a page may look ok in your web browsers in full quirks mode, you
need to make sure your pages validate so they work on other devices
such as mobile phones.
It should also be noted that my site does validate, however when I do a
re-design soon I will be transfering the DTD to a strict DTD rather
then transitional.
--
Regards Chad. http://freewebdesign.cjb.cc/
Navigation:
[Reply to this message]
|