HTML Introduction
HTML is the skeleton of every web page — meet the language that powers the entire internet.
HTML stands for HyperText Markup Language. It is the standard language used to create web pages — every site you visit (Google, YouTube, Facebook) is built on HTML.
Let's break the name down:
Hyper
- Refers to the ability to link different web pages together.
- Enables navigation using links (click and jump).
Text
- Refers to the content of a webpage.
- Includes words, paragraphs, headings, etc.
Markup
- Means adding tags or symbols to text.
- Defines the structure and presentation of content.
Language
- A system of rules used to communicate with computers.
- HTML uses a specific syntax to create web pages.
- HTML structures content like text, images, links, forms, and videos.
- HTML uses tags and elements to display content in a browser.
- It is not a programming language, but a markup language.
- Web browsers read HTML code and render it as a webpage.
Markup means adding special symbols or tags to text to define its structure and presentation. These tags tell the browser how to display the content.
html<p>This is a paragraph.</p>
Here, <p> is a tag that marks the text as a paragraph.
- HTML tags are special keywords written inside angle brackets
< >. - They define how content should be displayed.
- Most tags come in pairs: an opening tag and a closing tag.
- An HTML element includes the opening tag + content + closing tag.
- It represents a complete part of a webpage.
- Most tags come in pairs: opening tag and closing tag.
html<p>This is paragraph content.</p>
The whole line is an HTML element, while <p> is a tag.
- HTML is the foundation of all websites.
- Essential for web development (frontend & backend).
- Easy to learn and beginner-friendly.
- Required before learning CSS and JavaScript.
- Helps build websites, blogs, and web apps.
- Used in almost every tech industry.
- HTML was created by Tim Berners-Lee in 1991.
- He developed HTML while working at CERN (European Organization for Nuclear Research).
First Web Browser
- The first web browser was also created by Tim Berners-Lee.
- It was called WorldWideWeb (later renamed Nexus).
- It was used to view and edit web pages.
Evolution of HTML
| Version | Highlight |
|---|---|
| HTML 1.0 | Basic version |
| HTML 2.0 | Standardisation |
| HTML 4.01 | Advanced features |
| HTML5 | Latest version (used today) — semantic tags, multimedia, modern forms |
- Thinking HTML is a "programming language" — it's a markup language. No logic, no loops.
- Forgetting the closing tag —
<p>Helloinstead of<p>Hello</p>makes the browser guess. - Confusing HTML with CSS — colours, fonts, layouts belong in CSS, not inline HTML attributes.
- Skipping
<!DOCTYPE html>— browsers fall back to "quirks mode" without it. - Using uppercase tags (
<P>) — works, but lowercase is the modern convention.
- Hello page — Save the snippet from above as
index.htmland open it in your browser. Change the heading to your name. Hint: edit the text inside<h1>. - Multi-paragraph — Add three more
<p>paragraphs about yourself: name, age, hobby. Hint: each paragraph is<p>...</p>. - Title test — Change the
<title>and reload. Notice the browser tab updates. Hint: title appears on the tab, not the page. - Spot the bug — Why doesn't this render correctly?
<h1>Welcome <p>to my site</h1></p>Hint: tags must close in the order they open.
Think Like a Programmer: HTML is the foundation. Master it deeply before jumping to React or Vue — every modern UI library still produces HTML at the end of the day.
Quick recap quiz?
We'll generate 5 MCQs from this lesson and check your understanding instantly. Takes ~30 seconds.
