Exercise Answers
A. Multiple choice questions:
1. Which attribute is used to display a brief message when an image is pointed to?
a. Src
b. vspace
c. hspace
d. alt
Ans. d. alt
2. Which attribute is correct to use to align the image in centre?
a. <img align="center">
b. <p align="center">
c. <image align="center">
d. <imgalignment="center">
Ans. a. <img align="center">
3. Which tag will you use to insert a table in an HTML document?
a. <table></table>
b. <tr></tr>
c. <td></td>
d. <th></th>
Ans. a. <table></table>
4. Which tag is used to insert a cell in a table?
a. <tr></tr>
b. <table></table>
c. <td></td>
d. <th></th>
Ans. c. <td></td>
5. We use the anchor tags to:
a. Insert a row in our table
b. Insert an image
c. To set the background colour of the webpage
d. To create a hyperlink for the given URLS
Ans. d. To create a hyperlink for the given URL
6. The href attribute is used to specify:
a. Text for link
b. URL
c. Image location
d. None of these
Ans. b. URL
7. The mailto: is used to specify:
a. Text for link
b. URL
c. Email addresses as hyperlink
d. Text for hyperlink
Ans. c. Email addresses as hyperlink
B. State the following sentences as true or false:
1. HTML stands for hypertext markup language.
True
2. Attributes extend the functionality of tags to make them more versatile.
True
3. Body tags with required attributes are used to change the font type, size and colour of the text on the web page.
False
4. The <hr> tag is used to insert a horizontal line in your web page.
True
5. Open tag and size attribute, <font size="n" , n varies from 1 to 7>. One being the smallest and seven being the largest.
True
6. Mention the text which you want to convert to hyperlink between the <an> and </an> tags with the href attribute.
False
7. Href stands for hypertext reference and is an attribute of the <a> tag.
True
C. Fill in the blanks:
1. _______ language describes how HTML works.
Ans. Markup
2. All the tags must be described between the ________ tags.
Ans. HTML
3. To create an HTML webpage you use the __________ program.
Ans. Notepad
4. <u> and </u> tags are used to _______ the text on a web page.
Ans. Underline
5. The _______ attribute of font tag shows text in a particular font.
Ans. face
6. You can insert images into a page by using the _____ tag with the _____ attribute.
Ans. img, Src
7. In a table, <tr> and </tr> tags insert a ______.
Ans. row
8. _______ is used with href attribute to create an email hyperlink.
Ans. Mailto:
D. Match the following:
1. What is the use of <b> and </b> tags?
Ans. The text in between these tags will be bold and will stand out against the text around it.
2. Name three attributes of font tag?
Ans. The three attributes of font tag are Colour, size and face.
3. Name three attributes of body tag.
Ans. The three attributes of body tag are Background, text and Bgcolor.
4. Write significance of <td> and </td> tags.
Ans. <td> and </td> tags are used to insert a cell.
5. Src attribute is used with which tag?
Ans. <img>
6. What are anchor tags used for?
Ans. The anchor tags are used to create hyperlinks for the given URL.
7. Write syntax to create a hyperlink for an e-mail address.
Ans. The syntax to create a hyperlink for an e-mail address is follows:
<a href = "?">text for e-mail link</a>
F. Answer the following:
1. Write about the purpose of the following tags:
a) <I> and <I> = These tags display the text at a slight angle.
b) <hr> = This tag is used to insert a horizontal line in your web page.
c) <img> = This tag is used to insert images into a web page.
d) <table> = This tag is used to insert a table in your web page.
2. Which tag is used to insert images? Write about the importance of src attribute.
Ans. <img> tag is used to insert images.
The use of src attribute is used to specify the location of the file, which is to be displayed in the web page.
3. How new rows and table headings are created in a table?
Ans. To create a new row in a table <tr> tag is used and to create a new heading in a table <th> tag is used.
4. How do you create hyperlinks? Write tags and attributes used.
Ans. You can create hyperlinks to web pages using the URL in the format as shown below:
Syntax: <a href = "URL">text for the link</a>
0 Comments