How To Create Vertical Spacing Between Lists Using Html Li Tag & Css

how to create vertical spacing between lists using1list item 2item 2 sub-list 1item 2 sub-list 2
the HTML tag and CSS. I've kept in mind to keep theList item 3
code in compliance to XHTML Strict validation withThe above UL and LI tags format as expected. The
W3C standards. I validate to the Strict standardsonly bug I encounterd was with Internet Explorer 7.x
strictly to Search Engine Optimize the page. Here is aand greater is the second UL tag didn't properly have
sample of an unordered list code in plain HTML:listthe vertical spacing. So to resolve this bug in IE
item 1 list item 2item 2 sub-list 1 item 2 sub-list 2simply add margin-top to the second UL tag as so:list
List item 3item 1list item 2item 2 sub-list 1item 2 sub-list 2
The above HTML code is rendered in Mozilla browserList item 3
(i.e. Firefox 3.x and greater), IE 7.x and greater andOddly enough, there was no extra spacing with
Safari 3.2 and greater on my Vista Home Premium asFirefox 3.x and greater and Safari 3.2 and greater
follows;however, please note the html tags that arewith this last bit of code. In other words,
surrounding the inner tags. This is required for W3Cmargin-top:10px didn't have any effect with Firefox
strict validation;otherwise, you'll receive errors.list itemand Safari.