How to Define a List Item in HTML

By eHow Internet Editor

Rate: (1 Ratings)

List items are the individual lines making up HTML lists. They are defined with the

  • element.

  • Instructions

    Difficulty: Easy

    Things You’ll Need:

    • Plain text editor

    Define a List Item

    Step1
    Find or insert a UL or OL element in your HTML page to hold the list items you will define. UL is for unordered (bulleted) lists, while OL is for ordered (numbered) lists.
    Step2
    Within the list element (between the opening
      and closing
    , add list items using the code below:
  • This is the list item
  • Step3
    Add any additional HTML formatting you want, such as ... for bold, within the list item.
    Step4
    Apply CSS properties such as list-style, or attributes such as TYPE to change the type of bullet used for unordered lists.

    Tips & Warnings

    • Any HTML element can be made into a list item by giving the CSS property display a value of list-item.

    Post a Comment

    POST A COMMENT

    Request a New How-To Article

    Looking for more How To information? Chances are there’s an eHow member who knows how to do what you’re looking to do. Submit an article request now!

    eHow Article: How to Define a List Item in HTML

    eHow Internet Editor

    eHow Internet Editor

    Category: Internet

    Articles: See my other articles

    Related Ads

    Internet

    Veesites
    Meet Virginia DeBolt eHow’s Internet Expert.