Computer Science, asked by hena80, 3 months ago

Find error from following program :-

<html>

<head>

<title>Title of document</title>

<head>

<body>

<b><u> School</b></u>

<h1>Rainbow</h1>

<p>Used to define paragraph<p>

</body>

</html>​

Answers

Answered by BrainlyPhantom
2

Corrected program:

Find error from following program :-

<html>

<head>

<title>Title of document</title>

</head>

<body>

<b><u> School</b></u>

<h1>Rainbow</h1>

<p>Used to define paragraph<p>

</body>

</html>​

Error:

<body> tag was not closed. <body> is a non-empty tag that needs to be ended with a closing tag that contains the element "/". If the closing tag is left open, then the program will show an error. We must always close non-empty tags.

Examples of non-empty tags: <html>, <body>, <i> etc.

✳ Non - empty tags are also called container tags.

Knowledge Bytes:

⇒ Empty tags

Empty tags do not require a closing tag tag. They always remain open. A common example of an empty tag is <br> tag which is used to insert line breaks.

Similar questions