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.

Numbered lists are surrounded by the <o1>…..</o1>tags (o1 stands for ordered list), and each item within the list is included in the <1i> …</1i> (list item) tag.
NOTE
In HTML, the <1i> tag is one-side; you don’t have to specify the closing tag because it’s optional.  The existence of the next <1i> (or the closing </o1> or </o1> indicates the end of that item in the list. However, for your documents to conform to the XHTML 1.0 specification, you must use a closing tag of </1i>
ordered lists are list in which each item is numbered or labeled with a counter of some kind (like letters or roman numerals). Use numbered lists only when the sequence of items on the list is relevant. Ordered lists are good for steps to follow or instructions to the readers, or when you want to rank the items is a list. If you just want to indicate the something has a number of elements that can appear in any order, use an unordered list instead.
INPUT
<p> installing your new operating system </p>
<o1>
<1i> insert the CE-ROM into your CD-ROM drive. </1i>
<1I> choose RUN, </1i>
<1i> enter the drive letter of you CD-ROM (example: D: /), followed by SETUP. EXE. </1i>
<1i> follow the prompts in the setup program .</1i>
<1i> reboot your computer after all files are installed. </1i>
<1i> cross your fingers. </1i>
</o1>

No comments:

Post a Comment