Learn Basic HTML Tags

A simple guide with descriptions and examples.

<h1> to <h6>

Headings are used for titles and sub-titles. <h1> is the largest, and <h6> is the smallest.

Main Heading

Subheading

<p>

The paragraph tag is used to add blocks of text.

This is a paragraph of text.

<a>

The anchor tag creates hyperlinks to other pages or websites.

Visit Example

<img>

The image tag is used to add images to a webpage.

Placeholder image

<ul> and <ol>

Lists can be unordered (bullets) or ordered (numbers).

  1. First
  2. Second

<table>

Tables organize data into rows and columns.

Name Age
Alice 25
Bob 30

<button>

The button tag creates a clickable button.

<input>

The input tag is used to create form fields like text boxes and checkboxes.





Accept

<div> and <span>

Div is a block-level container, while span is an inline container for text.

This is a div

This is a span inside text.