HTML (2) ordered, unordered, defined list, table

Source: Internet
Author: User

1. Unordered list
<ul>, ....... Declaring unordered lists
<li></li> list Items
</ul>

For example:



<title> such as </title>

<body>
<ul>
<li> first step: Clean face </li>
<li> Part II: Coated toner </li>
<li> Part III: Coating emulsion </li>
<li> Fourth: Apply Sunscreen </li>
</ul>
</body>

Operation Result:

    • First step: Clean the face
    •     
    • Part II: Toning Toner
    •     
    • Part III: Coating emulsion
    •     
    • Fourth: Apply Sunscreen

Supplemental: Type attribute: Circle (hollow Circle), Square (entity Foncem), solid Foncem by default
2. Ordered list
<ol>, ..... Declaring an ordered list
<li></li> list Items
</ol>

For example:

 



<title> such as </title>

<body>
<ol >
<li> Pre-coated foundation and sunscreen </li>
<li> pre-applied sunscreen and coating Foundation </li>
</ol>
</body>

Operation Result:

    1. Apply the foundation and apply sunscreen first
    2. Apply sunscreen and apply the foundation first

Supplemental: Type attribute: 1,a,a


3. Define a list--and express an explanation or description of a noun or concept
<dl> Declaration definition List
<dt></dt> List item Content Declaration
<dd></dd> List Item Contents
</dl>

For example:

  



<title> such as </title>

<body>
<dl>
<dt>cpb</dt>
<dd> Japan High-end skincare brand </dd>
<dt> Snowflake Show </dt>
<dd> Korea high-end skincare brand </dd>
</dl>
</body>

Operation Result:

Cpb

Japan's premium skincare brand

Snowflake Show

High-end skincare brand in Korea

4. Forms
<table>, ..... Table Labels ...
<tr>, ..... Row label ...
<td></td>, ..... Cell
</tr>
</table>

For example:



<title> Daily Necessities </title>

<body>
<table border= "2" >
<tr>
<td> Shower Gel </td>
<td>
<table border= "2" >
<tr>
<td> Dove </td>
<td> Lux </td>
<td> Johnson </td>
</tr>
<tr>
<td> Six Gods </td>
<td> Good Skin </td>
<td> Nivea </td>
</tr>
</table>
</td>
</tr>
<tr>
<td> Lipstick </td>
<td>
<table border= "2" >
<tr>
<td> Givenchy </td>
<td>MAC</td>
<td> Chanel </td>
</tr>
<tr>
<td> IELTS </td>
<td> Yves Saint Laurent </td>
<td> Dior </td>
</tr>
</table>
</td>
</tr>
</table>

</body>

Run results

Shower gel
Dove Wrestlers Johnson
Six gods Soothing good Nivea
Lipstick
Givenchy Mac Chanel
Ielts Saint Laurent Dior


Table property: Align:left: Left Align Center: center Align Right: align Valign:top: top align Middle: center Align Bottom: Low end alignment Baseline: baseline alignment
Callspacing: The distance between cells and cells
CellPadding: The distance between cell boundaries and cell text
Bgcolo: Background color
TD Properties: Colspan: Indicates that this cell occupies a few blocks rowspan: cross-line

HTML (2) ordered, unordered, defined list, table

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.