Monday, 31 October 2011

Formatting Ordered and Unordered lists

Ordered lists, use the following types
type="1"  for list of 1, 2, 3 …
type="a" for list of  a, b, c …
type="A" for list of  A, B, C …
type="i" for list of  i, ii, iii … (lowercase Roman numerals)
type="I" for list of  I, II, III … (uppercase Roman numerals)

Unordered lists
type="disc" for list of  disc
type="circle" for list of  circle
type="square" for list of  square

The ordered list should go from one to three and then the second list from four to six. The unordered list should be squares rather then round bullets.

Sample Code:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML4.01 Strict//EN" "http://www.w3.org/TR/HTML4/strict.dtd">
<html>
    <head>
    <meta http-equiv="Content-Type"content="text/HTML; charset=UTF-8">
    <title>Lists </title>
    </head>
<body>
    <h3>a, b, c, List</h3>
    <ol type="a">
        <li>Step a.</li>
        <li>Step b.</li>
        <li>Step c.</li>
    </ol>
    <h3>The Number list.</h3>
    <ol>
        <li value="3">Step four.</li>
        <li>Step five.</li>
        <li>Step six.</li>
    </ol>
    <ul type="square">
        <li>Item one.</li>
        <li>Item two.</li>
    </ul>
</body>
</html>

steps 

No comments:

Post a Comment