Horje
What is Empty HTML Elements

HTML elements with no content are called empty elements.

The <br> tag defines a line break, and is an empty element without a closing tag:


Example of Empty HTML Elements

<p>This is a <br> paragraph with a line break.</p>
index.html
Example: HTML
<!DOCTYPE html>
<html>
<body> 

<p>This is a <br> paragraph with a line break.</p>

</body>
</html>

Output should be:

Example of Empty HTML Elements



Related Articles
What is HTML Elements HTML Elements
What is Nested HTML Elements HTML Elements
Why should Never Skip the End Tag HTML Elements HTML Elements
What is Empty HTML Elements HTML Elements
Why HTML is Not Case Sensitive HTML Elements

Single Articles
Example of Empty HTML ElementsHTML Elements

Read Full::
HTML Elements
Category:
Web Tutorial
Sub Category:
HTML Elements
Uploaded:
1 year ago
Uploaded by:
Admin
Views:
157
Ref on:
View



Share on: