Horje
Why should Never Skip the End Tag HTML Elements

Some HTML elements will display correctly, even if you forget the end tag:


Example of End Tag

Every Title should combine with tag. Like: <p>WWE</p> . We recommend not use likely: <P>WWE
index.html
Example: HTML
<!DOCTYPE html>
<html>
<body> 

<p>This is a paragraph.
<p>This is a paragraph.

</body>
</html>

Output should be:

Example of End Tag

Correct uses Tags

Example given following a correct way uses Tag
index.html
Example: HTML
<!DOCTYPE html>
<html>
<body> 

<p>This is a paragraph.</p>
<p>This is a paragraph.</p>

</body>
</html>

Output should be:

Correct uses Tags

What may happen if you never use end Tag?

If you do not use end Tag. It may cause affected other 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 End TagHTML Elements
Correct uses TagsHTML Elements
What may happen if you never use end Tag?HTML Elements

Read Full:
HTML Elements
Category:
Web Tutorial
Sub Category:
HTML Elements
Uploaded by:
Admin
Views:
219


Reffered: https://www.w3schools.com/html/html_elements.asp