Introduction to Elements in HTML

HTML Elements: In this instructional exercise, we will find out about the prologue to components in HTML code.

A component is an essential part that is utilized to create pages. For the most part a component as two segments: a beginning tag and an end tag. The substance is included between the beginning and shutting labels. The closure tag is equivalent to the beginning the gazing tag aside from that the completion tag goes before with a “/“.


    <h1 align="right"> A HEADING </h1>


  • H1: label name, beginning tag
  • align=”right”: name and value. It is a characteristic
  • A HEADING: Content
  • /H1: end tag

Sorts of the HTML components

The components in the HTML are ordered in two kinds,

1) Container Elements

These components have a beginning and a consummation tag. The substance is given in the middle of the labels.


    <b>this element is used for bold text</b>

2) Empty Elements

These components don’t contain a closure tag. They have a beginning label in particular. These components are utilized for playing out some particular functions.


    This element is used to give a horizontal rule or say line.
    <hr />

The HTML components can likewise be utilized in a settled structure.

    <b> <i> to give BOLD and ITALICS letters </i> </b>

With the settled components one should cautious with the end labels. That implies the internal labels ought to be shut first then the external labels. Like in the above example, the <i> label shut before the <b> tag.


It is otherwise called inline components, they influence the presence of the content in a site page.

It is of two kinds,

1) Physical Elements

It is otherwise called the character arranging components, it indicates the showcase of the content on the page. For example: to feature or to underline the content in the site page. Some usually utilized components are BOLD ( <b>…</b> ), ITALICS ( <i>…</i> ), UNDERLINE ( <u>…</u> ), SUPERSCRIPT ( <sup>…</sup> ), SUBSCRIPT ( <sub>…</sub> ), and STRIKE ( <strike>…</strike> ).

2) Logical Elements

It depicts the sensible or general portrayal of the site page. These components are utilized to characterize the basic significance of the content. Some usually utilized sensible components are SAMPLE, CODE, CITE, STRONG, EMPHASIS, VARIABLE.


The square components are utilized for characterizing a square of content in the HTML record. These components could be settled and utilized. It gives a structure of a square containing other square components. Some regular examples are HEADING, PARAGRAPH, BREAK, HR AND CENTER. A few Elements of HTML

This component characterizes the ones complete HTML archive. Additionally, it is utilized as the primary tag of the HTML archive. It is a holder component as it has both the beginning and shutting tag.


    <HTML> ... </HTML>


This component characterizes the body of the record. The component or the substance that must be added to the page is given in the HTML body. It has both the beginning and the consummation tag.

    <BODY> ... </BODY>


The component is utilized for the leader of the record. This component contains the title of the record, connecting to contents, including style by style tag, and so on.

        <STYLE> . . . </STYLE>

Leave a Comment

error: Alert: Content is protected!!