Show Updated on February 20, 2020 The HTML language supports three different types of list. By default, they use standard tags and render in standard ways, although a more elaborate styling for any of these elements generally requires a style sheet. Three Types of Lists in HTMLHTML offers three use cases for listing content on a page.
Lists in GeneralWith lists, all items are paired with opening and closing tags. These pairs govern both the list-type markers and the individual list-item elements. Ordered ListsUse the
The HTML looks like this:
And the result looks like this:
Unordered ListsUse the
The HTML looks like this:
And the result looks like this:
Definition ListsDefinition lists create a list with two parts to each entry: the name or term to be defined and the definition. Use to create the list and use to specify the term andThe HTML looks like this: Cat Cute four-legged animal. Internet Online community optimized for cat photos. And the result looks like this: Which type of a list is called an unordered list?An unordered list typically is a bulleted list of items.
Which list is also known as ordered list in HTML?Ordered HTML List. An ordered list starts with the <ol> tag. Each list item starts with the <li> tag.
What is an ordered list with example?An ordered list uses numbers or some sort of notation that indicates a series of items. For example, an ordered list can start with number 1, and continue through 2, 3, 4, and so on. Your ordered list can also start with the letter A and go through B, C, D, and so on.
|