+ 6

What is the difference between element and tag in htms

23rd Jan 2018, 2:16 PM
Code Ninja
Code Ninja - avatar
3 Réponses
+ 5
Element is everything, from opening tag to closing tag such as <p>This is a paragraph</p>. Tag is only <p>.
23rd Jan 2018, 4:28 PM
Azer Xelef
Azer Xelef - avatar
+ 2
i still dont get it..🤕
23rd Jan 2018, 11:36 PM
Code Ninja
Code Ninja - avatar
+ 1
Elements comprises of tags. A tag is a unit of an element.
24th Jan 2018, 1:16 PM
Obidigwe Kenechukwu
Obidigwe Kenechukwu - avatar