What is html tag with example?

next → ← prev

HTML tags are like keywords which defines that how web browser will format and display the content. With the help of tags, a web browser can distinguish between an HTML content and a simple content. HTML tags contain three main parts: opening tag, content and closing tag. But some HTML tags are unclosed tags.

When a web browser reads an HTML document, browser reads it from top to bottom and left to right. HTML tags are used to create HTML documents and render their properties. Each HTML tags have different properties.

An HTML file must have some essential tags so that web browser can differentiate between a simple text and HTML text. You can use as many tags you want as per your code requirement.

  • All HTML tags must enclosed within < > these brackets.
  • Every tag in HTML perform different tasks.
  • If you have used an open tag , then you must use a close tag (except some tags)

Syntax

content


HTML Tag Examples

Note: HTML Tags are always written in lowercase letters. The basic HTML tags are given below:

Paragraph Tag

Heading Tag

Bold Tag

Italic Tag

Underline Tag

Test it Now

Unclosed HTML Tags

Some HTML tags are not closed, for example br and hr.


Tag
: br stands for break line, it breaks the line of the code.


Tag: hr stands for Horizontal Rule. This tag is used to put a line across the webpage.


HTML Meta Tags

DOCTYPE, title, link, meta and style


HTML Text Tags

,

,

,

,

,

,
, , , , ,
, ,
, , , , , , , ,
, ,  and 


and


HTML Image and Object Tags

What is html tag with example?
represents newly added Elements in HTML5.

HTML Tags by Alphabets

ABCDEFGHIJKLMNOPQRSTUVWXYZ


element.
Tag nameDescription
This tag is used to apply comment in an HTML document.
This tag is used to specify the version of HTML
A
It is termed as anchor tag and it creates a hyperlink or link.
It defines an abbreviation for a phrase or longer word.
It defines acronym for a word. (Not supported in HTML5)
It defines the author's contact information of the HTML article
It defines an embedded Java applet. (Not supported in HTML5)
It defines the area of an image map.
What is html tag with example?
It defines the self-contained content.
It defines content aside from main content. Mainly represented as sidebar.
It is used to embed sound content in HTML document.
B
It is used to make a text bold.
This tag defines the base URL for all relative URL within the document.
This tag is used to set default font, size and color for all elements of document. (Not supported in HTML5)
What is html tag with example?
This tag is used to provide isolation for that part of text which may be formatted in different directions from its surrounding text.
It is used to override the current text direction.
This tag is used to make font size one level larger than its surrounding content. (Not supported in HTML5)
It is used to define a content which is taken from another source.
It is used to define the body section of an HTML document.

It is used to apply single line break.
It is used to represent a clickable button
C
What is html tag with example?
It is used to provide a graphics space within a web document.
It is used to define a caption for a table.
It is used to align the content in center. (Not supported in HTML5)
It is used to define the title of the work, book, website, etc.
It is used to display a part of programming code in an HTML document.
It defines a column within a table which represent common properties of columns and used with the
It is used to define group of columns in a table.
D
What is html tag with example?
It is used to link the content with the machine-readable translation.
What is html tag with example?
It is used to provide a predefined list for input option.
It is used to provide definition/description of a term in description list.
It defines a text which has been deleted from the document.
What is html tag with example?
It defines additional details which user can either view or hide.
It is used to indicate a term which is defined within a sentence/phrase.
What is html tag with example?
It defines a dialog box or other interactive components.
It is used as container for directory list of files. (Not supported in HTML5)
It defines a division or section within HTML document.
It is sued to define a description list.
It is used to define a term in description list.
E
It is used to emphasis the content applied within this element.
What is html tag with example?
It is used as embedded container for external file/application/media, etc.
F
It is used to group related elements/labels within a web form.
What is html tag with example?
It is used to add a caption or explanation for the
element.
What is html tag with example?
It is used to define the self-contained content, and s mostly refer as single unit.
It defines the font, size, color, and face for the content. (Not supported in HTML5)
What is html tag with example?
It defines the footer section of a webpage.
It is used to define an HTML form.
It defines a particular area of webpage which can contain another HTML file. (Not supported in HTML5)
It defines group of Frames. (Not supported in HTML5)
H

to

It defines headings for an HTML document from level 1 to level 6.
It defines the head section of an HTML document.
What is html tag with example?
It defines the header of a section or webpage.

It is used to apply thematic break between paragraph-level elements.
It represents root of an HTML document.
I
It is used to represent a text in some different voice.