Classification Of the HTML tags

     

    We can classify the HTML tags in two parts:

     

  • Fixed Tags\Container Tags
  • Flexible Tags\Empty Tags
  • Fixed tags represents to the tags which consists Opening tags and Closing tags, whereas Flexible tags doesn't consists of Closing tags.

     

     

  • Opening Tags can be represented as: <>
  • Closing tags can be represented as: </>
  • Closing tag always stats with "Forward Slash(/)
  • Ex: <html> </html>
  • Ex:<body></body>
  • Ex:<h1></h1>
  • Flexible\Empty Tags:

    The tag doesn't consists of "Closing" only having "Opening" tag termed as Empty Tags.

    Some of the tags which mentioned below not required end tags:

  • <br>
  • <area>
  • <base>
  • <img> -- image
  •