HTML Knowledge 2

Source: Internet
Author: User

1. Hyperlinks

Syntax: <a href "" target= "Open With" name= "page anchor name" > link text or Picture </a>

Property:

HREF attribute:

Role: Linked address, can be Web page, video, picture, music

Target property:

1) Role: Define how hyperlinks are opened

2) attribute value: _blank: Open link in a new window

_self: Open link in current window

_parent: Open in parent window

_top: Opens in the top-level window

Mane property: Specifies the name of the anchor point for the page

2. Picture hyperlink: Place the original text in the position

3. Basic structure of the table:

<table> Tags:

Properties: 1) Width, height, border

2) align (where the table appears): Left, right, center

3) cellspacing (spacing between cells)

4) cellpadding (distance between cell contents and cell borders)

5) frame (controls the outermost four wireframe of the table border):

Viod (None), Box (four weeks), border (four weeks)

Above (top), below (bottom), LHS (left), RHS (right)

Hside (top + bottom), vside (left + right)

6) Rules (controls whether to show split lines between cells):

All, none (none), rows (rows), Clos (columns), groups (between row and column groups)

<caption> Tags: table title

Position:<table> after,<tr>

Properties: 1) Align (title position): Top, bottom, left, right

<tr> Tags: one row of the table

Properties: 1) bgcolor (background color)

2) align (vertical alignment): Top, bottom, middle

3) valign (horizontal alignment): Left, right, center

<td> and <th> Tags: the cell tag,<th> is the header tag will be bold by default,<td> is a data marker

Properties: 1) bgcolor (background color)

2) align (vertical alignment), valign (horizontal alignment)

3) Width, height

4) rowspan (number of rows in cell), colspan (number of columns in a cell)

HTML Knowledge 2

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.