Showing posts with label LIST TAGS.. Show all posts
Showing posts with label LIST TAGS.. Show all posts

Thursday, 5 February 2015

LIST TAGS.

 All the list tags have the following common elements.
·         The entire list is surrounded by the appropriate opening and closing tag for the type of list (for example, <u1>and </u1> for unordered lists, or <o1> and </o1> for ordered lists.).
·         Each list item within the list has its own tag: <dt> and <dd> for the glossary lists, and <1i> for all the other lists.
 NOTE
The closing tags for <dd> , <dt>, and <1i> were optional in HTML. To comply with XHTML 1.0 use closing tags of </dd>, </dt>.
Although the tags and the list items can be formatted any way you like in your HTML code, I prefer to arrange the taps so that the list tags are on their own lenses and watch new item starts on a new line. This way you caneasilyselect the whole lists as well as the individual elements. In other words, I find the following HTML.
<p> Dante’s divine comedy consists of three books: </p>
<u1>

<1i> the inferno <>/1i>
<1i> the purgatories </1i>
<1i> the paradise </1i>
</u1>
Easier to read than
<p> Dante’s divine comedy consists of three books: </p>
<u1> <1i> the inferno </1i><1i> the purgatories <1i> <1i> the paradise </1i> </u1>
Although both result in the same output in the browser.
NUMBERED LISTS.