Introduction to HTML Language
& All Essential Tags
A complete beginner-friendly guide to HTML — the backbone of every website.
📋 Table of Contents
What is HTML?
HTML (HyperText Markup Language) is the standard language used to create and structure content on the web. Every website you visit is built with HTML at its core.
HTML uses <tags> — special keywords wrapped in angle brackets — to mark up content. Most tags come in pairs: an opening tag and a closing tag.
Basic Structure of HTML
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"/> <meta name="viewport" content="width=device-width"/> <title>My First Page</title> </head> <body> <h1>Hello World!</h1> <p>My first paragraph.</p> </body> </html>
Heading Tags — <h1> to <h6>
<h1>H1 – Main Heading</h1> <h2>H2 – Section Heading</h2> <h3>H3 – Sub-section</h3> <h4>H4 – Minor Heading</h4> <h5>H5 – Small Heading</h5> <h6>H6 – Smallest</h6>
Text Formatting Tags
Paragraph — the most common text container.
Makes text bold and semantically important.
Makes text italic with semantic emphasis.
Self-closing line break tag.
Horizontal dividing line between sections.
Inline container for styling text portions.
Long quotes from external sources.
Inline code in monospace font.
Preformatted text — preserves spaces & breaks.
Highlights text like a marker pen.
Smaller text — good for footnotes.
Deleted and inserted text.
Link & Image Tags
<a> — Anchor Tag
<a href="https://example.com">Visit</a> <a href="page.html" target="_blank">New Tab</a> <a href="mailto:info@mitechsolution.com">Email</a>
<img> — Image Tag
<img src="photo.jpg" alt="Description" width="300"/> <a href="home.html"><img src="logo.png" alt="logo"/></a>
List Tags
<ul><li>HTML</li><li>CSS</li></ul> <ol><li>Step 1</li><li>Step 2</li></ol> <dl><dt>HTML</dt><dd>HyperText Markup Language</dd></dl>
Table Tags
<table> <thead><tr><th>Name</th><th>Level</th></tr></thead> <tbody><tr><td>Rahul</td><td>Beginner</td></tr></tbody> <tfoot><tr><td colspan="2">Total: 1</td></tr></tfoot> </table>
Form Tags
<form action="/submit" method="post"> <input type="text" placeholder="Name"/> <input type="email" placeholder="Email"/> <input type="password"/> <select><option>HTML</option></select> <textarea rows="4"></textarea> <button type="submit">Send</button> </form>
Semantic HTML5 Tags
Top part — logo, nav, site title.
Navigation links and menus.
Dominant content — one per page.
Thematic grouping of content.
Self-contained content — blog post.
Secondary content — sidebar.
Bottom — copyright, links.
Media with optional figcaption.
Generic block container.
Media Tags
<video controls><source src="v.mp4" type="video/mp4"/></video> <audio controls><source src="a.mp3"/></audio> <iframe src="https://youtube.com/embed/xyz" allowfullscreen></iframe>