Thursday, 5 February 2015

OUTPUT,AN ORDERED LIST WITH AN ALTERNATIVE NUMBERING STYLE AND STARTING NUMBER.

OUTPUT
 AN ORDERED LIST WITH AN ALTERNATIVE NUMBERING STYLE AND STARTING NUMBER.
As with the type attribute, you can change the value of an entry’s number at any point in a list. You do so by using the value attribute in the <1i> tag. Assigning a value in a <1i<> tag restarts numbering in the list starting with the affected entry.
Suppose that you wanted the last three items in a list of ingredients to be 10. 11, and 12 rather than 6,7 and 8. You can reset the numbering at eggs using the value attribute, as follows.
<p> cheesecake ingredients: </P>
<o1> type =”I”
<1i> quark cheese </1i>
<1i> honey </1i>
 <1i> cocoa </1i>
<1i> vanilla extract </1i>
<1i> flour </1i>
<1i> value =”10” eggs </1i>
<1i> walnuts </1i>
<1i> margarine </1i>
</o1>
NOTE

In theist section’s examples, all the attribute values are enclosed in quotation marks. Most web browsers don’t require you to use quotation marks this way, but XHTML 1.0 does.
UNNORDERED LISTS.
In unordered lists, the elements can appear in an order,. An unordered list looks just like an ordered list in HTML except that the list is care acted by u sing <u1> …. </uq> tags rather than 01. The elopements of theist are placed within <1i> tags, just as with ordered lists.
Browsers usually format unordered lists by inserting bullets or some other symbol; lynx. A text browser inserts an asterisk (*).
The following input and output example shows an unordered list. Figure 4.7 shows the results in a browser.
INPUT
<p> things I like t doing the morning; </p>
<u1>
<1i> during a cup of coffee </1i>
<1i> watch the sunrise </1i>
<1i> listen to the birds sign </1i>
<1i> hear the wind rustling through the trees </1i>
<1i> curse the construction nooses for spoiling the peaceful mood </1i>
</u1>

No comments:

Post a Comment