W3C home > Mailing lists > Public > www-validator@w3.org > January 2005

closing slash at the end of the base HTML tag leads to an error

From: Jordan Laszlo <Laszlo.Jordan@firstdata.com>
Date: Thu, 27 Jan 2005 15:26:04 +0100
Message-ID: <C6AEDF9C69C06740855ADBF1236F814409AB27@huex01.encorus.corp>
To: <www-validator@w3.org>

I need to be conform both with HTML4.01 and XHTML.
The base element does not allow the closing tag at the end in HTML but requires it in XHTML.

<base href="xyz" /> <!-- this is correct in XHTML but wrong in HTML4.01
<base href="xyz">   <!-- wrong in XHTML, but wrong in HTML4.01

In HTML specification the closing tag for br element is forbidden as well, but according to the validator <br /> is a right HTML.

Does anyone know the answer how to resolve this problem? Or is this a bug in the valitator?

Thanks in advance,
		Laszlo Jordan

László Jordán
Senior Software Developer
Tel:             +36 (1) 8141606                   First Data International
                                                   Payments, Mobile Solutions
Fax:            +36 (1) 8141699                     1051 Budapest
E-mail:        Laszlo.Jordan@firstdata.com          Váci utca 81.
Web:           http://www.firstdata.com
Received on Friday, 28 January 2005 02:55:58 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 1 March 2016 14:17:44 UTC