0% found this document useful (0 votes)
118 views3 pages

HTML Images & Hyperlinks Guide

Uploaded by

reddybhuvan123
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
118 views3 pages

HTML Images & Hyperlinks Guide

Uploaded by

reddybhuvan123
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

CLASS – VIII – COMPUTER

CHAPTER – 4
HTML- III (Inserting Images & Hyperlink)

(NOTES)

ANSWER THE FOLLOWING:

Q1) What is the purpose of <IMG> tag?

Ans: The <IMG> tag is an empty tag. It is used to insert images in a webpage.

Q2) How many types of image file can be inserted in a webpage using
HTML? Which are they?

Ans: Three types of images files can be inserted in a webpage. They are :
a) .jpg
b) .gif
c) .png

Q3) Explain the important attributes of <IMG> tag.

Ans: Attributes of <IMG> tag are:

Attributes Value Description


SRC URL Specifies the location / path of the image
file to be inserted in the webpage
ALT Text Alternative text to be displayed in case
image is not supported
ALING Top
Bottom Specifies the alignment for the image
Middle
Left
Right
BORDER Pixels Specifies the width of the image border
HEIGHT Pixels or % Specifies the height of the image
WIDTH Pixels or % Specifies the width of the image

Q4) Define hyperlink.

Ans: A “hyperlink” is, an underlined word, phrase, image or an icon, which has
been linked to another location.
Q5) Which tag is used to create hyperlink?

Ans: <A> tag (Anchor tag) is used to create a hyperlink in a webpage.

Q6) What is the purpose link, alink and vlink attribute of <body> tag?

Ans:
 LINK attribute : specifies the color of the unvisited link.
 VLINK attribute : specifies the color of the visited link.
 ALINK attribute: specifies the color of the active link.

Q7) List the default colours of the link.

Ans: By default, links appear in the following colour:


a) An unvisited link is underlined and blue in colour
b) A visited link is underlined and purple in colour
c) An active link is underlined and red in colour

Q8) Differentiate between Internal Linking and External Linking.


Ans:
Internal Linking External Linking
Linking one section of the webpage Linking one webpage to another
to another section of the same webpage on same or another website.
webpage

Q9) List the attributes of <A> tag.


Ans:
Attributes Value Description
HREF URL Specifies the location / path of the image files
to be
NAME Text Specifies the name of an anchor which has to
(name of be used in the href attribute along with the #
the symbol
section)
TITLE Text Specifies the tooltip information for the link
TARGET "_blank" Specifies where to open the linked document.
Q10) Write html code to create a link to email program from the website.
Ans:

<A href = “mailto:[email protected]”> contact us </A>

Note: Write following HTML programs from reader:

1. Page no. : 77 (First program, Write the question as – Write HTML


code to insert an image “c.jpg” in a webpage), (Second Program , Write the
question as – Write HTML code to insert an image “c.jpg” whose path is
“c:\userts\documents\images” in a webpage

2. Page No. : 78 (First program, Write the question as – Write HTML


code to insert an image “minister.jpg” with an alternative text as “can’t find
image file” in a webpage )

3. Page No. : 79 (second program, Write the question as – Write HTML


code to insert an image “sand.jpg” and align it to right side of the webpage)

4. Page No. : 80 (Write the question as – Write HTML code to insert an


image “sand.jpg” set the border to 5 pixels and height & width to 300 pixels
in a webpage)

5. Page No. : 82 & 83 (Write the question as – Write HTML code to


create external hyperlink in a webpage)

6. Page No. : 85 (Write the question as – Write HTML code to create


internal hyperlink in a webpage)

7. Page No. : 87 (only) (Write the question as – Write HTML code to


create image (sparrow.jpg) as external hyperlink in a webpage)

*************

You might also like