Page 85 - ConceptGP_C7_Fb
P. 85
Use of TYPE attribute with <OL> tag in HTML.
<!DOCTYPE html>
<HTML>
<HEAD> <TITLE> Ordered List </TITLE> </HEAD>
<BODY>
<H2> List of Fruits that Grow on Trees:</H2>
<OL Type="a">
<LI>Almonds</LI>
<LI>Apples</LI>
<LI>Cherries</LI>
<LI>Coconuts</LI>
<LI>Lychee</LI>
<LI>Oranges</LI>
<LI>Olive</LI>
<LI>Persimmons</LI>
</OL>
</BODY>
</HTML>
START Attribute
In an ordered list, the START attribute is used to set the starting value of the first list item. This
attribute always takes an integer value, even when the numbering type is letters or romans. Use
of START attribute with <OL> tag in HTML.
<!DOCTYPE html>
<HTML>
<HEAD> <TITLE>Ordered List</TITLE> </HEAD>
<BODY>
<H2> List of Fruits that Grow on Trees:</H2>
<OL Type="i" Start="4">
<LI>Almonds</LI>
<LI>Apples</LI>
<LI>Cherries</LI>
<LI>Coconuts</LI>
<LI>Lychee</LI>
<LI>Oranges</LI>
<LI>Olive</LI>
<LI>Persimmons</LI>
</OL>
</BODY>
</HTML>
Lists and Tables in HTML5 83

