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?"

2 comments:

  1. Nicely explained the topic "SEO Services" same as you mention about is quite popular these days in the united kingdom, United States, Ireland, And other countries. our company provides same services without any risk, kindly visit to know Website Design Company in London

    ReplyDelete