HTML Elements

HTML elements refer to the unique parts of the HTML document. It declares the meaning or interpretation. For instance: the body element refers to the body of the document.

The HTML elements are written with an opening tag and conclude with a closing tag. The opening tag is enclosed between angle brackets (< >). While the closing tag has a slash after the opening angle bracket followed by a closing angle bracket (</ >).  The closing tag indicates the completion of the command to the web browser.

Tip:

All the HTML elements don’t need a closing tag. Such elements are known as empty or void elements. For example, <br>, <hr> .

HTML is a case-insensitive language.  This means you can write both in uppercase or lowercase. The tags <BODY> and <body> mean the same thing.

Though it is not a standard, it is recommended to use the lowercase in HTML.

Nesting HTML Elements

Positioning an element inside another element is called nesting of elements. Ensure you nest the HTML tags in the right order. Close them in the reverse order of how they have been declared. This means you first need to close the last tag you have opened.

Example

Here is some bold text.

Here is some Italic text.

Here is some underlined text.

Tip:

A nested element is also known as a child element.