Basic HTML Version

|  | Table of Contents |  | View Full Version

Page 38 - 2607_Trackpad_Pro_5.1_flipbook_C7
P. 38

    TYPE Attribute
                     We can change the default item marking of an ordered list to letters and Roman numerals by
                     using the TYPE attribute. Syntax:  <OL TYPE = "Value">

                     The different values of the TYPE attribute are:
                       1: The items on the list will be marked in numbers.
                       A: The items on the list will be marked in uppercase letters.

                       a: The items on the list will be marked in lowercase letters.
                       i: The items on the list will be marked in lowercase Roman numerals.
                       l: The items on the list will be marked in uppercase Roman numerals.

                     To create an ordered list starting at a specific number with a custom style, use <ol type="A"
                     start="3">, which will begin the list with C and continue with uppercase letters.

                     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>

                                                                                              Lists and Tables in HTML5  37

| 33 34 35 36 37 38 39 40 41 42 43 |