HTML tags are used to define the structural elements of an HTML document. They mark the beginning and end of each element, telling the browser how that element should be displayed.
| <a> | The a tag (also known as the anchor tag) is used to create links. If a URL is specified using the href attribute, it represents a hyperlink (shortened to "link") displayed as the tag's content. |
|---|---|
| <abbr> | The abbr tag represents an abbreviation or acronym. When combined with the title attribute, it helps clarify the full meaning of the abbreviated term. |
| <address> | The address tag represents contact information for the nearest ancestor <article> or <body> tag. If the ancestor is the <body>, the contact information applies to the whole document. |
| <article> | The article tag represents a complete or independently distinguishable composition, such as forum posts, news articles, blog entries, product cards, or user-submitted content. |
| <aside> | The aside tag represents a separate section of content that is indirectly related to the main content of a page. It is typically used for sidebars or additional information related to the document. |
| <blockquote> | The blockquote tag represents a section that is quoted from another source. It is used to indicate a standalone block of quoted content, which most browsers typically display with indentation. |
| <body> | The body tag represents the contents of the HTML document. This tag must be the second child of the root html element, following the head element. An HTML document must contain only one body tag. |
| <br> | The br tag represents a line break in text. t is used for line breaks that are an intrinsic part of the content, such as in poems, addresses, or descriptions where rhythm and readability are intentionally structured. |
| <button> | The button tag represents a button labeled by its contents. This tag creates a clickable button on a web page, and the text or image inside the button indicates its function. |
| <cite> | The cite tag represents the title of a creative work—like a book, musical, court case, exhibition, or software—and is typically used when referencing such works. |
| <del> | The del tag represents a range of text that has been deleted from a document. It is commonly used to indicate removed content, highlight changes, or show differences between revisions. |
| <details> | The details tag defines content that users can choose to open or close. It is commonly used to provide additional or detailed information. This article also covers the open attribute used with the details tag. |
| <summary> | The summary tag defines a heading or summary for the interactive widget created by the details tag. It is used to specify the content that is shown when the details are collapsed or expanded. |
| <dfn> | The dfn tag represents the term being defined within the content. It is used to clearly indicate that the term is being defined, and must appear only in sentences where both the term and its definition are present. |
| <div> | The div tag is a container used to create layouts or divide content. It does not carry any semantic meaning by itself. Instead, it is mainly used as a container to group content so that styles, attributes, or scripts can be applied. |
| <dl> | The dl tag represents a description list. This tag is an associated list of groups consisting of a name (specified using the dt tag) and a description of the name (provided using the dd tag). |
| <dt> | The dt tag represents the name in a group consisting of a name and a description of the name within a description list (represented using the 'dl' tag), and 'dt' is used as an abbreviation for 'Description Term'. |
| <dd> | The dd tag represents the description, definition, or value of the dt tag, and 'dd' is used as an abbreviation for 'Description Details.' This tag must be used as content of the dl tag. |
| <em> | The em tag is used to apply stress emphasis to text that carries greater contextual importance than the surrounding content. |
| <fieldset> | The fieldset tag represents a set of web form control elements (or other content) grouped together. |
| <legend> | The legend tag is used to represent a caption (a brief title or description) for the elements grouped together as a set by their parent fieldset tag. |
| <figure> | The figure tag represents self-contained content related to the main flow of the document, such as images, diagrams, or code blocks. You can optionally add a caption with the figcaption tag. |
| <figcaption> | The figcaption tag represents a caption or legend that references the content of its parent figure tag. It is optional, but when used, it must be placed as either the first or last child of the figure tag. |
| <footer> | Learn about the proper usage of the footer tag. It is typically used for the global footer at the bottom of a webpage or to include information such as the author, copyright, or related links for a section. |
| <form> | The form tag represents an area of a web form for submitting data. This area contains control elements related to web forms and is used to define a form for submitting the data from these elements. |
| <head> | The head tag contains a collection of elements related to document metadata, such as character encoding, titles, descriptions, stylesheets, and scripts. This information is not visible on the screen, but is essential for machine processing by browsers, search engines, and other web technologies. |
| <header> | The header tag is typically used to represent the global header at the top of a webpage, or the introductory content of a section or article. |
| <hr> | The hr tag represents a thematic break between paragraph-level elements (e.g., a scene change or a transition to a different topic within a section of a reference book). |
| <html> | The html tag is the top-level tag in an HTML document, representing the root element from which all other elements originate, like branches growing from it. |
| <h1>~<h6> | The h1, h2, h3, h4, h5, and h6 tags represent headings and define six levels of heading hierarchy, from level 1 to level 6, within a webpage's structure. |
| <iframe> | The iframe tag creates an inline frame within a web page, allowing another document to be embedded and navigated independently. For example, it can be used to embed YouTube videos or Google Maps. |
| <img> | The img tag represents an image. It is used to embed an image into an HTML document. |
| <input> | The input tag represents an interactive control used to accept input from users. It offers a wide range of control types based on the value of its type attribute, and its behavior can be finely customized using various additional attributes. |
| <ins> | The ins tag represents a range of text that has been added to a document or content that has been inserted. By default, most browsers display this inserted text with an underline. |
| <kbd> | The kbd tag represents user text input entered via input devices (not only keyboards, but also voice commands, mouse clicks, and other input methods). |
| <label> | The label tag represents a text label (or caption) for user interface control elements. It can be used with associated control elements to improve readability and enhance web accessibility. |
| <li> | The li tag represents an item in a list. The term 'li' is an abbreviation for 'list item'. When its parent element is an ol, ul, or menu, the li tag represents an item in the list as defined by that parent element. |
| <link> | The link tag is used to link the current document to external resources by specifying the relationship between them. It is used to connect various external resources, such as stylesheets, icons, fonts, related documents, and RSS feeds. |
| <main> | The main tag represents the main content area of a document. This tag semantically indicates an area containing dominant content, such as the core topic of a document or the main function of an application. |
| <mark> | The mark tag represents a portion of text within a document that is marked for reference or interest due to its contextual relevance.
|
| <menu> | The menu tag represents an unordered list of command items, such as a toolbar menu, that the user can activate. |
| <meta> | The meta tag represents various types of metadata that cannot be expressed using HTML metadata tags designed for specific purposes, such as title, base, link, style, and script. |
| <nav> | The nav tag represents a section that contains links for navigation, either to other web pages or to specific parts within the current page. Common examples include menus, tables of contents, and indexes. |
| <noscript> | The noscript tag represents content that can replace scripts for users whose browsers do not support scripting or who have disabled scripting in their browsers. |
| <ol> | The ol tag represents a list of items where the order is specified. The term 'ol' is an abbreviation for 'Ordered List,' meaning that changing the order of the items materially affects their meaning. |
| <p> | The p tag represents a paragraph. It is mainly used to group text content into paragraphs, and it can also contain elements that are considered part of the paragraph, such as images or form input elements. |
| <q> | The q tag represents some short phrase quoted from another source. It is used for short inline quotations, and most browsers display the text with quotation marks before and after to indicate that it is a quotation. |
| <picture>, <source> | The HTML picture and source tags help deliver optimized images for different screen sizes and devices, making them useful for responsive design and image optimization. |
| <script> | The script tag is used to embed client-side scripts or data blocks in an HTML document. It is most commonly used to include JavaScript code to implement dynamic HTML content or styles. This tag does not represent content for the user. |
| <section> | The section tag represents a generic section of a document or application. This section refers to a group of content organized by a specific topic, and while a heading is not required, it is commonly used. |
| <select> | The select tag represents a control for selecting options from a set of available options. Depending on its attributes, it is displayed as either a list box or a drop-down box. |
| <span> | The span tag is an inline container with no inherent semantic meaning, used to wrap text or other inline content for applying styles, attributes, or scripts. |
| <strong> | The strong tag represents strong importance, seriousness, or urgency for its contents. |
| <style> | The style tag represents an area for writing stylesheets within an HTML document. This area can contain only style rules and comments written in CSS. |
| <sub> | The sub tag represents subscript inline text. Subscript is rendered as smaller text that is positioned below the baseline. |
| <sup> | The sup tag represents superscript inline text. Superscript is rendered as smaller text that is positioned above the baseline. |
| <template> | The template tag is used to define reusable pieces of HTML that can be cloned and inserted into the document later using JavaScript. |
| <textarea> | The textarea tag represents a multi-line text input field. It is useful for allowing users to easily enter multiple lines of plain text, such as comments, reviews, simple notes, or source code. |
| <time> | The time tag represents a date or time in a standardized, machine-readable format. By using this tag to mark up date- or time-related content, you help screen readers, search engines, and other tools better understand and process the information. |
| <title> | The title tag represents the title or name of an HTML document. It can contain only text and is used as identifying information for the document (e.g., the title shown in the browser's title bar or page tabs). |
| <ul> | The ul tag represents a list of items where the order is not specified. The term 'ul' is an abbreviation for 'Unordered List,' meaning that changing the order of the items does not materially affect their meaning. |