HTML Learning Note 4-images

Source: Internet
Author: User

1. Set the background pattern of the Web page

Format: <body background= "URL" >

Example: <body background= "1.gif" >

2. Insert a picture into a Web page

Format:

Function: Insert a picture into a Web page, single label

3. Properties of tags

Property Name Property Value Description

Path to src URL picture

ALT string to annotate a picture

Width pixels/percent set picture widths

Height pixels/percent Set Picture heights

Border setting of the image border of a number (pixel)

Vspace pixels | Vertical and lower ends and object distance

Hspace Pixel horizontal about two segment and object distance

4. Connect the picture as a hyperlink

Format: <a href= "url" ></a>

When you connect a picture, some browsers display a border, and with the border property, the border is set to 0.

Example: <a href= "#" ></a>

5. Add an icon to your website

<link rel= "shortcut icon" href= "Favicon.ico" type= "Image/x-icon"/>

6. Map Index

Format:

<map name= "image name" id= "image name" >

<area shape= "Select the shape of a chunk" coords= "coordinates" href= "URL" alt= "text description" >

</map>

<map> declares that the entire diagram is connected using a map link.

Name,id refers to the name of this diagram.

<area> indicates that we want to link one of the areas fast

Shape represents the shapes we choose, such as rect rectangle Circle Circle Poly Polygon

Coords represents the coordinate location of the map!!

Example:

<map name= "map" id= "map" >

<area shape= "rect" coords= "9,14,183,52" href= "http://www.baidu.com"/>

<area shape= "rect" coords= "8,61,187,98" href= "http://www.youku.com"/>

<area shape= "rect" coords= "7,106,187,146" href= "#"/>

<area shape= "rect" coords= "2,151,184,190" href= "#"/>

</map>


This article is from the "Raffaele" blog, make sure to keep this source http://raffaele.blog.51cto.com/6508076/1556974

HTML Learning Note 4-images

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.