HTML Intro

HTML Intro Quiz

HTML Intro Exercise

HTML Basics

HTML Basic Quiz

HTML Basic Exercise

HTML Advance

HTML Advance Quiz

HTML Advance Exercise

HTML Tags List

HTML Global Attributes

HTML Attributes


HTML Elements




As we know elements are building blocks. Without knowing their properties we cant construct a fully-functional webpage. An HTML component comprises a start tag and an end tag, with the content in the middle. Some elements are small enough that we cant place content in between them. Such elements are called single elements.


Types of Elements:-


  • Block-level Elements
  • Inline Elements


Block-level Elements:-


Elements that always start from a new line are called block-level elements. Some padding and margins are added to them by default by the browsers.


  • p Tag
  • h2 - h6 tag
  • div tag


Inline Elements:-


Those elements that do not start from a new line and take up as much width as necessary are called Inline elements.


  • span tag
  • a tag
  • abbr tag
  • em tag

Code Explanation

All Tutorials related to HTML Basics

All Sections related to HTML