1. Image formats supported on WEB:
GIF: Can save 256 medium colors, support transparent colors, and support animation effects
JPEG: does not support transparent colors and animations, and the colors can reach 1,670 types.
PNG: Supports transparent colors, not animations, there are several colors to 1670
2. Insert the picture into the web page to use the <img/> tag:
src: Set the picture, the value is equal to the Lu Jin of an image file
height: Set the image's high, the value is expressed in pixels or percentages (it will automatically scale to scale)
width: Set the width of the image, the value is expressed in pixels or percentages
border: Add border to the picture
alt: picture description text, when the picture is not displayed, the value of the attribute will be displayed.
title: This attribute indicates that the value of the attribute will be displayed when the mouse is placed on the picture.
align: attribute value = left picture to the left, text to the right
Right picture to the right, text to the left
Top text is vertically located on top
middle text centered vertically
Bottom text is vertically placed (default)
vspace: The attribute value is a pixel, defining the blank at the top and bottom of the picture
hspace: The attribute value is a pixel, which defines the space on the left and right side of the image
Copy the code