HTML ElementsAn HTML file is made of elements. These elements are responsible for creating web pages and define content in that webpage. An element in HTML usually consist of a start tag Note: Some elements does not have end tag and content, these elements are termed as empty elements or self-closing element or void elements.Such as: Example
Void element: All the elements in HTML do not require to have start tag and end tag, some elements does not have content and end tag such elements are known as Void elements or empty elements. These elements are also called as unpaired tag. Some Void elements are Nested HTML Elements: HTML can be nested, which means an element can contain another element. Block-level and Inline HTML elementsFor the default display and styling purpose in HTML, all the elements are divided into two categories:
Block-level element:
Following are the block-level elements in HTML. , |