This article brings you a brief introduction (code examples) about serialization tags in HTML. It has certain reference value. Friends in need can refer to it. I hope it will be useful to you. Helps.
Serialization tag
1. Ordered tag--ol and li
Ordered list tag is, is a double label. Use the
<ol> <li>第一项</li> <li>第一项</li> <li>第一项</li> ... </ol>
Attributes of ordered labels--start
The start attribute is used to set the starting number of the number. The default starts from 1. This attribute can be omitted. If starting from another number, such as 2, set 'start=2' to start from a negative number.
Attributes of ordered tags--type
The type attribute is used to set the type of numbering to numbers or letters. For example, 'type=a', the number is Represented by English letters.
type=1-->表示用数字编号1,2,3... type=a-->表示用小写字母编号a,b,c... type=A-->表示用大写字母A,B,C... type=I-->表示用大写罗马数字标号I,II,III... type=i-->表示用小写罗马数字标号i,ii,iii
If you don’t want the serial number to be displayed, you can set the ol style attribute 'text-decoration: none'
Unordered tags--ul and li
The unordered list label is
You can change the symbol type by setting the type attribute. The default is a solid circle
type=disc-->实心圆 type=circle-->空心圆 type=square-->小方块
If you do not want the serial number to be displayed, you can set the style attribute of ul 'list-style-type: none'
Nested tags--dl, dt and dd
The definition list defaults to two levels, the first level of tags
nbsp;html> <meta> <title>小白</title> 水平显示菜单
The above is the entire content of this article. For knowledge about HTML, you can refer to the HTML Development Manual of the PHP Chinese website to learn.
The above is the detailed content of A brief introduction to serialization tags in HTML (code example). For more information, please follow other related articles on the PHP Chinese website!