W3C home > Mailing lists > Public > www-validator@w3.org > March 2003

Re: XML-compatible Empty Tags?

From: Liam Quinn <liam@htmlhelp.com>
Date: Sat, 8 Mar 2003 12:53:55 -0500 (EST)
To: Charles Walker <cewalker@visionweaver.net>
cc: www-validator@w3.org
Message-ID: <Pine.LNX.4.44.0303081252210.8453-100000@localhost.localdomain>

On Sat, 8 Mar 2003, Charles Walker wrote:

> I'm teaching Web design to my high school classes, and I ask my kids to 
> design their Web pages so that they will validate as HTML 4.01 Strict. But 
> I also am thinking in terms of forward compatibility with XHTML, so I have 
> asked them to write empty tags to be self-closing, as: <br />, <hr /> and 
> <img />.
> 
> Trouble is, These tags produce errors with the HTML 4.01 Strict Validator.

You can't mix HTML and XHTML.  You need to choose one or the other syntax.

-- 
Liam Quinn
Received on Saturday, 8 March 2003 12:54:01 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 25 April 2012 12:14:06 GMT