Ordered list: Unordered list:
<ol> <ul>
<li>German</li> <li>German</li>
<li>Spanish</li> <li>Spanish</li>
<li>English</li> <li>English</li>
</ol> </ul>
Let`s look at the result:
Ordered
- German
- Spanish
- English
- German
- Spanish
- English
For all the items in the list use <li>.
Besides the ordered/unordered lists you can also employ a definition list for your HTML webpage.These are composed of two elements, the term <dt> and the definition <dd>.
Definition list
<dl>
<dt>USA</dt>
<dd>United States of America</dd>
<dt>House</dt>
<dd>A building for human habitation</dd>
<dt>Bottle</dt>
<dd>A container, typically made of glass or plastic and with a narrow neck, used for storing liquids.</dd>
</dl>
And how it looks like in any internet explorer:
- USA
- United States of America
- House
- A building for human habitation
- Bottle
- A container, typically made of glass or plastic and with a narrow neck, used for storing liquids.
No comments:
Post a Comment