HTML table markup tutorial (3): WIDTH and height attributes: WIDTH, HEIGHT_HTML/Xhtml _ webpage Creation

Source: Internet
Author: User
By default, the width and height of the table are automatically adjusted based on the content. You can also manually set the width and height of the table. Basic syntax & lt; TABLEWIDTHVALUEHEIGHTVALUE & gt; Syntax defines the WIDTH of the table through the WIDTH attribute. The HEIGHT attribute defines the HEIGHT of the table, in pixels or percentages. If the percentage is used, the table width and height are automatically adjusted based on the content by default. You can also manually set the width and height of the table.
Basic syntax

Syntax explanation

Example: 10-3.htm







Set the table width and height



The WIDTH attribute defines the WIDTH of a table. The HEIGHT attribute defines the HEIGHT of a table in pixels or percentages. If it is a percentage, it can be divided into two situations: if it is not a nested table, then the percentage is relative to the browser window; if it is a nested table, the percentage is relative to the cell width of the nested table.Set the width and height of the table.01 02 03 04 050607080910 mainstream Web Design Software11










12 13 14 15 16 17 18 19 20 21
Web image software Fireworks
Web page creation software Dreamweaver
Webpage animation software Flash

22
23
File description
The row 11th defines that the table width is 400 pixels and the height is 100 pixels.

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.