An unordered list is enclosed between the and tag. (t/f)

Write T for True and F for False.ers of1. An unordered list is enclosed between the <u> and </u> tag.Home/ Indian/Computer Science/Write T for True and F for False.ers of1. An unordered list is enclosed between the <u> and </u> tag.

10 Lists

Ordered, Unordered & Description Lists in HTML: Definition & Examples

Lesson Transcript
Instructor: Amit Agrawal Show bio

Amit has a master's degree in computer applications and over 11 years of industry experience in the IT software domain.

In this lesson, you will learn about three different types of lists in HTML: ordered, unordered and description. You will also learn about the different attributes that can be used with each of these lists to change their structure. Updated: 09/27/2021
Create an account

<li>: The List Item element

The <li> HTML element is used to represent an item in a list. It must be contained in a parent element: an ordered list (<ol>), an unordered list (<ul>), or a menu (<menu>). In menus and unordered lists, list items are usually displayed using bullet points. In ordered lists, they are usually displayed with an ascending counter on the left, such as a number or letter.

Content categoriesNone.
Permitted contentFlow content.
Tag omissionThe end tag can be omitted if the list item is immediately followed by another <li> element, or if there is no more content in its parent element.
Permitted parentsAn <ul>, <ol>, or <menu> element. Though not a conforming usage, the obsolete <dir> can also be a parent.
Implicit ARIA rolelistitem when child of an ol, ul or menu
Permitted ARIA rolesmenuitem, menuitemcheckbox, menuitemradio, option, none, presentation, radio, separator, tab, treeitem
DOM interfaceHTMLLIElement

<ol>: The Ordered List element

The <ol> HTML element represents an ordered list of items — typically rendered as a numbered list.

Content categoriesFlow content, and if the <ol> element's children include at least one <li> element, palpable content.
Permitted contentZero or more <li>, <script> and <template> elements.
Tag omissionNone, both the starting and ending tag are mandatory.
Permitted parentsAny element that accepts flow content.
Implicit ARIA rolelist
Permitted ARIA rolesdirectory, group, listbox, menu, menubar, none, presentation, radiogroup, tablist, toolbar, tree
DOM interfaceHTMLOListElement

Lists Bring Order To Web Pages: Here’s The HTML Code To Create Them

Disclosure: Your support helps keep the site running! We earn a referral fee for some of the services we recommend on this page. Learn more

Lists are used all the time on the web. Articles, website navigation menus, and product features on e-commerce websites all make frequent use of lists – even when you can’t tell that a list is being used just by looking at the web page.

There are three types of lists you can use, and this quick guide will show you how to use each.

Contents

  • 1 Unordered Lists
  • 2 Ordered Lists
    • 2.1 Changing Numbering
      • 2.1.1 Creating a Countdown List
      • 2.1.2 Starting a List on a Specific Number
      • 2.1.3 Changing the Numbering Style
  • 3 Description Lists
  • 4 Nested Lists
  • 5 Using Lists for Menus
  • 6 Styling Lists
  • 7 Closing Thoughts
  • 8 Related Elements