eHow launches Android app: Get the best of eHow on the go.

How To

How to Define a List Item in HTML

Contributor
By eHow Contributing Writer
(1 Ratings)

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

  • element.

  • Difficulty: Easy
    Instructions

    Things You'll Need:

    • Plain text editor

      Define a List Item

    1. Step 1

      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.

    2. Step 2

      Within the list element (between the opening

        and closing
      , add list items using the code below:
    3. This is the list item
    4. Step 3

      Add any additional HTML formatting you want, such as ... for bold, within the list item.

    5. Step 4

      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.
    Subscribe

    Post a Comment

    Post a Comment

    Related Ads

    • Have you done this? Click here to let us know.
    I Did This
    Tags
    Get Free Internet Newsletters

    Copyright © 1999-2009 eHow, Inc. Use of this web site constitutes acceptance of the eHow Terms of Use and Privacy Policy .   en-US Portions of this page are modifications based on work created and shared by Google and used according to terms described in the Creative Commons 3.0 Attribution License. † requires javascript

    Demand Media
    eHow_eHow Technology and Electronics