Turning Learners Into Developers
Codekilla
CODEKILLA
back to course
Lesson 01 / 1001%· free preview
Introduction1/7

HTML Introduction

HTML is the skeleton of every web page — meet the language that powers the entire internet.

What is HTML?

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.
Anatomy of an HTML Element
UNDERSTANDING AN HTML ELEMENT COMPONENTS OF THE <p> ELEMENT ELEMENT (Structure + Content) <p> is the TAG (Defining Type) [ : ] OPENING TAG <p> Left Angle Bracket Tag Name / Element Type (bolded) Right Angle Bracket START POINT T CONTENT This is paragraph content. TEXT/DATA VISUAL OUTPUT CLOSING TAG [→] </p> Left Angle Bracket Forward Slash — Indicates Tag Name — Must Match Opening Right Angle Bracket END POINT THE HTML ELEMENT Defined by the Open & Close Tags Contained Text/Elements
In a Nutshell
  • 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.
What is Markup?

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
  • 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.
HTML Elements
  • 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.

Why Learn HTML?
  • 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.
History and Creator of HTML
  • 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

VersionHighlight
HTML 1.0Basic version
HTML 2.0Standardisation
HTML 4.01Advanced features
HTML5Latest version (used today) — semantic tags, multimedia, modern forms
Common Mistakes
  • Thinking HTML is a "programming language" — it's a markup language. No logic, no loops.
  • Forgetting the closing tag — <p>Hello instead 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.
Interview Questions

Practice Exercises
  1. Hello page — Save the snippet from above as index.html and open it in your browser. Change the heading to your name. Hint: edit the text inside <h1>.
  2. Multi-paragraph — Add three more <p> paragraphs about yourself: name, age, hobby. Hint: each paragraph is <p>...</p>.
  3. Title test — Change the <title> and reload. Notice the browser tab updates. Hint: title appears on the tab, not the page.
  4. 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.

AI-powered recap

Quick recap quiz?

We'll generate 5 MCQs from this lesson and check your understanding instantly. Takes ~30 seconds.

Ready to move on?
// example library
Want more hands-on snippets in HTML5?
Browse 1 runnable example · across 1 chapter · short, copy-paste-friendly · grouped by topic
Explore examples
// side-by-side reference
See this in other languages
Compare the same concept across C, C++, Java, and Python — one table, zero tab-switching.
Compare Languages
// feedback.matters()
Did this lesson help you?
100% found this helpful · 2 votes