An HTML element is an individual component of any HTML document. An HTML element is a collection of opening tag, closing tag, attributes, and actual content.
<h1>Heading Element.</h1>
<p>Paragraph Element.</p>
Some elements does not have content and closing tag, such elements known as empty/void element or unpaired element or self closing element.
<br/>
<hr/>
Below example is a complete HTML document, which is made up of various individual elements.
<!DOCTYPE html>
<html>
<head>
<title>Web Page Title</title>
</head>
<body>
<h1>Heading</h1>
<p>Paragraph.</p>
</body>
</html>
Attributes define additional information or properties to the HTML element. Attributes can be specified in the start tag of any HTML elements, except empty or void elements.
<h1 title="Simply Easy Logic">Tutorials Logic</h1>