HTML Learning Form

Source: Internet
Author: User

HTML Build Table:

§ Use tables to divide the layout of pages

Format: <table>. </table>

<table>

<tr><td> a row of data in a table </td></tr> <!--row of data in a table--

<tr><td> two rows of data in a table </td></tr> <!--row of data in a table--

<tr><td> three rows of data in a table </td></tr> <!--row of data in a table--

</table>

The test examples are as follows:


Properties of the <table> tag:

Border setting table borders

Caption setting table headings

Align setting the layout of a table in a Web page

Width setting table widths

Height Set Table Heights

CellSpacing set the distance between cells in a table

cellpadding set the spacing between cells inside and text

BorderColor Set table border color

Bordercolorlight Setting the table glossy color

Bordercolordark set table Dark face color

The test procedure is as follows:



<tr> Label Properties: bgcolor sets the background color.   Align sets the line alignment. valign to set cell vertical alignment

The test procedure is as follows:


Properties of <td> and <th> tags:

bgcolor setting the background color of the unit

RowSpan to set the number of rows that the cell occupies

colspan sets the number of columns that the cell occupies

Align Setting the alignment

valign to set cell vertical alignment

Width setting cell widths

Height Set Cell Heights

The test procedure is as follows:





HTML Learning Form

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.