What is an HTML Element?
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).
<tagename> Content of html page... </tagename>
HTML elements are the building blocks of HTML pages. With HTML constructs, images and other objects such as interactive forms may be embedded into the rendered page. HTML provides a means to create structured documents by denoting structural semantics for text such as headings, paragraphs, lists, links, quotes and other items. HTML elements are delineated by tags, written using angle brackets. Tags such as </img > and </input> directly introduce content into the page. Other tags such as </p> surround and provide information about document text and may include other tags as sub-elements. Browsers do not display the HTML tags, but use them to interpret the content of the page.
Example of Html Element
<h1> H1 tag content... </h1>
<p> paragraph tag content... </p>
<html>
<head>
<title>Page Title Example</title>
</head>
<body>
<h1>H1 heading content... </h1>
<p>paragraph content...</p>
</body>
</html>
Example result
H1 heading content...
paragraph content
paragraph:
Lorem ipsum dolor sit amet consectetur, adipisicing elit. Tenetur quisquam sint voluptatem
cumque facilis sit culpa aliquid aut quibusdam ad eos incidunt perspiciatis ullam pariatur
consequuntur natus, ut nisi modi nesciunt nulla nam? Eaque!
Lorem ipsum dolor sit amet, consectetur adipisicing elit. Nobis, excepturi beatae quos
dolorum iure tenetur provident, obcaecati totam ea sequi delectus nostrum ab porro. Vel
magni officia excepturi dignissimos tempora, consequuntur sapiente harum.