Save
Com Sci
Save
Share
Learn
Content
Leaderboard
Learn
Created by
Marie Cabarse
Visit profile
Cards (19)
Com
sci
Supports a millon of colors and has the file name extension of png.
Portable Network Graphics
Supports up to 256 colors and has the file name extension of gif. This file format is commonly used and can be animated.
Compuserve
Graphics
Interchange
format
JPEG (
Joint Photographic Experts Group
)
The tags are not supported in HTML5.
<vpace>, <hspace>, <border>, <align>
Indicates the image to be inserted, this must be present at all times
src
Indicates the alternate text for an image or the text that appears when the mouse hovers overs the image and when the image cannot be displayed
alt
Supports a million of colors and has the file name extension of either jpeg or jpg. This file format is the most commonly used.
JPEG
To display the image on the page, you have to use the _ and _ attributes.
src
and
alt
The <img> tag supports several attributes, but the _ attribute is the one that specifies the name and location of the image
src=
This type of image is not compressed that's why it provides the best quality for image at the cost of file size.
Bitmap
You can add images to your Web page with the use of _ tag.
<
img>
Indicates the width of the image in pixels
Width
You can specify the background image of the page by using the background Attribute inside the body tag
<body
background
=
“value”
>…<
/body
>
Specifies an image as a server-side image-map
ismap
You should save your image in a _ or _ format and compress the image so that loading time will be fast.
JPEG
or
PNG
Indicates the height of the image in pixels.
Height
Specifies an image as a client-side image-map
usemap
You can
insert
a picture in your Web page
through
the
empty
tag
<
img>