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 UTC

This archive was generated by hypermail 2.3.1 : Friday, 17 August 2018 18:36:05 UTC