HTML Elements


HTML Elements is a type of HTML component. An HTML Element usually contains a start tag and an end tag. An HTML Element can also have contents in between the tags.

Syntax

<element-tag-name></element-tag-name>

Example


The elements which does not have end tags and contents are called empty elements. The <br> is an example of empty element.

The <br> element is a line break element and it has no end tag.

The <html> element is a document element and is a container for all other elements. It has both start tag <html> and end tag </html>.

The <body> element defines a document body. The <body> element has start tag <body> and end tag </body>.