编程知识 cdmana.com

Front end learning notes list tags of common HTML tags

[HTML List of commonly used tags ]()

The use of list tags , It's the text used to arrange phrases .

1. Unordered list

In unordered list , There is no order level between list items , It usually prefixes each list item with a bullet .

Set the type of unordered list —type
The default symbol for unordered lists is dot (● ). <ul> Elements have type attribute , By defining different type Property can change the bullet of the list . at present ,type The attribute values of an attribute are :disc( round ●)、circle( circle ○ )、square( square ■ )

To define an unordered list, use <ul> Labels and <li> label , For example, next :

image

   The web page shows  

image

2. Ordered list

Items in an ordered list start with numbers or letters , through There is often a sequence between the items

By default , The ordinal number of an ordered list is numeric , adopt type Property can adjust the type of ordinal number  

The definition has a sequence table Use <ol> label <li> label , For example, next

image

The web page shows

image

3.<li> label

<li> Tag definition list items .

<li> Tags can be used in ordered lists (<ol>) And unordered lists (<ul>) in . example :

image

The web page shows

image

4.<dl> label

<dl> The tag defines the list of definitions (definition list).

<dl> The label is used to combine <dt>( Define the items in the list ) and <dd>( Describe the items in the list )

5.<dt> label

<dt> The tag defines the item that defines the list ( Existing terms ).

6.<dd> label

<dd> Define the definition part of an entry in the definition list .

image

The web page shows

image

版权声明
本文为[Front sweeper]所创,转载请带上原文链接,感谢
https://cdmana.com/2020/12/20201224165028630D.html

Scroll to Top