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.
'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.