MENU service case
 Website construction website design Beijing website construction high-end website production company Shangpin China
We create by embracing change
360 ° brand value__
simplified Chinese character
Simplified Chinese English

Shangpin China Joins Hands with Beisheng Internet to Create a New Chapter in Website Construction

Type: Shangpin Dynamic Learn more

Image tag of HTML

Source: Shangpin China | Type: website encyclopedia | Time: January 20, 2015
Adding appropriate pictures to the web page can enrich the web page, Website Design It is more attractive. So, how to insert images into web pages? Available Tag Inserts a picture into an HTML file< The common attributes of img>tags are as follows:
(1) Scr attribute: set the relative or absolute path of the picture.
(2) Alt attribute: set the simple text description of the image.
(3) Align attribute: sets the image alignment. The values are left, right, top, middle, and bottom.
(4) Border attribute: set the thickness of the picture border.
(5) Height property: set the height of the picture.
(6) Width property: set the width of the picture.
(7) Hspace attribute: set the horizontal spacing of the picture.
(8) Vspace attribute: set the vertical spacing of the picture.
(9) Name attribute: set the name of the picture.
(10) Usemap attribute: set the location and name of the hotspot link.
(11) Longdesc attribute: set the caption of the picture.
(12) Lowsrc attribute: set the relative or absolute position of the low resolution image.
Among the above attributes, two are most commonly used: src and alt.
The src attribute must contain an absolute path or a relative path. Pictures can be GIF files, JPEG files, or PNG files.
When browsing Web pages, it is often found that in some cases, such as due to browser reasons or network problems, pictures may not be displayed. If it is a decorative picture, it does not have much impact. If it is closely related to the content, it will affect the effect. Therefore, even if it cannot be displayed, at least tell the viewer what the picture is about. This can be done by using the alt attribute.
The width attribute and height attribute are used to specify the size of the image displayed on the page. Generally speaking, if not specified, it will be displayed in the original size. You can specify an absolute size or a relative size. The absolute size is in pixels and the relative size is in percentage.
If only one of the width attribute and height attribute is set, the browser will automatically adjust the other attribute according to the width height ratio of the image to ensure that the image is not deformed. However, if both are set, the image may be distorted.
Source Statement: This article is original or edited by Shangpin China's editors. If it needs to be reproduced, please indicate that it is from Shangpin China. The above contents (including pictures and words) are from the Internet. If there is any infringement, please contact us in time (010-60259772).
TAG label:

What if your website can increase the number of conversions and improve customer satisfaction?

Make an appointment with a professional consultant to communicate!

* Shangpin professional consultant will contact you as soon as possible

Disclaimer

Thank you very much for visiting our website. Please read all the terms of this statement carefully before you use this website.

1. Part of the content of this site comes from the network, and the copyright of some articles and pictures involved belongs to the original author. The reprint of this site is for everyone to learn and exchange, and should not be used for any commercial activities.

2. This website does not assume any form of loss or injury caused by users to themselves and others due to the use of these resources.

3. For issues not covered in this statement, please refer to relevant national laws and regulations. In case of conflict between this statement and national laws and regulations, the national laws and regulations shall prevail.

4. If it infringes your legitimate rights and interests, please contact us in time, and we will delete the relevant content at the first time!

Contact: 010-60259772
E-mail: [email protected]

Communicate with professional consultants now!

  • National Service Hotline

    400-700-4979

  • Beijing Service Hotline

    010-60259772

Please be assured to fill in the information protection
Online consultation

Disclaimer

Thank you very much for visiting our website. Please read all the terms of this statement carefully before you use this website.

1. Part of the content of this site comes from the network, and the copyright of some articles and pictures involved belongs to the original author. The reprint of this site is for everyone to learn and exchange, and should not be used for any commercial activities.

2. This website does not assume any form of loss or injury caused by users to themselves and others due to the use of these resources.

3. For issues not covered in this statement, please refer to relevant national laws and regulations. In case of conflict between this statement and national laws and regulations, the national laws and regulations shall prevail.

4. If it infringes your legitimate rights and interests, please contact us in time, and we will delete the relevant content at the first time!

Contact: 010-60259772
E-mail: [email protected]