Ticker

6/recent/ticker-posts

Chapter - 4 Learning HTML

Chapter 4


Exercise Answers

A. Multiple choice question:

1. Attributes provide:

a. Hyperlinks
b. Standalone tags
c. Additional information to the tag
d. Container tags

Ans. c. Additional information to the tag

2. Which of these is known as the standalone tags?

a. Container tags
b. Empty tags
c. Head tags
d. Body tags

Ans. b. Empty tags

3. Which tags are used to hold the contents of the page?

a. Body tags
b. Container tags
c. Head tags
d. Empty tags

Ans. a. Body tags

4. Which attribute is used to set the background colour of the webpage?

a. Backcolor
b. Background colour
c. Forecolour
d. bgcolour

Ans. d. bgcolour

5. Which tag is used to apply the various size headings to text enclosed within them?

a. <head></head>
b. <hn></hn>
c. <b></b>
d. <u></u>

Ans. b. <hn></hn>

6. Which tag you require to change the font settings like font size, font colour etc?

a. <body></body>
b. <hn></hn>
c. <font></font>
d. <br> 

Ans. c. <font></font>

7. Which tag will you use to insert a horizontal line in your web page?

a. <hr></hr>
b. <hn></hn>
c. <br>
d. <body></body>

Ans. <hr></hr>

B. Write true or false against the following statements. 

1. The title of the webpage, is mentioned between the <title bar> and </title bar> tags. 

Ans. False

2. Body tags are used to hold the contents of the page. 

Ans. True

3. <H1> creates the largest heading and <H7> creates the smallest heading. 

Ans. True

4. The FONT tags with the required attributes are used to change the font, type, size and colour of the text. 

Ans. True

5. The <br> tag is used to give a line break. 

Ans. True

6. The matter within the tags <sur> and </sur> will appear as a superscript. 

Ans. False

7. The <hr> tag is used to insert horizontal line. 

Ans. True

C. Select the suitable words and fill in the blanks:

1. HTML is an acronym for hypertext ________ language.

Ans. Markup

2. _________ is the text with cross-reference links between pages. 

Ans. Hypertext

3. A _________ is a markup, which indicates how the contents on a web page should look. 

Ans. Tag

4. The ________ tags are standalone tags and not have an end tag. 

Ans. Empty

5. The _______ attribute used with the <body> tag is used to set the background colour of the webpage.

Ans. bgcolor

6. The _______ attribute used with the <body> tag is used to set an image for the background.

Ans. Background

D. Match the following: 

Match

Ans. 
1. (e)
2. (d)
3. (c)
4. (g)
5. (b)
6. (f)
7. (a)

E. Answer in one word/sentence. 

1. Name at least four web browsers. 

Ans. Internet explorer, Chrome, Opera and Mozilla Firefox. 

2. What is a hyperlink?

Ans. A link is a connection from one object (which may be text, picture, etc.) to another object. 

3. What is markup language?

Ans. Markup language is a way of writing layout information within a document. 

4. Write the syntax of bold, italic and underline tags. 

Ans. Bold tags: <b> </b> 
Italic tags: <I> </I>
Underline tags: <u> </u>

5. What are empty tags? Give an example.

Ans. Empty tags are standalone Tags and do not have an end Tag. 
For example, to give line break the <br> tag is used. For creating a paragraph, the <p> tag is used.

6. Write the names of tags used to create basic structure of an HTML document. 

Ans. HTML tags 
Title tags 
Head tags 
Body tags

7. What is the use of title tag?

Ans. The title of the web page, which will be displayed in the title bar of the user's browser. 

8. What is the difference between <br> and <hr> tags?

Ans. <br> tag: This tag is used to give a line break. 
<hr> tag: This tag is used to insert horizontal line in your web page. 

Next >> "5 Lists and Images in HTML"



Post a Comment

0 Comments