» - HTML"> » - HTML"> » - HTML
Có thể bạn quan tâm
Code Example
<ul type="circle"> <li>This is a list item.</li> <li>The items in this list don't need to be in order.</li> <li>This is an unordered list.</li> </ul>- This is a list item.
- The items in this list don't need to be in order.
- This is an unordered list.
Styling List Markers
The type attribute is used to tell the browser which type of list marker to apply to a list. The accepted values include disc, circle, and square. The default value applied by the browser is circle, so when no value is provided, that is the value used. List markers can also be controlled with CSS, and that is the proper way to style list markers now that the type property has been deprecated. The list-style-type CSS property will accept many different values. The values appropriate for an unordered list include the same values that were previously used with the type attribute. There are many additional values that are appropriate for use with ordered lists.
<style> .disc { list-style-type: disc; } .circle { list-style-type: circle; } .square { list-style-type: square; } </style> <ul class="disc"> <li>This is a list with disc list markers.</li> <li>The items in this list don't need to be in order.</li> <li>This is an unordered list.</li> </ul> <ul class="circle"> <li>This is a list with circle list markers.</li> <li>The items in this list don't need to be in order.</li> <li>This is an unordered list.</li> </ul> <ul class="square"> <li>This is a list with square list markers.</li> <li>The items in this list don't need to be in order.</li> <li>This is an unordered list.</li> </ul>Let’s see how the browser handles each case.
Adam WoodAdam is a technical writer who specializes in developer documentation and tutorials.Post navigation
What Does Td Colspan Have To Do With Tables In HTML?AppletsSearch HTML.com
Search for:Most Popular
- <var> HTML Tag252 views
- Using The HTML Tag To Create Inline Frames: Here's How178 views
- Input Pattern: Use It To Add Basic Data Validation In HTML5147 views
- What Does In HTML: Easy Tutorial With Code Example125 views
- What Is Doxing? (And Why Is It So Scary?): An Infographic122 views
Từ khóa » Html5 Ul Tag
-
HTML Ul Tag - W3Schools
-
- : The Unordered List Element - HTML - MDN Web Docs - Mozilla
-
HTML
- Tag - Usage, Attributes, Examples - W3docs
-
HTML
- Tag - GeeksforGeeks
-
HTML 5
- Tag
-
HTML Unordered List | HTML Bulleted List - Javatpoint
-
HTML:
- Tag - TechOnTheNet
-
HTML5
- Tag, Example Of
- Tag In Html 5 - RoseIndia.Net
-
- HTML Tag »
-
HTML -
- Tag - Tutorialspoint
-
HTML5
- Tag - HTML Doctor
-
- Tag In HTML - Scaler Topics
-
HTML: The Ul, Ol, And Li Tags - Khan Academy
-
- Tag - TutorialBrain