Horje
What is Empty HTML Elements | HTML Elements Code
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



Read Full::
HTML Elements Code
Category:
HTML Code
Sub Category:
HTML Elements Code
Uploaded:
8 months ago
Uploaded by:
Admin
Views:
93

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

Single Articles
Example of Empty HTML Elements

Share on: