ADVERTISEMENTS

HTML Tags

HTML tags are used to structure and format the content of an HTML document. A tag is a set of characters enclosed in angle brackets, such as . Tags can be used to create different types of content, such as headings, paragraphs, images, links, and more.

Here is a list of commonly used HTML tags:

  • <html> : Defines the root element of an HTML document.
  • <head> : Contains metadata, such as the title and stylesheet of the document.
  • <title> : Defines the title of the document, displayed in the browser's title bar.
  • <body> : Contains the visible content of the document.
  • <h1>, <h2>, <h3>, <h4>, <h5>, <h6> : Defines headings of different levels (h1 being the most important and h6 being the least important).
  • <p> : Defines a paragraph of text.
  • <a> : Defines a hyperlink to another page or resource.
  • <img> : Embeds an image in the document.
  • <ul>, <ol>, <li> : Defines unordered and ordered lists, and list items.
  • <table>, <tr>, <th>, <td> : Defines a table, table rows, table headers, and table cells.
  • <form>, <input>, <button>, <label> : Defines a form with input fields, buttons, and labels.
  • <div>, <span> : Defines containers for other elements, used for styling and layout purposes.
  • <br>, <hr> : Inserts a line break or horizontal rule in the document.
  • <meta> : Defines metadata for the document, such as keywords and description for search engines.
  • <script> : Embeds a script, such as JavaScript, in the document.
  • <style> : Defines CSS styles for the document.
  • <header>, <nav>, <main>, <section>, <article>, <aside>, <footer> : Defines structural elements of a web page, used for accessibility and SEO purposes.
  • <canvas> : Provides a drawing area for graphics and animations.
  • <video>, <audio> : Embeds a video or audio element in the document.
  • <iframe> : Embeds another web page within the current document.

Note that this is not an exhaustive list and that there are many more HTML tags available. It's important to use tags appropriately and semantically, in order to create a well-structured and accessible document that can be easily understood by both humans and machines. Here is a list of all HTML tags in alphabetical order, along with a brief description of each one:

ADVERTISEMENTS
  • <a> : Defines a hyperlink to a web page, file, or email address.
  • <abbr> : Defines an abbreviation or acronym.
  • <acronym> : Defines an acronym (this tag is deprecated in HTML5).
  • <address> : Defines contact information for the author/owner of a document or article.
  • <applet> : Embeds a Java applet into a web page.
  • <area> : Defines a clickable area within an image map.
  • <article> : Defines an article or piece of content on a web page.
  • <aside> : Defines content that is tangentially related to the main content on a web page.
  • <audio> : Embeds an audio file into a web page.
  • <b> : Defines bold text.
  • <base> : Defines the base URL for all relative URLs on a web page.
  • <basefont> : Defines a default font size for text on a web page (this tag is deprecated in HTML5).
  • <bdi> : Defines text that is isolated from the surrounding text directionality settings.
  • <bdo> : Defines the directionality of text (either left-to-right or right-to-left).
  • <big> : Increases the font size of text (this tag is deprecated in HTML5).
  • <blockquote> : Defines a long quotation from another source.
  • <body> : Defines the body of a web page.
  • <br> : Inserts a single line break.
  • <button> : Defines a clickable button.
  • <canvas> : Defines a drawing area for graphics on a web page.
  • <caption> : Defines the caption for a table.
  • <center> : Centers the content of a web page (this tag is deprecated in HTML5).
  • <cite> : Defines the title of a work, such as a book or article.
  • <code> : Defines a piece of computer code.
  • <col> : Defines the properties for a single column within a table.
  • <colgroup> : Defines the properties for one or more columns within a table.
  • <datalist> : Defines a list of predefined options for an input element.
  • <dd> : Defines a description for an item in a description list.
  • <del> : Defines deleted text (i.e. text that has been removed from a document).
  • <details> : Defines additional details that the user can view or hide on a web page.
  • <dfn> : Defines a term that is being defined within a document.
  • <dialog> : Defines a dialog box or window.
  • <dir> : Defines a directory list (this tag is deprecated in HTML5).
  • <div> : Defines a container for content on a web page.
  • <dl> : Defines a description list.
  • <dt> : Defines a term in a description list.
  • <em> : Defines emphasized text.
  • <embed> : Embeds external content (such as a video or audio clip) into a web page.
  • <fieldset> : Groups related elements in a form.
  • <figcaption> : Defines a caption for a figure element.
  • <figure> : Defines a self-contained content block, such as an image with a caption.
  • <font> : Defines the font face, size, and color for text (this tag is deprecated in HTML5).
  • <footer> : Defines the footer of a web page or section.
  • <form> : Defines a form for user input on a web page.
  • <frame> : Defines a single frame within a frameset (this tag is deprecated in HTML5).
ADVERTISEMENTS