Horje
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
HTML Elements HTML Elements
Nested HTML Elements HTML Elements
Why should Never Skip the End Tag HTML Elements HTML Elements
Empty HTML Elements HTML Elements
Why HTML is Not Case Sensitive HTML Elements

Single Articles
Example of Empty HTML ElementsHTML Elements

Category:
Web Tutorial
Sub Category:
HTML Elements
Uploaded by:
Admin


Reffered: https://www.w3schools.com/html/tryit.asp?filename=tryhtml_elements_br