View Full Version : Please Help

06-18-2012, 09: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">
<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>

Many thanks.

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

li {
margin-bottom: 10px;