+ 2

HTML

What is difference between element and tag?

2nd Jan 2018, 8:18 AM
pawar yashwant
pawar yashwant - avatar
3 Answers
+ 2
HTML tag is just opening or closing entity. For example: <p> and </p> are called HTML tags HTML element encompasses opening tag, closing tag, content (optional for content-less tags) Eg: <p>This is the content</p> : This complete thing is called a HTML element
2nd Jan 2018, 8:28 AM
Harjeet Singh
Harjeet Singh - avatar
+ 2
Here’s a simple version of these great replies: if it’s in these: < > then it’s a tag. The whole is an element.
2nd Jan 2018, 3:25 PM
luciel
luciel - avatar