HTML Basics
HTML Introduction
HTML is the standard markup language for building web pages and is the first skill every web developer learns. This page explains what HTML is and walks you through a complete, working page you can run right now.
What is HTML?
HTML stands for HyperText Markup Language. It is not a programming language; it is a markup language that describes the structure and meaning of the content on a web page. Browsers read HTML and use it to decide what to display: headings, paragraphs, links, images, lists, tables, and more.
HTML uses tags written inside angle brackets, like <p> and </p>. Most tags come in pairs — an opening tag and a matching closing tag with a forward slash — and the content sits between them. Together, a tag pair plus its content forms an element.
Basic Usage
<h1>This is a heading</h1>
<p>This is a paragraph of text.</p>Example: A Complete HTML Page
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>My First Page</title>
</head>
<body>
<h1>Hello, World!</h1>
<p>This is my first HTML page.</p>
</body>
</html>Save this in a file called index.html and open it in any browser. You will see a large heading and a paragraph. Every real website is built on this same basic skeleton.
More Examples
<!DOCTYPE html>
<html lang="en">
<body>
<h2>My Portfolio</h2>
<p>Welcome! Here is a photo and a link.</p>
<img src="https://picsum.photos/200" alt="Random placeholder photo">
<p><a href="https://myinternships.in">Visit MyInternships.in</a></p>
</body>
</html><h3>Things HTML can do</h3>
<ul>
<li>Show headings and text</li>
<li>Add images and links</li>
<li>Build tables and forms</li>
</ul>What each part of a page does
| Part | Purpose |
|---|---|
| <!DOCTYPE html> | Tells the browser this is an HTML5 document. |
| <html> | The root element that wraps the whole page. |
| <head> | Holds information about the page: title, charset, CSS links. |
| <body> | Holds everything the visitor actually sees. |
You do not need any special software to start. A plain text editor and a web browser are enough to write and view your first HTML page.
Key Takeaways
- HTML describes the structure and meaning of web content.
- Content is marked up with tags, usually in opening/closing pairs.
- Every page uses the same skeleton: doctype, html, head, and body.
- HTML is not a programming language — it has no logic or loops.
