Image Adding
] ] ] ] ] ] ] ]
Pros and cons of using images in HTML documents.
PROS |
CONS |
|
|
There are a lot of image file format used currently. Among these, GIF (Graphics Interchange Format) and JPEG (Joint Photographic Experts Group) are widely used. The extension of GIF is ".gif" whereas the extension of JPEG are ".jpg" or ".jpeg."
Some interesting differences between GIF and JPEG.
GIF |
JPEG |
|
|
Image = <IMG>
To put an image on your home page, this tag will be used.
Source
To indicate the filename of the image you want to put on your web page, use <IMG SRC="filename">.
Alignment
To indicate the alignment of the text on the line with relation to the image, use <IMG ALIGN=options>. The options can be TOP, MIDDLE or BOTTOM.
Height
To control the initial height of the image, use <IMG HEIGHT=number in pixels>.
Width
To control the initial width of the image, use <IMG WIDTH=number in pixels>.
Alternative
To serve users using browsers without graphical support by providing them a text string instead, use <IMG ALT="text">.