Page 123 - iPlus_Ver_2.0_class_7
P. 123
More on HTML
10
Learning Outcomes
Inserting Images Creating Marquee
Linking Web Pages Frames
Creating Forms in HTML
The websites we generally visit have lots of images as part of their web pages. 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, we will learn about inserting images, creating marquees, linking web
pages, and creating frames.
i + 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 images on the web page.
HTML also allows us to insert images inside 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 into the web page. For
example,
<img src="C:/Mydocuments/lily.jpg">
• Width: It specifies the width of the image on the web page. For example,
<img src="lily.jpg" width="50%">
• Height: It specifies the height of the image on the web page. For example,
<img src="lily.jpg" height="60%">
• Align: It aligns the image with respect to the text placed adjacent to the image. An image can
be aligned left, right, middle, bottom, or top. For example,
121
More on HTML

