ITSourceCode.com

We Exist to Provide 100% Free Source Code and Tutorials

Custom Search

HTML elements

HTML elements are always enclosed in opening and closing tags.

Example:

For heading:

  1. <h1> Heading</h1>

It is imperative to use the closing tag.However ,there are some HTML elements that don’t need a closing tag such as <img…/>, <hr /> and <br />.These are known as void elements.

 

Nested HTML elements

 

  1. <!DOCTYPE html>
  2.  
  3. <h1> Heading</h1>
  4. <p>paragraph<i>italic</i></p>
  5.  
  6. </body>
  7. </html>
Facebook Comments

Check Your Domain Ranking

Leave a Reply

Your email address will not be published. Required fields are marked *

ITSourceCode.com © 2016 Frontier Theme

Subscribe For Latest Updates

Signup for our newsletter and get notified when we publish new articles for free!