Page 125 - Viva ICSE Computer Studies 7 : E-book
P. 125
Example: Illustrating Marquee Element
Inserting Images
Images enhance the quality of a web page. You can include an image in the web page to
provide information or to make the page attractive. Images make a document more interesting
and useful. There are two types of images: inline image and external image. The image that is
displayed when the webpage is opened is called inline image. The image that are not displayed
automatically with other content on the web page is called external image. It is viewed
separately by clicking on the link. The World Wide Web browser supports a number of graphic
formats. Web browsers display images in diff erent formats such as Graphic Interchange Format
(GIF), X BitMap (XBM) and Joint Photographic Experts Group (JPEG).
To insert an image in your web page, you have to specify the <IMG> tag. To display an image
on a page, you need to use the SRC attribute. SRC stands for Source. The value of the SRC
attribute is the address of the image you want to display on your page. The syntax of defi ning
an image is:
<IMG SRC = “address”>
We can also specify height and width attributes. These indicate the height and width of an
image either in the form of an integer or a percentage value.
113