Html BASICS (4): html Basics

Source: Internet
Author: User

Html BASICS (4): html Basics
We have prepared tables and lists for you today.

1. The webpage contains tables with various types of data.

(1) label meaning

<Table> ---------------------- start table
<Caption> </caption> ------- table title
<Tr> -------------------- line start label
<Th> </th> ----------- Header
<Tb> </tb> ----------- Cell
</Tr> ------------------- row end label
</Table> --------------------- end of the table

(2) Table Styles

The cellpadding attribute sets the distance between the cell border and the cell content.
The cellspacing attribute sets the distance between cells.
Border attribute indicates border
Width: Set the table width.
Height: Set the height of the table. [Note]: it is better to write the attribute high to table so that it can be automatically opened. However, this can give tr the required height for each row.

Code

 

<Html> Effect

 

Ii. unordered list

<Ul> unordered list attributes:
<Li> </li> (type attribute) <ul type = "dise"> (it is the attribute of a small black spot on the front of the unordered list)
</Ul> disc (solid circle) circle (hollow circle) square (square)

Code

<Html> Effect

 

3. ordered list

Ordered list:
<Ol> ordered list attributes:
<Li> </li> (type attribute) <ol type = "1">
</Ol> 1 (by number 1.2.3... Down) A (by uppercase letter A. B. C... Down) a (by lowercase letter. B. C... sort down)
I (sort the upper-case roman numerals I, ii, iii... down)
(Start attribute) <ol start = "2"> (it indicates that the ordered list does not start from 1 by default and starts from 2)

Code
<Html> The effect is based on A, B, C... the three types can only be written down.

 

Related Article

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.