Forum Moderators: open

Message Too Old, No Replies

the <lh>-tag

         

Makaveli2007

5:34 pm on Nov 25, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Is the <lh> tag an unvalid tag in html 4.01 strict? It doesnt show up in the reference of the www consortium, however it doesnt say "depreceated", either (as it says with some other tags).

I assume it's good practice sticking to only <li>-tag within lists?

If you want a header for a list do you simply place a <p>-tag or a header-tag before the list starts?

mattur

6:11 pm on Nov 25, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



The <lh> element was only proposed in the abandoned HTML3.0 spec. It never became a recommendation and did not appear in HTML3.2. So it hasn't been deprecated because it was never formally adopted. Browsers do not support it.

Use <li>'s for list items and use header tags (at the appropriate level in the document structure) to provide a heading for a list eg:

<h2>Widget Colours</h2>
<ul>
<li>Blue</li>
<li>Green</li>
</ul>

<h1>...<h6> are for headings, <p> is for paragraphs. Clue is in the name ;) HTH.

Makaveli2007

6:35 pm on Nov 25, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Thanks, actually that's just the way I did it. But good to know that's how it is supposed to be done :-)