HTML Examples

Last Updated : 24 Jul, 2025

HTML (HyperText Markup Language) is the backbone of the web, forming the structural foundation of every website. Whether you're just starting out or you're an experienced developer in need of a quick refresher, learning through examples is one of the most effective ways to understand HTML in action.

In this article, we've organized all the essential HTML concepts and paired them with clear, practical examples to help you see exactly how each element works in real-world scenarios.

HTML Examples

Note: If you want to learn HTML Concepts then check out HTML Tutorials.

1. Basic HTML Tags and Structure

Html defines the structure of the webpage. It uses a system of tags to define elements like headings, paragraphs, links, images, and more. Every HTML document starts with a basic structure that includes tags like , , and . Inside the , common tags such as

to
define headings,

defines paragraphs, and is used for hyperlinks. Understanding these basic tags is the first step to building web pages.

HTML Basic Structure

html-structure
HTML Basic Structure
S.NoTopic Name
1HTML Document Structure
2HTML Headings
3HTML Paragraphs
4HTML Links
5HTML Images
6HTML Buttons
7HTML Lists

2. HTML Attributes

HTML Attributes are special words used within the opening tag of an HTML element. They provide additional information about HTML elements. HTML attributes are used to configure and adjust the element’s behavior, appearance, or functionality in a variety of ways.

Each attribute has a name and a value, formatted as name=”value”. Attributes tell the browser how to render the element or how it should behave during user interactions.

S.NoTopic Name
1The title Attribute
2The href Attribute
3The width and height Attributes
4The alt Attribute
5Attribute Syntax and Usage

3. HTML Text Formatting

HTML text formatting refers to the use of specific HTML tags to modify the appearance and structure of text on a webpage. It allows you to style text in different ways, such as making it bold, italic, underlined, highlighted, or struck-through.

S.NoTopic Name
1Bold Formatting with
2Strong Formatting with
3Italic Formatting with
4Emphasized Formatting with
5Small Formatting with
6Marked Formatting with
7Deleted Text with
8Inserted Text with
9Subscript Formatting with
10Superscript Formatting with

4. HTML Lists and Tables

HTML Tables and Lists are essential tools for organizing and presenting content on a webpage. Tables are used to display data in rows and columns using tags like

, ,
, and . They're ideal for structured information such as schedules, comparisons, or reports. On the other hand, lists help display grouped items and come in three main types: ordered lists (
    ), unordered lists (