☺ ☺ What do u understand by an empty tag? ☺ ☺
Answers
Ex - <br>,<hr> etc.
Hey there!
Q. What do you mean by an empty tag. Give two examples?
Answer :
Empty Tag : These tags have only an ON tag - there are no OFF tags as it does not enclose any data. The reason for this is that they do something on their own. They do not act on block of text. An example of this would be the <BR> (Break) tag and <HR> (Horizontal Line) tag. The <BR> tag inserts a single carriage return or break into the document. The <HR> element draw a horizontal line across the page. This horizontal line can be used to divide information or sections.
For example :
<HTML>
<BODY>
First Statement <BR> ∫↔ Example of empty tags. There are no ending tags.
Second Statement <BR> ∫↔ Example of empty tags.There are no ending tags.
Third statement <BR> ∫↔ Example of empty tags. There are no ending tags.
</BODY>
</HTML>