Anjeev Singh Academy

Class 10 Computer Application Code 165 Chapter 3 – HTML – I Basic HTML Elements Sumita Arora Book Exercise Solution

Chapter 3 – HTML – I : Basic HTML Elements

Sumita Arora Book Exercise Question Answer Solution

Type – A: Theoretical Questions – Answers

Que 18. What is Wrong in the following coding?

(i) <HEAD> <my web page>

<TITLE> Welcome to My Web Page

</HEAD>

</TITLE>

Answer: </TITLE> comes before the </HEAD>

(Ii) <FONT name = “Arial”, type = “Bold” size = 3>

Answer: name and type are invalid attributes of <FONT>. It may be used like <FONT face = “Arial” size = 3> <b> ….. </b> </FONT>

(iII) <FONT face = comic sans ms color = Red>

Answer: Attribute values are not written inside the quotation. <FONT face=”Comic sans MS” color = “RED”>

(iv) <FONT color = #345678

Answer: The hexadecimal color code is not written inside the quotes. It should be like – <FONT color = “#345678”>

(v) <BODY color = “Red” background = “Myimage.jpg”>

Answer: color is an invalid attribute of <BODY> tag. It should be written like <BODY background = “Myimage.jpg” text = “red”>

(vi) <BR> </BR>

Answer: <BR> is an empty tag. </BR> is the invalid.

(vii) <P Font face = “Arial” color = “Blue”>

Answer: > is missing after P. The correct code is <P> <FONT face = “Arial” color = “Blue”> </FONT> </P>

(viii) <Body Margin Top = 60 Left = 75> Text with changed margin </Body>

Answer: The body tag has two attributes for margin – topmargin and leftmargin.

<BODY topmargin = 60 leftmargin = 75> Text with changed margin </BODY>

(ix) <BASEFONT SIZE = 5> <BODY> Text with New format </BODY>

Answer: <BASEFONT> tag will come inside the <BODY> tag. The corrected code is –

<BODY> <BASEFONT size = 5> Text with New format </BODY>

(x) <HTML> <HEAD> <TITLE> New Page </HEAD> </TITLE > </HTML>

Answer: </TITLE> comes before the </HEAD>. The corrected code is

<HTML> <HEAD> <TITLE> NEW PAGE </TITLE></HEAD> </HTML>

Que 19. Differentiate between <TITLE> and <HEAD> tags.

Answer: <TITLE> vs <HEAD>

<TITLE> tag<HEAD> tag
The <TITLE> tag contains the document title. The title specified inside the <TITLE> .. </TITLE> tag appears on the browser’s title bar.

The <TITLE> tag is entered between the opening and closing <HEAD> tags.
The <HEAD> tag contains information about the document, including title, scripts used, style definitions, and document descriptions.

The <HEAD> tag is written between <HTML> tags.

Que 20. Differentiate between the container and empty elements.

Answer: Container Element vs Empty Element

Container ElementEmpty Element
Container Elements: – Elements that require starting as well as ending tags. For example- <head> .. </head> , <body> .. </body>, etc.
An ending tag is similar to that of a starting tag except that it begins with a slash (/) symbol.
Empty Elements: – Elements that require only starting tag not an ending tag. For example- <be>, <hr>, <base> etc.

It is also known as void elements.

Sorry! You cannot copy content of this page. Please contact, in case you want this content.

Scroll to Top