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
Table of contents 1. Definition of stack 2. JS st...
Table of contents 1. parse 1.1 Rules for intercep...
MyISAM, a commonly used storage engine in MySQL c...
You must have inspiration to design a website. Goo...
Table of contents JSON appears Json structure Jso...
Table of contents 1. Initialize the array 2. Arra...
1. First create the file (cd to the directory whe...
Vue methods and properties 1. Methods Usage 1 met...
Table of contents 1. Monitoring port Relationship...
1. Background In actual projects, we will encount...
=================================================...
background Since I was assigned to a new project ...
Today, when I searched for a page on Baidu, becaus...
Preface Under Linux, compilation and linking requ...
This is a cheating scheme for voting websites wit...