0

In HTML. What is the difference between the elements and the tags?

15th Jan 2018, 10:05 AM
Tesneem Tarik Mohamed
Tesneem Tarik Mohamed - avatar
2 Réponses
+ 2
tags are labels that used to markup the beginning and ending of an element
15th Jan 2018, 10:08 AM
Rogaia Ibrahim
Rogaia Ibrahim - avatar
+ 5
The context: "Element" is used when you talk about the node element in the DOM (JS Document Object Model), while "tag" is used when you talk about the textual representation of the node element in the source code ;)
15th Jan 2018, 10:10 AM
visph
visph - avatar