Charitha
asked

Expert
Abhay Jajodia answered
They are related, but not the same.
A tag is just the markup, like <p> or </p>.
An element is the whole thing: opening tag + content + closing tag.
Example:
<p>Hello</p>
Tags: <p> and </p>
Element: <p>Hello</p>
If you have more questions, I am here to help 😊
HTML
This question was asked as part of the Learn HTML course.
Our Experts
Sanjeev PanditPrincipal Engineer
Sudip BhandariHead of Growth/Marketing
Apekchhya ShresthaSenior Product Manager
Anuj ShresthaTech Lead
Kelish RaiTechnical Content Writer
Abhilekh GautamSystem Engineer
Palistha SinghTechnical Content Writer
Sarthak BaralSenior Content Editor
Saujanya Poudel
Abhay Jajodia
Nisha SharmaTechnical Content Writer
Udayan ShakyaTechnical Content Writer