Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

WDG Validator question

Status
Not open for further replies.
I tried it in the W3C validator ( ) which, once I'd picked a doctype and encoding, found the problem right away.

You need to enclose your <li> tags within either an <ol> for an ordered (numbered) list, or a <ul> for an unordered (bullet point) list (could also use <dir> or <menu> tags, but I don't know much about them).

You can nest one <ol>/<ul> within another, which should give you the staggered effect you seen to be after, like this:

Code:
<ul>
   <li>Main Point</li>
   <li>And Another
      <ul>
         <li>little point</li>
         <li>ditto</li>
      </ul>
    </li>
   <li>Yet Another Main Point!</li>
</ul>

You can then (if you want) use CSS to define the indent and bullet to use for nested lists. -- Chris Hunt
Extra Connections Ltd
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top