Re: XML-compatible Empty Tags?

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