<ul>: The Unordered List elementThe <ul> HTML element represents an unordered list of items, typically rendered as a bulleted list. Show
Lists Bring Order To Web Pages: Here’s The HTML Code To Create ThemDisclosure: 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
HTML Unordered Lists
❮ Previous
Next ❯
The HTML <ul> tag defines an unordered (bulleted) list. How to create an unordered list in HTML ?In this article, we will know how to create an unordered list in HTML. An Unordered list <ul> tag in HTML is used to define the unordered list item in an HTML document. It contains the list items <li> element. The <ul> tag requires opening and closing tags. Syntax: <ul> List of items </ul>Attribute: This tag contains two attributes which are listed below:
Note: The <ul> attributes are not supported by HTML 5. Example: This example illustrates the use of an unordered list by using the <ul> tag. HTML
Output: HTML Unordered list There are several list-type attributes that can be used with unordered list items. HTML <li> type Attribute: The <li> type attribute in HTML is used to specify the type of a list items. This attribute also defines the style of the bullet point of the list items. <li type="disc|circle|square">Attribute Values:
Note: The <li> type attribute is not supported by HTML 5. Example: This example describes the HTML Unordered List. HTML
Output: HTML Unordered list The HTML unordered list has various list item markers: Disc: It is used to set the list item marker to a bullet i.e default. Example 1: This example illustrates the use of an unordered list with a disc bullet by setting the list-style-type property to disc. HTML
Output: Unordered list with disc list item marker Circle: It is used toset the list item marker to a circle. Example 2: In this example, we have used an unordered list with a circle bullet by setting the list-style-type property to circle. HTML
Output: Unordered list with circle list item marker Square: It is used to set the list item marker to a square. Example 3: In this example, we have used an unordered list with a square bullet by setting the list-style-type property to square. HTML
Output: Unordered list with square list item marker none: It is used to set the list item marker with no mark. Example 4: This example illustrates the use of an unordered list with a no bullet by setting the list-style-type property to none. HTML
Output: Unordered list without list item marker Nested Unordered List: It is used to nest the list items i.e., list inside another list. Example: This example describes the use of the unordered list in a nested format. HTML
Output: Nested Unordered lIst Supported Browsers:
Article Tags :
HTML Web Technologies Web technologies Questions
HTML-Attributes HTML-Questions HTML-Tags Practice Tags :
HTML 10 ListsContents
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. On 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. |