Re: Validations..Help!!

by "Donna M Smillie" <dms(at)zetnet.co.uk>

 Date:  Tue, 22 Feb 2000 20:28:07 -0000
 To:  <hwg-basics(at)hwg.org>
 References:  default
  todo: View Thread, Original
----- Original Message -----

> >Line 71, column 3:
> >   <br>
> >      ^
> >Error: start tag for "LI" omitted, but its declaration does not
permit
> this
>
> The <LI> element is a singleton tag, so maybe you have a closing end
tag
> </LI> at the end?

Sorry, had to come in on this - LI is one of those tags where the end
/LI tag is listed as optional in HTML 4.  So it's OK to have a /LI tag
at the end of the list item.  In fact, if you want to nest lists inside
lists it's advisable to use the corresponding /LI tags to keep
everything straight.

The validation error above must have been as a result of using a BR tag
inside a list (eg UL or OL) but outside of opening and closing LI /LI
tags.  Eg:

<ul>
<li>list item one</li>
<br>
<li>list item two</li>
</ul>

Instead, what you should do is:

<ul>
<li>list item one<br><br></li>
<li>list item two</li>
</ul>

Regards,
Donna
--
dms(at)zetnet.co.uk
Different Worlds:  http://www.users.zetnet.co.uk/dms/
Pictures of the Past, The Leslie Smith Family,
An Introduction to HTML, Copyright Considerations
Online Bookshop

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