Knowledge about images and tables, links, etc. in HTML

Source: Internet
Author: User

Here is what I share in HTML about images and tables, links and other knowledge:

① Image Label

Some common properties in the tag: 1,SRC is the path attribute of the image and is an essential attribute in the IMG tag.

2,alt is the text that represents the replacement image when the image display fails.  3,border is the image of the border 4,width is the width of the image 5,height is the height of the image (note, when using width or height, do not set two at the same time, otherwise it will distort the image, set a property is relative to the proportional reduction or magnification) 6,title is a reminder message

The ②<table></table> label is the table label format:

<table>

<tr>

<td></td>

</tr>

</table>

Related properties of <table></table>:

1,border table Border 2,width table width 3,bgcolor table background color 4,cellspacing cell spacing 5,cellpadding cell padding

<tr></tr> Table Row Labels

The relevant properties are:

1,height width, 2,align the horizontal position of the content in the table is Left|right|center 3,valign the vertical position of the content in the table is Top|middle|bottom (note that there is no width attribute in the HR tab)

<td></td> table cell Labels

About the properties:

1,width the width of each cell 2,height the height of the cell 3,colspan is a cross-column merge 4,rowspan is a cross-row merge 5,align is a horizontal position

③ Link Tags <a></a>

Properties are: 1,href link address 2,target link open way, there are two common (_blank is open in a new window this link, _self is open in this window)

④ Anchor Point

1, first to declare the anchor point: <a name= "anchor name" > Content </a>

2, then use anchor point: <a href= "#锚点名" > Content </a>

The above is the internal anchor point, the following is the external anchor point

<a href= "Path # anchor name" > Content </a>.

Knowledge about images and tables, links, etc. in HTML

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.