Is there a way to group “ elements?

Have you considered nested UL’s? I believe this would validate: <UL> <LI> <UL> <LI></LI> <LI></LI> <LI></LI> </UL> </LI> <LI> <UL> <LI></LI> <LI></LI> <LI></LI> <LI></LI> <LI></LI> </UL> </LI> </UL> Your CSS trick was my first guess; too bad you can’t use that.

in

According to the XHTML Strict DTD, no, you’re allowed script, style, meta, link, object, title and base only. Transitional allows isindex as well, but still not noscript.

Why doesn’t form nested in p validate as XHTML

Look at the error messages that you get when you try that with http://validator.w3.org Apart from a warning that you haven’t specified a character encoding (and that it’s therefore assuming UTF-8), the main error is that a <p> isn’t allowed to contain non-inline content. You can either remove the <p> and </p> completely, or, move … Read more

overflow:hidden ignoring bottom padding

I prefer to use as few <div>s as possible. <div class=”container”> <p>Hello, this is text.</p> <p>Hello, this is text.</p> <p>Hello, this is text.</p> <p>Hello, this is text.</p> <p>Hello, this is text.</p> <p>Hello, this is text.</p> <p>Hello, this is text.</p> <p>Hello, this is text.</p> <p>Hello, this is text.</p> <p>Hello, this is text.</p> <p>Hello, this is text.</p> … Read more

HTML 4, HTML 5, XHTML, MIME types – the definitive resource

Contents. Terminology Languages and Serializations Specifications Browser Parsers and Content (MIME) Types Browser Support Validators and Document Type Definitions Quirks, Limited Quirks, and Standards modes. Terminology One of the difficulties of describing this is clearly that the terminology within the official specifications has changed over the years, since HTML was first introduced. What follows below … Read more

HTML5 syntax – HTML vs XHTML

The advantage of XHTML syntax is that it is XML. It can be easily parsed, understood and manipulated. The HTML syntax is a lot harder for clients to work with. Nonsense! The HTML5 spec defines how to parse HTML in a way that is relatively easy to implement, and off-the-shelf parsers are being developed that … Read more