Home > Web Front-end > HTML Tutorial > How to remove list item symbols in HTML

How to remove list item symbols in HTML

青灯夜游
Release: 2021-06-08 17:59:22
Original
10410 people have browsed it

In HTML, you can remove the list item symbol by adding the "list-style-type:none;" style in the list tag (ul, ol) using the style attribute. The list-style-type attribute can set the type of list item markup. When the value is set to "none", the list item markup can be removed.

How to remove list item symbols in HTML

The operating environment of this tutorial: Windows 7 system, CSS3&&HTML5 version, Dell G3 computer.

In HTML, there are two types of lists:

  • Unordered listul - List items are marked with special graphics (such as small black dots, small boxes, etc.)

  • Ordered listol - List items are marked with numbers or letters

<p>无序列表实例:</p>
<ul>
  <li>Coffee</li>
  <li>Tea</li>
  <li>Coca Cola</li>
</ul>

<p>有序列表实例:</p>
<ol>
  <li>Coffee</li>
  <li>Tea</li>
  <li>Coca Cola</li>
</ol>
Copy after login

Rendering:

How to remove list item symbols in HTML

What should I do if I want to remove the list item symbols?

In fact, it is very simple. In the list tag (ul, ol), use the style attribute to add the "list-style-type:none;" style.

<p>无序列表实例:</p>
<ul style="list-style-type:none;">
  <li>Coffee</li>
  <li>Tea</li>
  <li>Coca Cola</li>
</ul>

<p>有序列表实例:</p>
<ol style="list-style-type:none;">
  <li>Coffee</li>
  <li>Tea</li>
  <li>Coca Cola</li>
</ol>
Copy after login

Rendering:

How to remove list item symbols in HTML

(Learning video sharing: css video tutorial)

The above is the detailed content of How to remove list item symbols in HTML. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template