CBSE Class 10 Computer Applications Question 148 of 176

HTML I — Basic HTML Elements — Question 21

Back to all questions
21
Question

Question 18(i)

What is wrong in the following coding ?

<HEAD> <my web page >   
<TITLE> Welcome to My Web Page 
</HEAD> 
</TITLE> 
Answer

The <TITLE> tag must be entered between the opening and closing <HEAD> tags. Since "my web page" is not a tag, it should not be enclosed between angle brackets and should be written inside the <BODY> tag.

The correct code is as follows:

<HEAD>
<TITLE> Welcome to My Web Page </TITLE>
<BODY>
    my web page
</BODY>
</HEAD>