This page contains reference for 30 common HTML tags and elements. Each section shows an example of how the tag can be used.
The html tag is the root element of the webpage, meaning it is the main container for the entire HTML document.
Example: <html> ... </html>
The head holds metadata about the webpage that is not displayed directly on the page.
Example: <head> ... </head>
The body defines the document's body that displays the content on the webpage.
Example: <body>Hello world!</body>
The meta element provides information about the webpage, such as its character set and description.
Example: <meta charset="UTF-8">
The div tag is used to group and organize HTML elements into distinct sections.
Example: This paragraph is inside a div element.
Heading elements are used to organize the content of a webpage. H1 is the highest-level heading and h6 is the lowest-level heading.
The p element is used to create a paragraph.
Example: This is an example of a paragraph.
The b element defines bold text(s).
Example: This is normal text, and this is bold text.
The i element displays text in an italic style.
Example: italic text.
The u element represents text that is underlined.
Example: underlined text.
The span element is used to define a section in a document.
Example: This is text inside a span element.
The blockquote element defines a section that is quoted from another source.
Example: "Honey bees are super-important pollinators for flowers, fruits and vegetables."
The br element creates a single line break.
Example:
This is the first line.
This is the second line.
The hr element creates a thematic break between sections.
Example:
The a element creates a hyperlink.
Example: Visit strawberry shortcake recipe to learn how to bake a yummy strawberry shortcake.
The img element displays an image on a webpage.
Example:
The iframe element displays another webpage inside the current page.
Example:
The ul element creates an unordered list.
Example: Grocery list:
The ol element creates an ordered list.
Example: Following a recipe:
The table element is used to display information in rows and columns.
| Symbol | Element Name |
|---|---|
| H | Hydrogen |
| He | Helium |
| Li | Lithium |
The caption element provides a table caption.
Example:
| Name | Course |
|---|---|
| Andrew | English |
The th element creates a header cell in a table.
Example:
| Name | Age |
|---|---|
| Andrew | 22 |
The tr element creates a row in a table.
Example:
| This is one table row. |
The td element creates a cell inside a table.
Example:
| A table data cell. | Another cell. |
HTML reference. (n.d.). W3Schools. https://www.w3schools.com/TAGS/default.ASP