1. Fill in the blanks.
a.___________tie the web pages together in a website.
b. When you move the mouse pointer over a link, the mouse pointer changes its shape from an arrow to a______
c. If you want to create an e-mail link_________is required before the address.
d. An anchor or a bookmark in an HTML document is created using the______attribute.
e. The default standard link color is_________
f. By default, links open in_________window.
g. The blank value of the________ attribute opens the linked document in a new browser window or a new tab.
h. To turn an image into a hyperlink, place the image source using the__________tag between <a> and </a> tags.
i. The value pf the height attribute is assigned in terms of__________
j. The ________attribute of the <audio> tag indicates that you can replay the audio file once it is finished.

Answer:-
a. Links
b. Small hand
C. mailto
d. <id>
e. Blue
f. Current
g. Target
h. <img>
i. Pixles
j. Loop

2. Write T for the True statement and F for the False one. Correct the false statement(s).
a. Only a single word can be set as hyperlink.
b. The ca> tag is a container element.
c. You cannot create a link within the same web page.
d. An image can be set as hyperlink.
e. The default active link color is red.
f. The href attribute specifies where to open the linked document.
g. You can also use the align attribute with the image tag.
h. Frames allow us to open more than one web page simultaneously in a browser window.
i. You cannot change the link colors.

Answer:-
а. F
b. Т
c. F
d. T
e. T
f. F
g. T
h. T
i. F

3. Choose the correct oplion.
a.A____________is a word, a group of words, or an image that can be used to jump to another document on the same website or another website.
i.hyperlink ii. URL iii, address iv. none of these

b. Which of the following can be set as hyperlink?
i. Single word ii. Group of words iii. Image iv.All of these

c. The______attribute of the <a> tag is used to set the URL of the target resource.
i.src ii.herf iii.controls iv. none of these

d.The_______sign lets the browser know that the destination is a named anchor within the current web page.
i.@ ii.& iii.# iv. none of these

e.The_______value of the target attribute opens the linked document in the same frame.
i.parent ii.self iii.top iv. none of these

f. Which of the following are the attributes of the <iframe> tag?
i. Src ii.Width iii. Height iv. All of these

g. Which of the following can be embedded in a web page?
i. Audio ii.Video iii. Both (i) and (ii) iv. none of these

h. The attribute of the <audio> tag that displays controls on the web page is
i.controls ii. autoplay iii. loop iv. none of these

i. Which of the following specifies the color of a link when it is clicked?
i.Active ii. Visited iii. Hover iv. None of these

j. The___________attribute of the <video> tag plays the video file automatically on loading a web page.
i.controls ii. auto play iii. Height iv. none of these

Answer:-
a. Hyperlink
b. All of these
c. href
d. None of these
e. self
f. All of these
g. Both (i) and (ii)
h. Controls
i. Active
j. autoplay

4. Short answer questions
a. How are links indicated on a webpage?
Ans: Links are generally indicated on a webpage by an underlined text and appear in a different color, usually blue or purple, depending on whether the link object has been visited or not.

b. What does the term URL stand for?
Ans: The term URL stands for Uniform Resource Locator.

c. Name the tag used to create a link. Is it a container element or an empty element.
Ans: We use anchor tag <a>  to create a link.
It is a container element as it has an ON tag <a> and an OFF tag </a>.

d. What happens to the shape of the mouse pointer when it moves over a hyperlink?
Ans: When we move the mouse pointer moves over a hyperlink, the mouse pointer changes its shape from an arrow to a small hand.

e. What are the default visited and active link colors?
Ans: The default visited link color is purple and the default active link color is red.

f. Name the attribute of the anchor tag that specifies where to open the linked document.
Ans: The target attribute of the anchor tag that specifies where to open the linked document.

g. Which tag is used to define an Inline frame in an HTML 5 document?
Ans: The <iframe> tag is used to define an Inline frame in an HTML5 document.

h. What is the use of the src attribute of the <iframe> tag?
Ans: The use of src attribute of the <iframe> tag is  to display the URL of the webpage in the frame.

i. Name the tag used to embed an audio file on a web page. Mention any two attributes of this tag.
Ans: The <audio>tag is used to embed an audio file on a webpage.
Autoplay and controls are two attributes of this tag.

j. Name the tag used to insert a video file in an HTML 5 document.
Ans: The <video> tag is used to insert a video file in an HTML 5 document.

5. Long answer questions

a. What is the use of hyperlinks? Name the different kinds of hyperlinks.
Ans: A hyperlink is a word, a group of words or an image that is used to jump to another document in the same website or another.
The different kinds of hyperlinks are:-
(i)Internal
(ii) Local
(iii) Global

b. What is the use of the href attribute of the <a> tag? Give an example.
Ans: The use of href (hypertext reference) attribute of the <a> tag is  to set the URL of the target resource, which is the address of the document to link to. The href attribute of the anchor tag specify the destination page or file.
For example:- If the word ‘Next Page’ are to be added a link to an HTML file, the code will be:
<a href = “filename.html”>Next Page</a>

c. What is the purpose of the target attribute of the anchor tag?
Ans: The purpose of the target attribute of the anchor tag specifies where to open the linked document.

d. Mention the different values that can be assigned to the target attribute of the <a> tag?
Ans: The different values that can be assigned to the target attribute of the <a> tag are:-
(i)blank
(ii) parent
(iii) self
(iv) top

e. Can you turn an image into a hyperlink? Explain with an example.
Ans: Yes, we can turn an image into a hyperlink.
For example:- <a href = ” my school.html><img src = “school.gif”> </a>

f. What is the use of creating frames in a webpage?
Ans: The use of creating frames in a web page is that it allows us to open more than one webpage simultaneously in a browser window. Frames divide the screen into rectangular areas, each of which can contain an HTML document.

g. What is the use of the height and width attributes of the <iframe> tag?
Ans: The height attributes of the <iframe> tag is use to specify the height of the inline frame and the width attributes of the <iframe> tag is use to specify the width of the inline frame.

h. What is the purpose of the autoplay and controls properties of the <auido> tag?
Ans: The purpose of autoplay properties of the <audio> tag is to play the audio file automatically when the webpage is loaded and the purpose of controls properties of the <audio> tag is to display the controls on the webpage.

i. Explain the use of embed tag in an HTML5 document. Mention any three attributes of this tag.
Ans: The embed tag is use to add an audio or video file to an HTML5 document. This tag is essentially used as a container for inserting an external or interactive application in the webpage, such as a plug-in.
The three attributes of embed tag are:-
(i) src
(ii) Height
(iii) Width

j. Differentiate between <audio> and <video> tags.
Ans: The <audio> tag is use to embed an audio file in a web page while the <video> tag is use to insert a video file in an HTML5 document.

1 COMMENT

LEAVE A REPLY

Please enter your comment!
Please enter your name here