Article Title
Article content...
The Foundation of Web Development
HTML (HyperText Markup Language) is the standard markup language for documents designed to be displayed in a web browser. It defines the structure and content of web pages.
HTML consists of a series of elements that you use to enclose, wrap, or mark up different parts of the content to make it appear or act in a certain way. The enclosing tags can make content into a hyperlink to connect to another page, italicize words, and so on.
Uses tags to define elements and structure content
Defines the hierarchical structure of web documents
Creates connections between documents via hyperlinks
Supports creating accessible web content for all users
Every HTML document follows a basic structure that includes essential elements:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document Title</title>
</head>
<body>
<h1>This is a Heading</h1>
<p>This is a paragraph.</p>
</body>
</html>
Declares the document type and HTML version
The root element that wraps all content
Contains meta information about the document
Contains the visible content of the document
HTML provides a wide range of elements to structure content. Here are some of the most commonly used ones:
Element | Description | Example |
---|---|---|
<h1> to <h6> |
Heading elements | <h1>Main Title</h1> |
<p> |
Paragraph | <p>This is a paragraph.</p> |
<a> |
Anchor (hyperlink) | <a href="page.html">Link</a> |
<img> |
Image | <img src="image.jpg" alt="Description"> |
<div> |
Division or section | <div>Content here</div> |
<span> |
Inline container |
|
<ul>, <ol>, <li> |
Lists | <ul><li>Item</li></ul> |
The first version of HTML with basic text formatting elements and hyperlinks.
Standardized HTML with form elements and table support. Became the official standard.
Added support for tables, applets, text flow around images, and superscripts/subscripts.
Introduced stylesheets, scripting, and accessibility features. A major milestone.
Reformulation of HTML as an XML application with stricter syntax rules.
Major revision with new semantic elements, multimedia support, and APIs for web applications.
HTML introduced new semantic elements that clearly define different parts of a web page, making the structure more meaningful:
Represents introductory content or navigational aids
Defines a section of navigation links
Specifies the main content of the document
Represents self-contained composition
Defines a section in a document
Represents the footer of a document or section
Here's a simple example of HTML creating a basic web page structure with semantic elements:
<!DOCTYPE html>
<html lang="en">
<head>
<title>My Web Page</title>
</head>
<body>
<header>
<h1>Website Title</h1>
<nav>
<a href="#">Home</a>
<a href="#">About</nav>
</header>
<main>
<article>
<h2>Article Title</h2>
<p>Article content...</p>
</article>
</main>
<footer>
<p>© 2025 My Website</p>
</footer>
</body>
</html>
Article content...