HTML[1] elements are the building blocks of HTML web pages. They are individual components that make up an HTML document, adding meaning and structure to the content. Each element can have specific attributes and can contain other elements and text. They are arranged in a tree-like structure within an HTML document. While most elements require both opening and closing tags, some known as void elements do not need closing tags. The correct structuring and nesting of these elements are crucial for creating valid HTML documents. There are three types of HTML elements: normal, raw text, and void elements. The use of upper or lower case to write these elements varies. It’s also important to note that some elements have been deprecated or deemed invalid in later standards for reasons such as user accessibility.
An HTML element is a type of HTML (HyperText Markup Language) document component, one of several types of HTML nodes (there are also text nodes, comment nodes and others).[vague] The first used version of HTML was written by Tim Berners-Lee in 1993 and there have since been many versions of HTML. The current de facto standard is governed by the industry group WHATWG and is known as the HTML Living Standard.
An HTML document is composed of a tree of simple HTML nodes, such as text nodes, and HTML elements, which add semantics and formatting to parts of document (e.g., make text bold, organize it into paragraphs, lists and tables, or embed hyperlinks and images). Each element can have HTML attributes specified. Elements can also have content, including other elements and text.