The lists are almost always present with the new sites coded in XHTML strict. Indeed, they are often used to create menus. You do not perhaps aware, but the menu you see on the left of this site is a list, decorated with CSS. Do not be put off if you also talk about menus in this chapter, you will see that it is better to create menus with lists that using <br /> to skip lines. The lists can be better understood by those who use special browsers, and the record is identical to the graphical browsers. You have nothing to be afraid to use them. We will now see what are the three types of lists available:
The bulleted lists unordered: these lists are the smart base.
The bulleted lists ordered the chips have a number and are ordered.
The list of definitions: they do not have fleas, but will allow you to classify information more easily. We will see why a little lower.
The bulleted lists Unordered
The bulleted lists are not ordered primarily used in websites. Here is an example of a bulleted list (not formatting):
- Element 1
- Element 2
- Element 3
Code:
<Ul>
<Li> Element 1 </ li>
<Li> Element 2 </ li>
<Li> Element 3 </ li>
</ Ul>
The number of items you can make is unlimited. Here is the XHTML code for the example above:
As you can see, we start the list by tag <ul> each element is surrounded by tags <li>, and then closes the list with </ ul>. Note that you can not save as text or tags outside <li> tags. I do not want to see this:
Code:
<Ul>
<Strong> <li> Element 1 </ li> </ strong>
<Li> Element 2 </ li>
<Li> Element 3 </ li>
</ Ul>
Neither this:
Code:
<Ul>
Title of my list
<Li> Element 1 </ li> </ strong>
<Li> Element 2 </ li>
<Li> Element 3 </ li>
</ Ul>
Bookmarks