Skip to content
Related Articles

Related Articles

HTML Tags – A to Z List

View Discussion
Improve Article
Save Article
  • Difficulty Level : Easy
  • Last Updated : 19 Sep, 2022
View Discussion
Improve Article
Save Article

To start learning HTML you need to start with HTML tags, there are various tags that we must consider and know about while starting to code in HTML.

HTML Tags: HTML tags are the keywords that are used to produce web pages in various formats. Opening tags and closing tags are found in the majority of tags. The concluding tags contain a forward slash (/), while the language of the beginning tags is the same. Certain tags don’t need to be closed.



<!DOCTYPE html>
<!-- head tag -->
    <title>Welcom to Geeksforgeeks</title>
<!-- Body tag -->
      A Computer Science Portal for Geeks
      Please change the code and click the 
      Run the button to see the changes.

A to Z HTML Tags: The complete list of HTML tags are given below.





!DOCTYPE htmlAccording to the HTML specification or standards, every HTML document requires a document type declaration.< !DOCTYPE html >
abbreviationThe abbreviation tag in HTML is used to define the abbreviation or short form of an element.<abbr title=” “> … </abbr>
acronymThe acronym tag in HTML is used to define the acronym that gives useful information to browsers, translation systems, and search engines.<acronym title=” “> … </acronym>
addressThe address tag in HTML indicates the contact information of a person or an organization.<address> … </address>
anchorThe anchor tag in HTML is used to create a hyperlink on the webpage.<a herf=” “> …</a>
appletThe applet tag in HTML was used to embed Java applets into any HTML document, discontinued starting from HTML 5.<applet>….</applet>
areaThis area tag is used in an HTML document to map a portion of an image to make it clickable by the end-user.<area>
articleThe <article> tag is one of the new sectioning element in HTML5. The tag is used to represent an article.<artcile>..</article>
asideThe <aside> tag is used to describe the main object of the web page in a shorter way like a highlighter.<aside>..</aside>
audioIt is a useful tag if you want to add audio such as songs, interviews, etc. on your webpage.<audio>..</audio>
baseThe HTML base tag is used to specify a base URI, or URL, for relative links. This URL will be the base URL for every link on the page.<base href = ” “>
basefontThis tag is used to set the default text-color, font-size, & font-family of all the text in the browser. Not supported in HTML5.<basefont>
bdiThe bdi tag refers to Bi-Directional Isolation. It differentiates a text from other text that may be formatted in a different direction.<bdi> … </bdi>
bdoThe bdo stands for Bi-Directional Override. This tag is used to specify the text direction or used to change the current direction.<bdo dir> Contents… </bdo>
bgsoundThe bgsound tag is used to play the soundtrack in the background.<bgsound src=””>
bigThe big tag in HTML is used to increase the selected text size by one larger than the surrounding text. In HTML 5.<big> Contents… </big>
blockquoteThe blockquote tag in HTML is used to display the long quotations (a section that is quoted from another source).<blockquote> Contents… </blockquote>
bodyThe body tag in HTML is used to define the main content present inside an HTML page.<body> Contents… </body>
boldThe bold tag in HTML is used to specify the bold text without any extra importance.<b>… </b>
breakThe break tag inserts a single carriage return or breaks in the document. This element has no end tag.<br>
buttonThe button tag in HTML is used to define the clickable button. <button> tag is used to submit the content.<button type = “button”>
captionThe caption tag is used to specify the caption of a table. Only one caption can be specified for one table.<caption align = “value”></caption>
canvasIt can be used to draw paths, boxes, texts, gradients, and add images.<canvas id = “script”> Contents</canvas>
centerThe center tag in HTML is used to set the alignment of text in the center. Not supported in HTML5.<center> Contents.</center>
citeThe cite tag in HTML is used to define the title of a work. It displays the text in italic format.<cite>Content</cite>
codeThe code tag in HTML is used to define the piece of computer code.<code>Contents</code>
colgroupIt is useful for applying styles to entire columns, instead of repeating the styles for each column, and for each row<colgroup> Column lists </colgroup>
columnThe col tag in HTML is used to set the column properties for each column within a colgroup tag.<col attribute = “value”>
commentThe comment tag is used to insert comments in the HTML code.<!–…–>
dataThe data element gives an address to a given content with a machine-readable translator.<data value=””> Contents </data>
datalistThe datalist tag is used to provide autocomplete feature & used with an input tag so that users can easily fill the data in the forms using select the data.<datalist>Contents</datalist>
ddThe dd tag is used to denote the description or definition of an item in a description list.<dd>Contents</dd>
defineThe define tag in HTML represents the definition element and is used to represent a defining instance in HTML.<dfn>Contents</dfn>
deleteDelete tag is used to mark a portion of text which has been deleted from the document.<del>Contents</del>
detailsThis tag is used to create an interactive widget that the user can open or close.<details>Contents</details>
dialogThis tag is used to create a popup dialog and models on a web page. This tag is new in HTML5.<dialog open> Contents… </dialog>
dirThe dir tag is used to make a list of directory titles. It is not supported in HTML 5 <ul> or CSS are used instead of <dir> tag.<dir> Lists… </dir>
divThe div tag is used in HTML to make divisions of content in the web page (text, images, header, footer, navigation bar, etc).<div>Content</div>
dlThe dl tag in HTML is used to represent the description list. In HTML4.1, it defines definition list and in HTML5, it defines description list.<dl> Contents… </dl>
dtThe dt tag in HTML is used to specify the description list. It is used inside the <dl> element. It is usually followed by a <dd> tag.<dt> Content… </dt>
embedIt is used as a container for embedding plug-ins such as flash animations.<embed attributes>
fieldsetThe fieldset tag in HTML5 is used to make a group of related elements in the form, and it creates the box over the elements.<fieldset>Contents</fieldset>
figcaptionThe figurecaption tag in HTML is used to set a caption to the figure element in a document. This tag is new in HTML5.<figcaption> Figure caption </figcaption>
figureThe figure tag in HTML is used to add self-contained content like illustrations, diagrams, photos, or codes listed in a document.<figure> Image content… </figure>
fontThe font tag in HTML plays an important role in the web page to create an attractive and readable web page.<font attribute = “value”> Content </font>
footerThe footer tag in HTML is used to define a footer of HTML document. This section contains the footer information.<footer> … </footer>
formThis form is used basically for the registration process, logging into your profile on a website or creating your profile on a website, etc …<form> Form Content… </form>
frameHTML Frames are used to divide the web browser window into multiple sections. Not supported in HTML5.<frame/>
framesetThe frameset element contains one or more frame elements. It is used to specify the number of rows and columns in a frameset with their pixel of spaces.<frameset cols = “pixels|%|*”>
headThe head tag in HTML is used to define the head portion of the document which contains information related to the document.<head>…</head>
headerThe header tag is used to contain the information related to the title and heading of the related content.<header> …</header>
headingAn HTML heading tag is used to define the headings of a page. These 6 heading elements are h1, h2, h3, h4, h5, and h6; with h1 being the highest level and h6 being the least.<h1>Heading1</h1><h2>Heading2</h2>
hgroupThe hgroup tag in HTML is used to wrap one or more heading elements from <h1> to <h6>, such as the headings and sub-headings.<hgroup> … </hgroup>
hrThe hr tag in HTML stands for horizontal rule and is used to insert a horizontal rule.<hr>
htmlThe html tag in HTML is used to define the root of HTML and XHTML documents.<html> Contents </html>
IframesThe iframe tag defines a rectangular region within the document in which the browser can display a separate document.<iframe src=”URL” title=”description”></iframe>
imageHTML Image, how to add the image in HTML. In earlier times, the web pages only contains textual content, which made them appear quite boring and uninteresting.<img src=”url” alt=”some_text” width=”” height=””>
inputThe input tag is used within < form> element to declare input controls that allow users to input data.<input type = “value” …. />
insThe ins tag is typically used to mark a range of text that has been added to the document.<ins> Contents… </ins>
isindexThe index tag is used to query any document through a text field.<isindex prompt=”search”>
italicThis tag is generally used to display a technical term, phrase, the important word in a different language.<i> Contents</i>
kbdThe text enclosed within kbd tag is typically displayed in the browser’s default monospace font.<kbd> text content … </kbd>
keygenThe keygen tag in HTML is used to specify a key-pair generator field in a form. When a form is submitted then two keys are generated, the private key and a public key.<keygen name = “name”>
labelThe label tag in HTML is used to provide a usability improvement for mouse users.<label> form content… </label>
legendThe legend tag is used to define the title for the child contents. The legend elements are the parent element.<legend> Text </legend>
listThe list tag in HTML is used to define the list item in an HTML document. It is used within an Ordered List <ol> or Unordered List <ul>.<li> List Items </li>
mainThe main tag is used to give the main information of a document. The content inside the <main> element should be unique for the document.<main>Coontents</main>
markThe mark tag in HTML is used to define the marked text. It is used to highlight the part of the text in a paragraph.<mark> Contents… </mark>
marqueeThe marquee tag in HTML is used to create scrolling text or images on a webpage. It scrolls either horizontally or vertically.<marquee>Contents</marquee>
menuitemThe menuitem tag is used to define a command or menu that the user can utilize from the popup item. Not supported in HTML5.<menuitem label=”” icon=”” type> </menuitem>
metaThe meta tag is regularly used to give watchwords, portrayals, author data, and other metadata that might be utilized by the program to deliver the document accurately or in simple words, it provides important information about a document.<meta attribute-name=”value”>
meterIt is used to define the scale for measurement in a well-defined range and also supports a fractional value.<meter attributes…> </meter>
navThe nav tag is used for declaring the navigational section in HTML documents. Websites typically have sections dedicated to navigational links, which enables users to navigate the site.<nav> Links… </nav>
nobreakThe no break tag is used to create a single line text, that does not matter how long the statement is, this tag is used with <wbr> tag.<nobr> Statement </nobr>
noembedThe noembed tag is used to show that the browser is not supported by <embed> tag.<noembed> Element </noembed>
noscriptThe noscript tag in HTML is used to display the text for those browsers which does not support the script tag or the browsers disable the script by the user.<noscript> Contents… </noscript>
objectThe object tag is an HTML tag used to display multimedia like audio, videos, images, PDFs, and Flash on web pages.<object>…</object>
optgroupThis tag is used to create a group of the same category options in a drop-down list.<optgroup>…</optgroup>
optionThe option tag in HTML is used to choose an option from a Drop-Down menu.<option> Contents… </option>
outputThe output tag in HTML is used to represent the result of a calculation performed by the client-side script such as JavaScript.<output> Results… </output>
paragraphsThe <p> tag in HTML defines a paragraph. These have both opening and closing tags.<p> Content </p>
paramThe param tag in HTML is used to define a parameter for plug-ins which is associated with <object> element.<param name=”” value=””>
phraseIn HTML, phrase tag is used to indicate the structural meaning of a block of text.<em> Text Content </em>
preThe pre tag in HTML is used to define the block of preformatted text which preserves the text spaces.<pre> Contents… </pre>
progressIt is used to represent the progress of a task. It is also defined how much work is done and how much is left to download a thing.<progress attributes…> </progress>
qThe q tag is a standard quotation tag and is used for short quotations.<q> Contents… </q>
rpThe rp tag in HTML is used to provide parentheses around a ruby main text which defines the information.<rp>[</rp> Explaination… <rp>]</rp>
rtThe rt tag in HTML is used to define the explanation of the ruby annotation which is a small text, attached to the main text.<rt> Explanation… </rt>
rubyThe ruby tag in HTML is used to specify the ruby annotation which is a small text, attached with the main text to specify the meaning of the main text.<ruby attributes> Contents… </ruby>
sThis tag is used to specify that the text content is no longer correct or accurate. This tag is similar but slightly different from <del> tag.<s> Contents… </s>
sampIt is a phrase tag used to define the sample output text from a computer program.<samp> Contents… </samp>
scriptThe script tag in HTML is used to define the client-side script.<script> Script Contents… </script>
sectionSection tag defines the section of documents such as chapters, headers, footers, or any other sections.<section> Section Contents </section>
smallThe small tag in HTML is used to set small font sizes. It decreases the font size by one size (from medium to small, from x-large to large).<small> Contents… </small>
sourceThe source tag in HTML is used to attach multimedia files like audio, video, and pictures.<source src=”” type=””> </source>
spacerThe spacer tag is used to create some white space. Not-supporte in HTML5 .<spacer type=”” size=””>
spanThe HTML span element is a generic inline container for inline elements and content.<span class=””>Some Text</span>
strikeHTML strike tag, along with understanding its implementation through the example. The <strike> tag defines a strike or line through Text.<strike> Contents </strike>
strongThe strong tag in HTML is the parsed tag and is used to show the importance of the text. Make that text bold.<strong> Contents… </strong>
styleThe style tag in HTML helps us to design the web page.<tagname style=”property:value;”>
sub and sup Tags
  • The sub-tag is used to add a subscript text to the HTML document.
  • The <sup> tag is used to add superscript text to the HTML document.
