Re: HWG-Basics: XHTML 1.0 validation

by "Darrell King" <darrell(at)webctr.com>

 Date:  Wed, 12 Mar 2003 15:14:44 -0500
 To:  "Basic HTML" <hwg-basics(at)hwg.org>
 References:  netzero markone
  todo: View Thread, Original
Meta tags are empty elements and therefore do require the closing slash.
The space before the slash is actually a hack intended to prevent display
errors from some earlier platforms. The space is not required, but will not
interfere with validation or well-formedness in general. THe closing slash
is required for any empty element:

<meta ... />
<br/> or <br />
<hr/> or <hr />
<input ... />

...etc

D

----- Original Message -----
From: Art Zoller Wagner

It appears that you have to use " />" at the end of meta and link tags. I
think there is a space required before the "/"

This validates:
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />

<link rel="stylesheet" type="text/css" href="css/zw.css" />

HTML: hwg-basics mailing list archives, maintained by Webmasters @ IWA