Cbse class 6th unit 4. Introduction to HTML solved worksheet

Cbse class 6th unit 4. Introduction to HTML solved worksheet

Page 1 of 3
Q. 1 Choose the correct option. [R]
a. The ____________ tag is used to begin a new line in HTML. 
i. <p> ii. <i>
iii. <head> iv. <br>
b. The ______________ tag is used to keep the content in the center of the 
page. 
i. <h1> ii. <center>
iii. <b> iv. <font>
c. The __________ attribute is used to specify the font name inside the font 
tag.
i. face ii. size
iii. color iv. background
Q. 2 Answer in one word
a. The tag used to display text in a smaller size below the baseline of the 
normal text.
[R]
Ans: subscript tag
b. Identify the appropriate attributes for the blank spaces given below [U]
i. <body _________ =” yellow”>...</body>, what attribute will be used 
in the blank space to add a yellow colour to the background in 
HTML? 
Ans: bgcolor
ii. <body _________ =” mango.jpg”>...</body>, what attribute will be 
used in the blank space to add the image file mango for the 
background in HTML? 
Ans: background


Q. 3 Find and correct the errors and write the program again. [Ap]
a. <html> 
<body>
<h1>Have a Nice day list
<center> 
<p> Thank You </p> 
<\center> 
<br > 
</body>
Ans: <html> 
<body>
<h1> <B> Have a Nice day list </B> </h1>
<center> 
<p> Thank You </p> 
<\center> 
<br >
</body>
</html> 
Q. 4 Answer the following questions.
a. Explain tags and attributes in HTML along with examples. [U]
Ans:  Tags are used to tell the browser to display text in a particular 
format. For example <H1>..</H1>
 Attributes are additional parts of a tag that help to change 
specific features of a tag. For example, the align attribute of the 
<p align=right> tag.


b. What will be the output of the following HTML codes? [An]
i. (a-b)<sup>2</sup> = a<sup>2</sup> -2ab +b<sup>2</sup>
Ans: (𝐚 − 𝐛)
𝟐 = 𝐚
𝟐
- 2ab+𝐛
𝟐
ii. (a+b)<sup>3</sup> = a<sup>3</sup>+ 
3a<sup>2</sup>b+3ab<sup>2 </sup>+b<sup>3</sup>
Ans: (𝐚 + 𝐛)
𝟑 = 𝐚
𝟑+ 3𝐚
𝟐𝐛 + 𝟑𝐚𝐛
𝟐+𝐛
𝟑
iii. Average of a<sub>1</sub> + b<sub>1</sub> = 
c<sub>1</sub> + d<sub>1</sub>
Ans: Average of a1 + b1 = c1 + d1
c. Explain any two attributes of the body tag? [R]
Ans:  background: It is used to specify the image file for the 
background.
 bgcolor: It is used to specify the background color.
 text: It is used to specify the color of the text.
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>

Comments

Popular posts from this blog