Ch-09 (Using Lists, Images and Links) Exercises
Ch-09 (Using Lists, Images and Links) Exercises
2. What are the different types of lists supported by HTML? Explain each of them briefly.
Ans. The Lists supported by HTML are:
Ordered List, Unordered List & Definition List
We have already defined the Ordered and Unordered List in the previous question.
Definition List:
Syntax: <DL>
<DT>Term
<DD>Data Description</DD>
</DT>
</DL>
3. How images are added in a HTML document? What are the different attributes of Image
element?
Ans. The <IMG> tag is used to add images in a HTML web page. It is an empty tag and requires
different attributes to be specified with it.
Syntax: <IMG SRC=”ABC.jpg”>
The attributes of <IMG> tag are:
SRC: It helps in defining the source of an image.
Height and Width: It specifies the Height and Width of image respectively.
Align: It is used to align a image relative to the surrounding text, according to the specified
value.
ALT: Sometimes the browser does not display the images due to some reasons. In that case,
you can display the alternate text for the images for the description about the image.
5. How can we link webpages in HTML? What are the different types of linking?
Ans. A website consists of a number of web pages that give you access to the related
information. HTML renders a powerful feature of linking these web pages together. This
feature is called Hyperlinking. Using these hyperlinks, one can open any linked web page on
the Internet instantly. When you hover the mouse pointer over a link, it changes into a little
hand.
TYPES OF LINKING
a. Internal Linking b. External Linking
In HTML, the Anchor tag <A> is used to mark the text as a hyperlink, which a user can click to
display the document, anchored to it. Being a container tag, it requires closing tag </A> to
mark the end of the text or images. This tag is generally used to specify the following:
• The text or image that is clicked to activate the link.
• The address that will be opened using the defined link.
You can use these links (hyperlinks) in the following ways :
1. To jump from one section to another within the same web page.
2. To link to another page within the same website.
3. To link to another page or website anywhere in the world.
HREF
HREF is an attribute of <A> Anchor tag, which defines the document to which the link leads.
Syntax: <A href = "value"> CLICK HERE </A>