what is an element ? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 3

what is an element ?

21st Oct 2016, 8:45 AM
Prabhudutta Satapathy
Prabhudutta Satapathy - avatar
3 Answers
+ 3
Basically, the tags you put in your html code defines elements (for example, <p></p> defines a paragraph element). Before your browser renders the page, the html code is parsed into the DOM, and individual components of the DOM are called elements. https://en.wikipedia.org/wiki/HTML_element An HTML element is an individual component of an HTML document or web page, once this has been parsed into the Document Object Model. HTML is composed of a tree of HTML elements and other nodes, such as text nodes. Each element can have HTML attributes specified. Elements can also have content, including other elements and text. Many HTML elements represent semantics, or meaning. For example, the title element represents the title of the document.
21st Oct 2016, 10:19 AM
Zen
Zen - avatar
+ 1
it is the all tags liked <p> ..….</p>
25th Oct 2016, 10:58 PM
Sahil
Sahil - avatar
0
HTML Elements Some elements are quite small. Since you can't put contents within a break tag, and you don't have an opening and closing break tag, it’s a separate, single element. So HTML is really scripting with elements within elements.
13th Feb 2017, 5:57 AM
John Rigo
John Rigo - avatar