☺ ☺ What do u mean by an empty tag. Give two examples? ☺ ☺
Answers
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>
Hey mate ♥
HTML elements with no content are called empty elements or empty tag. Empty tags are bracketed by "<" and ">" characters.
For example, the <br> element (which indicates a line break tag.
Hope this helps you..!!☺♥♥☺