Page 57 - Modular_V1.1_Flipbook
P. 57
ALT: It specifies the alternate text to be displayed in the web browser, if the provided image
is not found. For example,
<IMG SRC="lily.jpg" ALT="Describing the flower">
Let us use the <IMG> tag to insert an image on the web page in the following way:
<HTML>
<HEAD> <TITLE> Inserting Image </TITLE> </HEAD>
<BODY>
<B> Inserting image on the web page </B>
<IMG SRC="lily.jpg"
WIDTH="150%"
HEIGHT="150%"
ALIGN="right"
BORDER="2">
</BODY>
</HTML> Image inserted with border
Ensure that an image which we want to insert on the web page should be saved at the
same location where we have saved our HTML file. If we want to insert an image from any
other location, we need to provide the complete path of the image to the SRC attribute. For
example, if our image is saved in the D: drive of computer then the path of the image will
be D:\lily.jpg.
Clickipedia
Some of the image formats supported by HTML are Joint Photographic Experts Group (JPEG),
Graphics Interchange Format (GIF) and Portable Network Graphics (PNG).
CREATING MARQUEE
While surfing the Internet, you might have seen the moving advertisements in the form of text
or images. The moving objects get special attention of the user. HTML allows you to move
your objects left, right, up, and down by using the <MARQUEE> tag. The <MARQUEE> tag is
a container tag. It takes the text or image between the opening <MARQUEE> and the closing
</MARQUEE> tags.
<MARQUEE> Hello! I am a moving text </MARQUEE>
Similarly, the image can also be added to this moving part or section.
<MARQUEE> <IMG SRC="D:\smiley.gif"> </MARQUEE>
Images, Links and Frames in HTML 55

