Roman Numerals in HTML Code

by Kaysha Sahai

HTML offers webmasters a number of mechanisms for specifying lists containing one or more list elements. These lists can contain either unordered information or ordered information. Ordered lists are defined by the

    tag. HTML ordered lists
      inserts regular numbers by default. Numbers can be replaced by Roman numerals by using the "type" attribute. This involves specifying the character or Roman numeral that the list should begin with, for example "i" or "I."

HTML <ol> Tag

Information listed in numerical or alphabetical order are identified as HTML ordered lists. Ordered lists are created with the use of the HTML

    tag, and the elements are defined by the HTML
  1. tag. HTML ordered lists contain information where order is emphasized and is defined in HTML as follows:
    1. Line One
    2. Line Two
    3. Line Three

HTML <li> Tag

HTML list items are defined by the

  • tag. The list items or information always appears between
  • and
  • tags. This tag is used in both ordered and unordered lists.

    The 'Type' Attribute

    The "type" attribute specifies the starting number of the first line or item of an ordered list. The starting number of a HTML ordered list usually defaults to "1." However, the value of the attribute can be changed to an integer as well as non-numeric character, including Roman numerals.

    Roman Numeral HTML Ordered List Code

    Changing the numbering to Roman numerals involves first removing the last bracket from the "

      " tag in the first line of the code. The type attribute should be should be inserted beside it by adding type= "i". To change the Roman numeral to upper case, then replace the "i" with "I". The code should therefore look like this:
      1. Line One
      2. Line Two
      3. Line Three

    About the Author

    Kaysha Sahai has been writing professionally since 2005. She is a self-published author with experience in features, business and technical writing. Sahai is also a passionate advocate for holistic wellness and holds a Bachelor of Science in business from the University of Central Florida.

    Photo Credits

    • photo_camera Hemera Technologies/ Images