+ 7
Are the terms html element and html tag same or different?
4 Respuestas
+ 13
An HTML tag is simply opening or closing an object. For example:
<p> and </ p> are called HTML tags.
The HTML element includes an open tag that closes the tag, content (optional for tags without content) For example:
<p> This is the content </ p>: this complete thing is called an HTML element.
+ 11
By "element" is meant the DOM element of the tree. That is, this is what turned into the record of your Tag. In essence, the Tag is converted to an Element, one of the properties of which is tagName. In fact, the tree does not care, like the browser, which tag you shoved. Simply, it creates an Element for each Tag, with its own predefined styles and behavior.
+ 3
thanks
+ 2
With <b> only one tag is used. Whats inside opening and closing of other tags is element.