How to remove list item symbols in HTML

青灯夜游
Release: 2021-06-08 17:59:22
Original
10284 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

无序列表实例:

  • Coffee
  • Tea
  • Coca Cola

有序列表实例:

  1. Coffee
  2. Tea
  3. Coca Cola
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.

无序列表实例:

  • Coffee
  • Tea
  • Coca Cola

有序列表实例:

  1. Coffee
  2. Tea
  3. Coca Cola
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
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!