HTML Basic Knowledge II

Source: Internet
Author: User

1. Page Properties:

(1) Body property

BgColor: Setting the background color

Background: Setting a background picture

If two simultaneous settings, priority reads background

Example:

(2) Notes

Explain a section of content: <!-explain Content-

Note A section of content: <!-Comment Content--

2. Forms <table></table>

<table>

<tr>----------------- defining table Rows

<td></td>----------------- defining table Columns

<td></td>

...............

</tr>

<tr>

<td></td>

<td></td>

...............

</tr>

..............

</table>

Table Properties:

border: Sets the border width by default to 0

BorderColor: Set Border color

Boedercolorlight: Sets the color of the bright portion of the border, which is useful only when border>=1

Bordercolordark: Sets the color of the dark part of the border, which is useful only when border>=1

When Boedercolorlight and Bordercolordark color want to share, vision has a bump effect

cellpadding : The amount of space between the table border and the internal content, with a default value of 2

cellspacing : Sets the amount of space between tables and table, with a default value of 2

Align: Alignment

Red Three are called: three parameters of a table.

<tr></tr> Properties:

Width: Wide

Height: High

bgcolor: Background color

Align: Set horizontal alignment (left, right, center)

valign: Set vertical alignment (top, middle, bottom)

<td></td> Properties:

Width: Wide

Height: Set height

Bgcolor: Setting the background color

Background: Setting a background picture

Align: Set horizontal alignment (left, right, center)

valign: Set vertical alignment (top, middle, bottom)

Rowspan: Merging vertically

Colspan: Horizontal Orientation Merge

The shortcut keys for merging cells in DW (Dreamweaver) are: M

3. Set the color of the table box:

Step one: Set the background color of table, do not set the border property;

Step Two: Set the background color of the TR

Step three: Set the value of cellspacing not to 0

Example:

HTML Basic Knowledge II

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.