Home >Web Front-end >HTML Tutorial >How to cancel the dot of ul tag in html
Two methods to cancel UL list points in HTML: Use CSS to set the list-style-type attribute to none. Use HTML to set the type attribute to none or disc.
Steps to cancel UL list points in HTML
In HTML, you can easily cancel UL (unordered list ) list points. There are two methods:
Method 1: Using CSS
In CSS, you can use the list-style-type
attribute to control The style of list points. To cancel a point, set the property value to none
.
<code class="css">ul { list-style-type: none; }</code>
Method 2: Using HTML
In HTML, you can use the type
attribute to specify the type of the list point. To cancel a point, set the value of the type
attribute to none
or disc
.
<code class="html"><ul type="none"> <li>项目 1</li> <li>项目 2</li> </ul></code>
Both methods can effectively suppress dots in UL lists in HTML. Which method you choose depends on your specific needs and preferences.
The above is the detailed content of How to cancel the dot of ul tag in html. For more information, please follow other related articles on the PHP Chinese website!