Horje
How to Close All HTML Elements

In HTML, you do not have to close all elements (for example the <p> element).

However, we strongly recommend closing all HTML elements, like this:


Good:

index.html
Example: HTML
 <section>
  <p>This is a paragraph.</p>
  <p>This is a paragraph.</p>
</section> 

Output should be:

Good:

Bad:

index.html
Example: HTML
 <section>
  <p>This is a paragraph.
  <p>This is a paragraph.
</section> 

Output should be:

Bad:





Category:
Web Tutorial
Sub Category:
HTML Style Guide
Uploaded by:
Admin


Read Article
https://develop.horje.com/learn/1434/reference