What is bullets and numbering in HTML?
Updated: 08/02/2020 by Lists are a great way to organize sections or content on a web page. They make the user experience better by categorizing information, or grouping similar concepts or items. When using HTML, there are two types of lists: bulleted and
numbered. The following sections shows you how to create each, and changing their appearance, nesting, and format. To create a bulleted list, use the unordered list tags Example code
The example above creates a bulleted list, with three bullet points, as shown below. Example result
Tip You can also use the extended HTML code • if you want to create a bullet symbol ( • ) without creating an unordered bullet list. How to create a numbered listTo create a numbered list, use the ordered list tags Example code
The example above creates a bulleted list, with three bullet points, as shown below. Example result
Stopping and continuing a numbered listWhen creating a numbered list, you might want need to "pause" to add another object such as a bullet list, image, or paragraph. The following code creates a numbered list that goes from one to three, displays a paragraph, and then continues the numbered list using the start attribute. Example code
The start attribute can be any numerical value and tells the ordered list what number to use as the start number. Example result
Paragraph example.
How to create a bullet list in a number listYou can also put lists inside of one another, creating a sublist. This technique, called nesting, can be accomplished by starting a list after one of the list item ( Example code
Example result
Applying CSS to a bullet or numbered listThe example below shows how to apply CSS to change the image of the bullets in a list. Example code#content ul li { list-style-Type: none; padding: 0 0 4px 23px; background: url(https://www.computerhope.com/cdn/arrow.png) no-repeat left center; } In this example, which uses an external .css file, we're telling the web page to only change the bulleted items in the section. If you want all bulleted items to change, you can remove the #content in the example above. In the second line, the list-style-Type: none; tells the browser to display no bullets. In the third line, the padding: 0 0 4px 23px; is the space and indent around the bullets. In the fourth line, the background tells the browser to use an image as the bullet and where to display it.Example result
HTML lists allow web developers to group a set of related items in lists. ExampleAn unordered HTML list:
An ordered HTML list:
Try it Yourself » Unordered HTML ListAn unordered list starts with the The list items will be marked with bullets (small black circles) by default: Ordered HTML ListAn ordered list starts with the The list items will be marked with numbers by default: HTML Description ListsHTML also supports description lists. A description list is a list of terms, with a description of each term. The Example
Try it Yourself » HTML List Tags
For a complete list of all available HTML tags, visit our HTML Tag Reference. What are bullets in HTML?An unordered list in HTML, also called a bullet list in HTML, is a common type of HTML list. The other most popular choice is probably the ordered list. Unlike an ordered list, you use bullet lists in HTML to list items you don't need to list in order.
What is bullets and numbering?In bulleted lists, each paragraph begins with a bullet character. In numbered lists, each paragraph begins with an expression that includes a number or letter and a separator such as a period or parenthesis. The numbers in a numbered list are updated automatically when you add or remove paragraphs in the list.
What is numbered list in HTML?The HTML
What is a bulleted list called in HTML?
|