Nobody's perfect, but when you're a web developer it sometimes seems that the whole world expects you to be. "DOCTYPE confusion.Completely missing, incorrect, or in the wrong place. I have seen HTML 4.0 Transitional used in documents containing XHTML markup as well as in documents, DOCTYPE declarations appearing after the opening tag, and incomplete DOCTYPES.
Why? Two reasons. First, it’s required, as stated in the W3C HTML 4.01 spec as well as in the W3C XHTML 1.0 spec. Second, modern web browsers use the specified DOCTYPE to decide which
One thing I like about the upcoming XHTML 2 is the way it handles headings. Anyone who ever touched HTML knows a heading is written as <h1>...</h1>, <h2>...</h2> and so on. This goes down to "h6" and indicates the level (importance) of the heading. It is always good to start with h1, and then go down, so that you won't have a document with an h3 where there is no h2, and so on (ISO-HTML even makes this mandatory).
If you ever need more than 6 levels of headings, you've hit a limit in HTML. But there was another problem as
HTML, short for Hypertext Markup Language, is the predominant markup language for web pages. It provides a means to describe the structure of text-based information in a document — by denoting certain text as headings, paragraphs, lists, and so on — and to supplement that text with interactive forms, embedded images, and other objects. HTML is written in the form of labels (known as tags), surrounded by less-than (<) and greater-than signs (>). HTML can also describe, to some degree, the appearance and semantics of a document, and can include