Insert image tag <IMG> The colorful web pages we see today are all due to the role of images. If you think back to the past, when the Internet was filled with plain text, which was very boring, you will understand the importance of images in web design. Images can be inserted into HTML pages. The commonly used image formats on web pages are JPEG and GIF: JPEG (Joint Photographic Experts Group) is a file format designed specifically for photographic images. JPEG supports millions of colors. JPEG is a lossy format, which means that some image data is lost during compression, which reduces the quality of the final file. However, the image data that is discarded is so small that it won't make a very noticeable difference in quality. Graphics Interchange Format (GIF) is a very popular format for web page images. Although it includes only 256 colors, GIF provides excellent, nearly lossless image compression. And GIF can contain transparent areas and multiple animations. It works by scanning rows of pixels horizontally to find fixed color areas to compress, and then reducing the number of pixels in the same area. Therefore, GIF is usually suitable for cartoons, graphics, logos, graphics with transparent areas, animations, etc. Inserting pictures into a page can beautify it. There is only one tag for inserting images, and that is the <img> tag. When inserting an image, it is not enough to just use the <img> tag; other attributes are required, as shown in the following table. | property | describe | src Source file of the image alt Hint text width, height Width, height border Border vspace Vertical spacing hspace Horizontal spacing align Alignment dynsrc Set the playback of the avi file loop Set the number of times the avi file is looped loopdelay Set the delay for loop playback of the avi file start Set the playback mode of the avi file lowsrc Set the low-resolution image usemap Image map image source file attributes SRC
---|
<<: CSS3 clear float method example
>>: jQuery realizes image highlighting
Copy code The code is as follows: <!--[if !IE]...
DIV background is semi-transparent, but the words ...
Table of contents 1. Background 2. Table creation...
Scenario simulation: Some domestic companies need...
After adding –subnet to Docker network Create, us...
<br />The most common mistake made by many w...
Preface When we forget the MySQL database passwor...
This article shares the specific code of JS to ac...
This article shares the specific code of JavaScri...
Preface For cost considerations, most webmasters ...
This article does not have any quibbles, it is jus...
Practice is the only way to test the truth. This ...
<br />I am very happy to participate in this...
Sorting query (order by) In e-commerce: We want t...
We all know that the underlying data structure of...