Write a html program to demonstrate different types of ordered lists

Examples might be items in an ingredient list and their descriptions, article authors and brief bios, or competition winners and the years in which they won. Description lists Description lists previously called definition lists, but renamed in HTML5 associate specific names and values within a list.

Is the order of the list items important? Shorthand List Style Property The list style properties discussed thus far, list-style-type and list-style-position, can be combined into one shorthand list-style property value.

They are also very flexible, as either ordered or unordered lists can be nested inside either ordered or unordered list items.

html list style

Lists are good from a structural point of view as they help create a well-structured, more accessible, easy-to-maintain document.

Finally, semantically correct lists help visitors read your web site, and they simplify maintenance when your pages need to be updated.

Types of list in html with examples

Unordered lists Unordered bulleted lists are used when a set of items can be placed in any order. Chapter Two 3. They are also very flexible, as either ordered or unordered lists can be nested inside either ordered or unordered list items. Chapter Three To reflect that in the code, the entire nested list is contained inside the first list item. Description lists are flexible: you can associate more than one value with a single name, or vice versa. Nesting lists An individual list item can contain another entire list, called a nested list. Within our speakers. Introduction Lists are used to group together related pieces of information so they are clearly associated with each other and easy to read. These styles were removed by the reset at the top of our style sheet.

When using the list-style property, we can use one or all list style property values at a time. See Styling lists and links for more information.

write a html program to demonstrate different types of ordered lists
Rated 9/10 based on 37 review
Download
Lists in HTML documents