Page 180 - Webapplication11_C11_Flipbook
P. 180
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="200px"
HEIGHT="200px"
ALIGN="right"
BORDER="2">
</BODY>
</HTML>
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.
Lab Assignment ‘n Activity #Experiential Learning
#Computational Thinking
Type the following code and see the output.
<!DOCTYPE html>
<html>
<head>
</head>
<body text="blue">
<font color="red">
<h1> Interesting Facts about India</h1> </font>
178 Touchpad Web Applications-XI

