Page 27 - PlusGPT_V2.1_C7_Flipbook
P. 27
2 Images and Lists
in HTML
Let’s surf
Inserting Images Creating Lists
Critical Thinking
Let’s PLug-in
Is it necessary to add images and graphics to a webpage? Describe your views briefly.
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
The websites we generally visit have lots of images as part of the web page. We also notice that all the
web pages are interlinked with each other. Sometimes, we see that a web page is divided into various
sections. HTML allows us to implement all these functionalities in our web pages. In this chapter, you will
learn about inserting images, and creating lists.
INSERTING IMAGES
Images and other graphical elements such as drawings, paintings and charts enhance the look and
feel of a web page. All these graphical elements are considered as image in the web page.
HTML also allows us to insert images inside the web pages through the <IMG> tag. The <IMG> tag is a
container tag and has various attributes.
The attributes of the <IMG> tag are:
SRC: It specifies the source or URL of the image that has to be inserted in the web page.
For example,
<IMG SRC="C:/Mydocuments/lily.jpg">
WIDTH: It specifies the width of the image in the web page. For example,
<IMG SRC="lily.jpg" WIDTH="50%">
Images and Lists in HTML 25

