Friday, June 7, 2019

What is the difference between HTML tags and elements?

HTML tag is simply opening or closing entity. HTML element is the collection of  start tag, attributes and close tag. In certain cases, both are interchangeable.





Do you get it from the above image? HTML tags and elements are not case sensitive. We recommend lower case for HTML tags and elements name.

Note that all HTML elements don't require closing tag. Some are self-closing or empty elements.


Examples : HTML TAGs

<p></p>


Examples: HTML Elements

<p>This is the content of HTML elements</p>









Back to Questions: Was this article helpful ? - "What is the difference between HTML tags and elements?"