+ 2

HTML course: difference between tag and element?

Hi guys, what's the difference between tag and element?

26th Apr 2018, 9:05 AM
Gintonic
Gintonic - avatar
4 Réponses
+ 6
tags are the speaking convenience to denote < some tags > notation. but all the tags are actually a DOM element
26th Apr 2018, 9:08 AM
Morpheus
Morpheus - avatar
+ 5
Document object model, All the tags in html are actually objects in a predefined object tree as shown in the link. so by accessing the DOM objects we can perform various Operations over html page, and in that context "element" ( sometimes also called as Nodes) comes into picture. https://www.w3schools.com/js/js_htmldom.asp
26th Apr 2018, 9:36 AM
Morpheus
Morpheus - avatar
+ 1
What does DOM stand for?
26th Apr 2018, 9:29 AM
Gintonic
Gintonic - avatar
+ 1
Ok thanks!
26th Apr 2018, 9:43 AM
Gintonic
Gintonic - avatar