Forum Moderators: open

Message Too Old, No Replies

Header tags

         

Geoffrey james

11:14 am on Oct 4, 2007 (gmt 0)

10+ Year Member



Hi All,

Can you nestle <h1> and so on tags within a <li> list and still validate as xhtml on doctype: -//W3C//DTD XHTML 1.0 Transitional//EN?

Thanks in advance.

geoffb

penders

1:01 pm on Oct 4, 2007 (gmt 0)

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



Yes, have you tried? A block level element (<h1>) inside a block level element (<li>) is OK.

The following fragment is valid (X)HTML Strict:

<div id="menu"> 
<ul>
<li><h1>Hello</h1></li>
</ul>
</div>