Popular HTML Tag Examples - A Beginner's Guide into HTML

Updated · May 10, 2022

HTML is the building block of the internet.

Nearly 95% of all websites utilize it, in one form or another.

It is simple, yet flexible and powerful enough to craft pretty, albeit static, web pages.

If you are curious to discover some of its building blocks, here's a collection of the most basic HTML tags:

The Basics

The tags that follow enter at the very beginning of the HTML tag and have informative, rather than building functions, i.e. they don't alter what the end-users 

<!DOCTYPE html>

HTML Declaration. Informs the browser that the document type is HTML. Always start HTML documents with this tag. 


Specifies the root element. This element encompasses all other elements of the document.


Contains or links to metadata about the document, like the title, meta tags, scripts, and stylesheets. Place it before the body element.


Defines the visible portion of the HTML document. It contains text, images, lists, tables, etc. Limited to one body element per document.

HTML Document Metadata - Contained in the <head> Element

Document metadata is quite important for SEO and overall functionality of the website.


Defines the document title. Browsers display this as the title of the page in the title bar.


Contains style information about the document. Using stylesheets is usually preferred to the style tag.


Links the HTML document to another document. Is usually used to link to stylesheets.


Specifies other metadata about the document (e.g., page description, keywords, character encoding, etc.)

Sectioning Elements

With the following tags you can create sunheadings and break lines.

<h1></h1>, <h2></h2>, <h3></h3>, <h4></h4>, <h5></h5>, <h6></h6>

Defines headings in the document. <h1></h1> is the highest level of heading (usually used once per document), while <h6></h6> is the lowest.


Adds a line break (carriage-return).

Text Block Elements

The tags that follow help structure your text.


Defines a paragraph.


Marks a section of the text as an extended quotation. The text is typically rendered as indented from both sides. The reference to the text which follows is usually marked with a <cite> tag.


Marks a section of text referencing a previously cited work. The text within the <cite> tag should contain the name of the referenced work. Often embedded into the <footer> tag. 


Selects a block of text for styling. Usually styled with CSS using an “id” or “class” attribute. The section of text is rendered as a separate paragraph by the browser.


Creates an unordered list.


Creates an ordered list


Adds a new item to an ordered or an unordered list.

Inline Text Elements

The tags listed below will allow you to format your text through emphasis, bolding, italics, and so forth.


Emphasizes a section of text for strong importance. Usually represented as bold text by browsers.


Brings element to attention (creates bold text). Using <strong> instead of <b> tag is usually preferable.


Emphasizes a section of the text for stress. Usually rendered in italics. <em> tags can be nested for added emphasis.


Creates text in italics. Using the <em> tag instead of <i> is usually preferable.


Creates text with a strikethrough.


Selects a section of inline text for styling. Does not obstruct the paragraph.


Creates a hyperlink. The link is specified by the “href” attribute. The hyperlink can lead to another page, a location on the same page, an email address, etc.

Image Content

Images are an intrinsic part of most websites and HTML has the right tags for managing them.


Embeds an image into the document.


Maps a clickable part of an image. The part usually links to another location.


Defines which area of the map is clickable. Is a child of the <map> tag. 


Now, HTML is awesome and grants a lot of web design possibilities, but it can structure and handle only static content. For more advanced functionalities, scripting languages like JavaScript come in handy.


Links to or embeds executable code. Typically used to execute JavaScript code in the document.


Displays alternate content if the code in the <script> tag fails to execute.


Tables are a great way to structure data on a web page. Here are the most popular HTML table tags.


Creates a table.


Creates a caption for the table. Is always the first child of the <table> element.


Defines a group of rows within the head of a table.


Defines a group of rows within the body of a table.


Defines a group of rows summarizing the content of the table.


Defines a group of columns within a table.


Defines a column within a table. Is usually used as a child of the <colgroup> element. Used to change the semantics of a particular column (e.g., change its color).


Adds a row of cells to the table. The row can contain <th> or <td> elements.


Adds a cell which functions as a header of a group of cells.


Adds a data cell to a row (a typical table cell).


The HTML tags for forms are numerous With them, you can create a variety of interactive elements to capture data and to improve the on-page experience.


Adds a form to the document.


Creates a caption. Generally used to easily associate a caption with an input element by using the “for” and “name” attributes.


Creates a dropdown list which allows one value to be selected. 


Adds a value to the <select> list. Options can be grouped together within the list with the <optgroup> tag.


Adds an element that visually represents a fractional value or a scalar value within a specified range.


Adds a clickable button. Can be used anywhere in the document, but is often found in forms.


Adds an element that allows input of data. There are many types of input elements, selected with the “type” attribute.

Common Input Types

Here are some of the most useful input elements.


Adds a checkbox. The checkbox can be checked or unchecked by default, depending on whether the “checked” boolean is present


Adds a textbox. The form only allows form submission if the text follows the format of an email address.


Adds a calendar that allows specifying a date.


Adds a textbox. The value entered into the textbox is obscured. “Minlength” and “maxlength” attributes are often used to set the minimum and maximum character length of the value.


Adds a radio button. Only one radio button in a group with the same “name” attribute may be selected.


Adds a button that submits the form.


Adds a textbox that allows single-line textual input. Any line breaks are removed.


Adds a button with no predefined function.


Resets all input elements to their original value.


Adds a browse button that allows file upload.

HTML5 Tags

HTML5 differs from the previous iterations of the markup language, allowing for 

Semantic Tags

Semantic tags give the browser and search engines information about the role of a section of content. They section blocks of text, but they also help browsers with displaying parts of a page properly and help search engines with understanding the purpose of sections of content.


Defines a thematically grouped section of the document, such as header, footer, etc. A section typically contains at least one heading.


Defines an independent part of the document. It is typically on a lower level than the <section> element, but the content in it should make sense standing alone (without the rest of the document).


Places introductory elements into the header. Often used for navigational elements, website logos, search bars, etc.


Places a section of the text into the footer. Usually used for references to other works or links to relevant content.


Marks the most important section of the document.


Defines content that will be put to the side. Usually used for creating sidebars.


Marks a section of a document containing navigational elements (e.g. homepage button).


Highlights a section of text.


Creates a widget that can be toggled (opened) to display the text in the tag.


Used as a child of the <details> element. The summary is the text displayed by the <details> element before being clicked. When clicked, the <details> element expands to display the text.


Used to group an image together with its corresponding caption.


Child of the <figure> element. Used to specify a caption (explanation) for a visual element.

Media Embedding

These tags let browsers display other file types without having to rely on plugins.


Embeds an audio file into the document.


Embeds a video file into the document.


Embeds an external piece of content or an interactive application into the document.

Branko Krstic
Branko Krstic

Branko is a round-the-clock tech geek and loving it. His ideal vacation destination is the Akihabara District (or really any place he can take his computer). If there’s a server out there, count on him to find out what it’s made of… and tell you all about it.