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.