TYPE OF TAGS in HTML

CONTAINER TAGS

In HTML, tags that include both an “On” (start or opening tag) and a “Off” (end or closing tag) tag are called container tags.
Example
HTML is an On tag
/HTML is an Off tag
This tags contain relevant text between them.

EMPTY TAGS

In HTML,tags that include only “On” (start or opening tag) tags and no “Off” tags.
Example
BR stands for Break tag and has only ON tag

A PROGRAM USING BOTH THE TAGS

OUTPUT:
TAG_TYPE

BASIC TAGS OF HTML

In creating HTML document the first thing is Html tags.

It includes <and> if we do not use < and> web browser treat this command as text.

Tags are not case sensitive.

<HTML> shows the beginning  of tag whereas </HTML> shows ending of the tag.

HTML document has two distinct parts a head and a body

In head we can enter the title

To create the head portion of your HTML document type the following text:-

OUTPUT:

tag

In body we can add text, graphics etc.

To create the body portion of your HTML document type the following text:-

OUTPUT:

tag1