HTML Introduction
On this page
HTML Introduction
HTML is the standard markup language for creating web pages. It defines the structure of content and enables elements such as text, images, links, and forms.
HTML describes a web page using elements and tags that browsers interpret to display content.
What is HTML?
- HTML stands for HyperText Markup Language.
- It defines the structure of a web page.
- HTML is made up of elements that represent different types of content.
- Browsers use HTML to determine how content is displayed.
A Simple HTML Document
A basic HTML document includes a document type declaration, a root element, and visible content inside the body.
<!DOCTYPE html>
<html>
<head>
<title>Page Title</title>
</head>
<body>
<h1>My First Heading</h1>
<p>My first paragraph.</p>
</body>
</html>
Document Parts Explained
<!DOCTYPE html>defines the document as HTML5.<html>is the root element.<head>contains metadata about the page.<body>contains the visible content.
<h1>This is a heading</h1> <p>This is a paragraph.</p> <p>This is another paragraph.</p>
HTML History
HTML has evolved from early web experiments into a living standard maintained by WHATWG.
1989 – World Wide Web proposed 1991 – First HTML specification 1995 – HTML 2.0 1999 – HTML 4.01 2000 – XHTML 1.0 2008 – HTML5 draft 2014 – HTML5 recommendation Today – HTML Living Standard