| Shaalaa.com
English

What is the wrong in the following coding? <html><my web page><title> Welcome to my web page </head></title>

Advertisements

Question

What is the wrong in the following coding?

<html>
<my web page>
<title> Welcome to my web page </head>
</title>

Short/Brief Note
Advertisements

Solution

  1. Beginning of head section with <head> is missing.
  2. </title> must be placed before </head>
  3. No Body section
  4. End of </html> is missing
  5. Title content and Body contents are misplaced.

The Correct code:

<html>
    <head>
          <title> my webpage </title> 
    <head>
    <body>
          Welcome to my webpage
    </body>
</html>
shaalaa.com
HTML Attributes
  Is there an error in this question or solution?
Chapter 10: HTML - Structural Tags - Evaluation [Page 236]
Advertisements
Share
Notifications



      Forgot password?
Use app×