+ 3

what is a tag and and an element

6th Jun 2016, 9:57 AM
Krishna Rout
Krishna Rout - avatar
2 Answers
<h1> and </h1> are html tags. "<h1>Some Heading</h1>" the whole thing is an html element.
6th Jun 2016, 12:31 PM
ZinC - avatar
An element is an object in the webpage, while a tag is the text that defines the element, and tells the browser what kind of element it is or what kind of content it contains. @ZinC provided you a perfect example.
11th Jun 2016, 8:43 PM
Gabe Rust
Gabe Rust - avatar