10 ListsContents Show
H48: Using ol, ul and dl for lists or groups of linksImportant Information about TechniquesSee Understanding Techniques for WCAG Success Criteria for important information about the usage of these informative techniques and how they relate to the normative WCAG 2.0 success criteria. The Applicability section explains the scope of the technique, and the presence of techniques for a specific technology does not imply that the technology can be used in all situations to create content that meets WCAG 2.0. ApplicabilityHTML, XHTML This technique relates to:
<li>: The List Item elementThe <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.
<ul>: The Unordered List elementThe <ul> HTML element represents an unordered list of items, typically rendered as a bulleted list.
HTML ListsIn this tutorial you will learn how to create different types of lists in HTML. How to Make Lists in HTMLIn HTML, we can list items either in an ordered or unordered fashion. 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. Here is an example of an ordered list with students' names and marks. Ordered list of studentsOn the other hand, we have unordered lists, like a TODO list for example. Here I am so passionate about coding that I skipped my breakfast 🤓. There is one more type of list called a description list that we will learn as well below. Now let's get into a bit more detail and see how to create each type of list in HTML. Example A:This list constitutes, with its introduction and list items, a complete sentence. It is numbered to indicate a chronology of steps, with no period after the number. Each list item is lowercased, and there is no terminal punctuation. To qualify for the certificate, students must:
|