<sub>subscript text</sub><sup>superscript text</sup>
summaryThe <summary> tag in HTML is used to define a summary for the <details> element.<summary> Content </summary>
svgHTML SVG Basics, & their implementation through the examples. SVG stands for Scalable Vector Graphics.<svg height=”” width=””>
tableHTML Table, various ways to implement it, & will also understand its usage through the examples. HTML Table is an arrangement of data in rows and columns, or possibly in a more complex structure.<table>… </table>
tbodyThe tbody tag in HTML is used to make a group of the same type of content of the body element.<tbody> // Table contents </tbody>
tdThe table data tag is used to define a standard cell in an HTML table.<td>……..</td>
templateThe template tag in HTML is used to store the HTML code fragments, which can be cloned and inserted in an HTML document.<template> Contents </template>
tfootThis tag is used in HTML table with header and body which is known as “thead” and “tbody”.<tfoot> // Table footer contents… </tfoot>
thThe table header tag in HTML is used to set the header cell of a table. Two types of cells in the HTML table Header & Standard.<th> Contents… </th>
theadThis tag is used in HTML tables as head and body which are known as thead and tbody.<thead>Table head Contents…</thead>
timeThe time tag is used to display the human-readable date/time. It can also be used to encode dates and times in a machine-readable form.<time attribute> Time… </time>
titleThe title tag in HTML is used to define the title of HTML document. It sets the title in the browser toolbar.<title> Title name </title>
trThe table row tag is used to define a row in an HTML table. The <tr> element contains multiple <th> or <td> elements.<tr>…..</tr>
trackThe tracking tag specifies text tracks for media components audio and video.<track attribute>
ttThe tt tag is the abbreviation of teletype text. This tag is depreciated from HTML 5. It was used for marking Keyboard input.<tt> Contents… </tt>
underlineThe underline tag in HTML stands for underline, and it’s used to underline the text enclosed within the <u> tag.<u> Contents… </u>
varIt is a phrase tag used to specify the variable in a mathematical equation or in a computer program.<var> Contents… </var>
videoHTML5 Video, along with knowing the different ways to add the videos to the HTML page.<video src=”” controls> </video>
wbrThe wbr tag is used to define the position within the text which is treated as a line break by the browser.<wbr>
xmpThe XMP tag is used to create any content in letter format.<xmp> statement </xmp>


Web developers starting sometimes need a simple, quick reference list of basic HTML tags. We have an article on the Most used HTML tags- Most commonly used tags in HTML.

HTML is the foundation of webpages, is used for webpage development by structuring websites and web apps.You can learn HTML from the ground up by following this HTML Tutorial and HTML Examples.

My Personal Notes arrow_drop_up
Recommended Articles
Page :

Start Your Coding Journey Now!