HTML Tags

To making an attractive website, exercising tags is important as they're interactive learning that help you achieve your design simulation.

An HTML element serves as a container for content or other HTML tag, represented by words closed in angle classes, < and >.

These tags serve as keywords that guide the web browser on how to format and present the content.

Constantly Used HTML Tags

Below are some of the most used HTML tags, which regard for about 70 of operation.

Document Structure Tags

Metadata Tags

Text Formatting markers/tags

List Tags

Hyperlink and Media Tags

Form Tags

Table Tags

Semantic Tags

Paired and Single HTML Tags

That was quite a lengthy list, but do n’t worry — we’ll explore each of these in detail. In HTML, tags are generally divided into two main orders:

1. Paired tags (Container Tags)

These tags come in pair, starting of an opening tag and a corresponding ending tag, with the content placed in between.

For example:

2. Single Tags (No-Ending Tags or Stand-Alone Tags)

These tags don’t need an ending tag, as they’re self-sufficient and contain all necessary information within a single tag.

Note: If you later use React or a framework like Next.js, you’ll need to close tags like this. So, it’s a good idea to get into the habit!

For example of no closing tags:

Image Representation of HTML Tags

The image below provides a image definition of the structure of tags in HTML. It demonstrates that an element can pass other element, which in turn may contain indeed more rudiments, creating a tree- suchlike arrangement.

HTML Tag Structure

(This image here showing a box taged "<body>" containing two other boxes, one taged "<h1>My Heading</h1>" and another taged "<p>Some text.</p>". This imagely represents nesting of tags.)

This scale features both no- closing tags and nested tags, as shown in the example.

image representation of HTML tag structure

A example showing the structure of HTML elements.