...

View Full Version : Please Help



SMIDG3T
06-18-2012, 08:15 PM
Hi, I am fairly new to HTML and CSS. I have a problem using the <li> and <ul> tags. I used the W3 Validator and this came up:

'document type does not allow element "li" here; missing one of "ul", "ol", "menu", "dir" start-tag'.

What does this mean exactly? Here is the piece of code:

'<div id= "left-side-nav">
<ul>
<li><b>Other Pages<br />on Apple</b></li>
<br />

<li><a href= "Apple.php">Main Page</a></li>
<br />

<li><a href= "iOS6.php">iOS 6</a></li>
<br />

<li><a href= "iOSVersions.php">iOS Versions</a></li>
<br />

<li><a href= "iPhone5Rumours.php">iPhone 5 Rumours</a></li>
<br />

<li><a href= "OnMyiPhone.php">What's on<br />my iPhone</a></li>
</ul>
</div>

Many thanks.

dan-dan
06-18-2012, 10:21 PM
Get rid of those <br />. They're not valid. Instead use CSS to style your unordered list:



li {
margin-bottom: 10px;
}



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum