rob ebster
last year
Robcountry asked

Does <ul> automatically generate bullet points for lists and does <ol> automatically generate numbers for lists?

Abhay Jajodia
Expert
last year
Abhay Jajodia answered

When you use the

    tag for unordered lists, the browser automatically adds bullet points (•) to each list item.

    And when you use the

      tag for ordered lists, the browser automatically numbers the list items in ascending order.

      Here's a sample for both:

      Unordered List:

      • Milk
      • Bread
      • Paper Towels
      • Apples

      This code will display the grocery items with bullet points.

      Ordered List:

      1. Milk
      2. Bread
      3. Paper Towels
      4. Apples

      This code will display the grocery items with numbers (1, 2, 3,...).

      Connection to Your Lesson:

      You've got the concept down! Just remember that

        • is used for items that don't need a specific order

          1. is for items that need to be numbered

        The

      • tag remains your trusty tool for listing each item.

        Hope this clears things up! Let me know if you have more questions or if you’d like to explore further into how you can customize lists. 😊

HTML
This question was asked as part of the Learn HTML course.