HTML webpage image tagging _ HTML/Xhtml _ webpage Creation

Source: Internet
Author: User
Insert an Image Tag & lt; IMG & gt; today's rich web pages are all due to the role of images. Think about the past, all the web pages on the Internet are plain text pages. It's boring to know the importance of images in web page design. You can insert images into html pages. Commonly Used image formats include JPEG and GIF.
Today, we see a variety of web pages because of images. Think about the past, all the web pages on the Internet are plain text pages. It's boring to know the importance of images in web page design. You can insert images into html pages. common image formats include JPEG and GIF:
JPEG (Joint Photographic Experts Group) is a file format specially designed for photo images. JPEG supports millions of colors. JPEG is a loss-quality format, which means that some image data is lost during compression, which reduces the quality of the final file. However, image data is rarely discarded and there is no obvious difference in quality.
GIF is a popular format in web images. Although it only includes 256 colors, GIF provides excellent, almost no loss of image compression. In addition, GIF can contain transparent areas and multiple animations. It compresses a fixed color area by scanning pixel lines horizontally, and then reduces the number of pixels in the same area. Therefore, GIF is usually applicable to cartoons, images, logos, images with transparent areas, and animations.
You can insert images to beautify the page. There is only one tag for inserting an image, that is, the tag. When inserting an image, it is not enough to only use the tag. You need to use other attributes to complete the process, as shown in the following table.
The source file alt of the src image prompts the text width, height width, height border vspace Vertical spacing (in descending order) (loop) lowsrc: Set the source file attribute of the usemap image of a low-resolution image. SRC
With the src attribute, you can insert an image by specifying the path of the image source file.

  • Basic syntax

Syntax explanation
Specify the path through the src attribute, and File_name is the path of the image to be inserted. Example: 9-1.htm
Insert an image using the marked src attribute.
01
02
03
04
05 file description
Row 3 inserts an image file in JPEG format.

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.