What is HTML? The Foundation of the Web
Author: Super Admin
Published On: 06 March, 2026
HTML, or HyperText Markup Language, is the standard markup language for creating web pages. It provides the structure for content that is displayed in a web browser. Think of it as the skeleton upon which the visual aspects (CSS) and interactive functionalities (JavaScript) are built.
HTML uses a system of tags to define elements, which in turn structure the content. These tags are enclosed in angle brackets (< and >).
<p> for a paragraph or <h1> for a heading. Most tags come in pairs: an opening tag and a closing tag (e.g., <p> and </p>).<p>This is a paragraph.</p>.<a href="https://www.example.com">. Here, href is the attribute name, and "https://www.example.com" is its value.Every HTML document has a basic structure. Here's a breakdown:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Page Title</title>
</head>
<body>
<h1>My First Heading</h1>
<p>My first paragraph.</p>
</body>
</html>
<!DOCTYPE html>: This declaration defines the document type and version of HTML being used. It should always be the first line of your HTML document.<html>: This is the root element of the HTML page. The lang attribute specifies the language of the document.<head>: This element contains meta-information about the HTML document, such as the title, character set, and viewport settings. It's not displayed on the page itself.<title>: Specifies a title for the HTML page (which is shown in the browser's title bar or tab).<body>: This element contains the visible page content.<h1> to <h6>: These tags define headings. <h1> is the most important heading, and <h6> is the least important.<p>: This tag defines a paragraph.Here are some of the most frequently used HTML tags:
<h1> to <h6>: Headings<p>: Paragraph<a>: Link (Hyperlink)<img>: Image<ul>: Unordered list<ol>: Ordered list<li>: List item<div>: Division or section<span>: Inline container<table>, <tr>, <th>, <td>: Table elements<form>, <input>, <button>: Form elementsHere's a simple HTML document that demonstrates the use of some basic tags:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>My Simple Webpage</title>
</head>
<body>
<h1>Welcome to My Webpage</h1>
<p>This is a paragraph of text. It's here to demonstrate the <code><p></code> tag.</p>
<h2>A List of My Favorite Things</h2>
<ul>
<li>Reading Books</li>
<li>Coding</li>
<li>Traveling</li>
</ul>
<p>You can learn more about HTML on the <a href="https://developer.mozilla.org/en-US/docs/Web/HTML">Mozilla Developer Network</a>.</p>
<img src="https://via.placeholder.com/150" alt="Placeholder Image">
</body>
</html>
HTML is just the first step in web development. Once you understand the basics, you can move on to learning CSS (for styling) and JavaScript (for interactivity). Good luck on your web development journey!