Basic tag in HTML


Heading Element


The Heading Element define headings for contents such as a text or images.

H1 to H6

The Heading Element define headings for contents such as a text or images.Html defines six levels of heading that ranges from H1 to H6.

Heading Element

h1
output

Heading element

Heading element

Heading element

Heading element

Heading element
Heading element

Paragraph

   P
The <p> tag defines a paragraph. Browsers automatically add a single blank line before and after each <p> element.
paragraph
output

Here is a first paragraph of text.

Here is a second paragraph of text.

Here is a third paragraph of text.


BREAK

   br
The <br> tag inserts a single line break.The <br> tag is an empty tag which means that it has no end tag. The <br> tag to enter line breaks, not to add space between paragraphs.
break
output

Hello
i am break tag.


Pre formatted

pre
<pre> tag defines preformatted text. Text in a <pre> element is displayed in a fixed-width font, and the text preserves both spaces and line breaks. The text will be displayed exactly as written in the HTML source code.
pre
output
          i am pre 
					formatted tag

Horizontal-line

hr
The <hr> element is most often displayed as a horizontal line that is used to separate content (or define a change) in an HTML page.It is used for create a line.
hr
output

html


hyper text markup language

Bold,Italic,Underline

   B
element displays the text in bold.The text that needs to be displayed in bold is enclosed between <b >and </b>tags.

   I
element displays the text in italic.The text that needs to be displayed in italic is enclosed between <i >and </i>tags.

   U
element displays the text in underline.The text that needs to be displayed in underline is enclosed between <u >and </u>tags.

bold
output
bold
italic
underline
student

CENTER

center
The <center> tag in HTML is used to set the alignment of text into the center.
center
output
html

Subscript

SUBSCRIPT
Subscript text appears half a character below the normal line, and is sometimes rendered in a smaller font. Subscript text can be used for chemical formulas, like H2O.
sub
output
H20

Superscript

SUPERSCRIPT
Superscript text appears half a character above the normal line and is sometimes rendered in a smaller font. Superscript text can be used for footnotes. like 102.
sup
output
102