Posted The: 23/05/2008 At: 14:15
Last Edited: 04/08/2010 At: 19:04
Contents:
The ol element and ul element are used to create lists. Ol stands for ordered lists, while ul stands for unordered lists. The difference is that ordered lists are numbered, while unordered ain't. Both list-types are used together with the li element.
They are both useful to make your pages more accessible for screen readers.
<ol> <li><a href="http://www.blueboden.com/"></a></li> </ol>
The above is a list containing a single link, and shows how to use ol together with li tags. For each item you need an additional li element, example below:
<ul> <li><h3>Heading</h3></li> <li><p>Item 1</p></li> <li><p>Item 2</p></li> </ul>
Note.You are also allowed to use headings and paragraphs inside li tags, like done above.
Comments: [0]
© Brugbart Webdesign