HTML (HyperText Markup Language) is the standard markup language for creating and structuring web pages.It tells the browser what content to display (text, images, links, videos, forms, etc.) and provides the skeleton (structure) of a website.
The first version of HTML was developed by Tim Berners-Lee in 1991, and the latest version is HTML5, which adds support for modern multimedia and semantic elements.
Defines the layout of a webpage using tags (header, footer, section, etc.).
Follows a tree-like structure of nested elements.
Uses predefined tags like:
h1Main Heading/h1
p This is a paragraph. /p
a href="https://example.com"Link /a
Tags can have attributes (extra info).
Example:
img src="image.jpg" alt="My Image" width="300"
HTML5 introduced native support for :
audio
video
canvas (for drawing graphics)
Collects user input via form, input, select, textarea, etc.
Improves SEO & accessibility with meaningful tags:
header, footer, article, nav, aside.
🌍 Universal standard (works in all browsers).
🖥️ Easy to learn (simple syntax).
📱 Responsive-ready when combined with CSS.
🔗 SEO-friendly when using semantic tags.
⚡ Lightweight (no extra setup needed).
🎨 Works perfectly with CSS & JavaScript for styling & functionality.
Building static web pages.
Creating the basic structure of web apps.
Embedding media (images, audio, video).
Forms for user input and authentication.
Works as the foundation for frameworks (React, Angular, Vue, Next.js).
!DOCTYPE html
html lang="en"
head
metacharset="UTF-8"
metaname="viewport" content="width=device-width, initial-scale=1.0"
title My First HTML Page /title
/head
bdy
h1 Hello, World! /h1
p This is my first webpage using HTML. /p
/body
/html