Parsing HTML language (vi) List markup

Source: Internet
Author: User
Tags arabic numbers definition use definition

Parsing HTML language

Manifest markup

<OL> <LI>
<UL>
<MENU> <DIR>
<DL> <DT> <DD>
<OL> <LI>: ▲top

<OL> called sequential list tags. <LI> is used to indicate the list item.
The so-called order list is in front of each item plus 1,2,3 ... Number, also known as a numbered list.
<OL> parameter setting (commonly used):
For example: <ol type= "i" start= "4" ></ol>

Type= "I"
Set number of styles, the value of five kinds, please refer to the right table, the default for Type= "1".
Start= "4"
Set the starting number, regardless of the number of models set, its value can only be 1,2,3. and other integers, the default is start= "1".

type                     numbering style
1            Arabic numbers        1, 2, 3, ...
a            Lower alpha           A, B, C, ...
a            Upper alpha           A, B, C, ...
i            Lower roman           I, II, III, ...
i            Upper roman           I, II, III, ...
 
<LI> parameter Settings (Common):
For example: <li type= "Square" value= "4" >

Type= "Square"
Only applicable to the non-standard list, set the symbol style, its value has three kinds, such as the following, the default for Type= "disc":
A symbol is a column-entry symbol when type= "disc".
The symbol if "width=10 height=10 border=0> is a column-entry symbol when type=" circle ".
A symbol is a column-entry symbol when type= "square".
Value= "4"
Only applies to the sequential list, the number of that item is set, and the items are incremented by this as the starting number, but the previous items are unaffected and the value can only be 1,2,3. Equal integers, no default values.

Example:
HTML Source Code (source code) browser displays results
My best friends:my best friends:
<ol>
<li>michelle Wei 1.Michelle Wei
<li>michael Wan 2.Michael Wan
<li>gloria Lam 3.Gloria Lam
</ol>

<UL>: ▲top

<UL> called unordered list tags.
The so-called unordered list is in front of each item plus,, and other symbols, it is also called symbol list.
<UL> parameter setting (commonly used):
For example: <ul type= "Square" >

Type= "Square"
Set the symbol style, its value has three kinds, as follows, the default is Type= "disc":
A symbol is a column-entry symbol when type= "disc".
A symbol is a column-entry symbol when type= "circle".
A symbol is a column-entry symbol when type= "square".
Note: Since both <UL> and <LI> have type this parameter, choose one of the two as much as possible.

Example:
HTML Source Code (source code) browser displays results
My homepages:my homepages:
<ul>
<li>penpals Garden penpals Garden
<li>icq Garden ICQ Garden
<li>software City Software City
<li>creation of webpage creation of webpage
</ul>

<MENU> <DIR>: ▲top

Neither of these marks is endorsed by the consortium, and it is hoped that the users will be able to use the <ul> and <ol> generation.
<MENU> and <dir>, basically it and <ul> are the same, in some special browsers may show <ol> effect, in the older version of IE or NC Mark <DIR> does not display symbols or numbers. The use of two marks is exactly the same as <ul>.

Example:
HTML Source Code (source code) browser displays results
My homepages:my homepages:
<dir>
<li>penpals Garden penpals Garden
<li>icq Garden ICQ Garden
<li>software City Software City
<li>creation of webpage creation of webpage
</dir>

<DL> <DT> <DD>: ▲top

<DL> is called defining a manifest tag. <DT> to mark the definition entry,<dd> is used to mark the definition content.
The so-called definition list is a two-tier list of items, with no sign or number.
There are no commonly used parameters for three tags. And <DT> <DD> can be used independently, just some old browsers do not support, such as IE 3.0. Commonly used tags such as <DD> can be used to make a blank before the first word in a paragraph.

Example:
Original Code <dl>
<dt>how to use Definition List
<dd>first, you should don't place paragraph tag right after or before a list structure or between the items of a list. In cerntain contexts, use of extra paragraph tags should always to be avoided, when you realize this concept, it is quit EAS Y to write a HTML.
<dt>other things to know
<dd>we usually put only one of the definition tag following the definition Term tag, more than one DD tag isn't recommande D. Besides, unlike definition List is a nonempty tag, both definition Term and definition Description are tags.
</dl>
Show results
How to use Definition List
A list of the items of a list structure or between should not place paragraph tag right after or before. In Cerntain contexts, the use of extra paragraph tags should always to be avoided, when you realize this concept, it are quit easy To write a HTML.
Other things to know
We usually put only one definition tag following the definition Term tag, and more than one DD tag isn't recommanded. Besides, unlike definition List is a nonempty tag, both definition Term and definition Description are tags.



Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.