Introduction to HTML

What is HTML?

HTML is the foundation of every website you see on the internet, including the portals where you check your UGC NET, SET, or KVS results. Many students think HTML is a programming language, but for your exams and your IT career, it is crucial to remember that HTML is a markup language used to structure web pages​

LarasAcademy student learning Introduction to HTML on a laptop showing basic code structure like Namaste World. The image includes an HTML evolution timeline from 1991 to HTML5, a comparison of HTML vs HTML5 features, and differences between HTML, XML, and Markdown

1. Defining HTML: The Language of the Web

HTML stands for HyperText Markup Language

  • HyperText:
    When you click a link on the NTA or Telangana State portal to view your hall ticket, you are using hypertext—clickable text that connects one web page to another.​
  • Markup:
    Markup means placing tags around text so that the browser knows what is a heading, paragraph, image, link, or button.​

Key exam points:

  • HTML is a markup language, not a programming language (no variables, loops, or conditions by itself)​
  • HTML works together with CSS (for design) and JavaScript (for logic and interactivity)​

2. Evolution of HTML (1991 to HTML5)

Understanding the versions of HTML is important because theory questions often ask “Match the Following” or “Year vs Version”​

  • 1991 – First HTML (Tim Berners‑Lee):
    The first version defined basic documents with headings, paragraphs, and links for early CERN internal pages.​
  • 1995 – HTML 2.0:
    The first formal standard published by the IETF, capturing the core features in use on the early Web​
  • 1997–1999 – HTML 3.2 and HTML 4.01:
    HTML 4.01 (1999) became the dominant version used in schools and colleges in the early 2000s, including many Indian textbooks​
  • 2014 – HTML5 (Modern Standard):
    HTML5 was finalised as a W3C Recommendation on 28 October 2014 and is the current foundation of modern websites and web apps​

Exam‑ready memory tip:

  • Remember: 1991 (Birth), 1995 (HTML 2.0), 1999 (HTML 4.01), 2014 (HTML5).

3. Why HTML5 is a Game Changer (Especially for Students)

HTML5 is designed for today’s mobile‑first, app‑like web, which matches how most students consume content—through smartphones and low‑cost laptops.​

HTML vs HTML5 (Practical View)

FeatureOlder HTML (e.g., HTML 4.01)HTML5 (Modern HTML)
MultimediaDepended on external plugins like Flash for audio and video. ​Native <video> and <audio> tags; no plugin required in most browsers. ​
SemanticsHeavy use of generic <div>, less meaning in structure.​Semantic tags like <header>, <nav>, <section>, <article>, <footer>.​
Mobile UseNot designed for responsive layouts; required workarounds. ​Works smoothly with responsive design via CSS and meta viewport. ​
StorageMainly cookies with small storage and extra overhead. ​localStorage and sessionStorage for larger, fast, client‑side storage. ​

Why this matters for exams and jobs:

  • Viva questions often ask: “Why was Flash removed?” or “Name two HTML5 features for multimedia.”​
  • Indian IT companies expect freshers to know semantic HTML and responsive design basics, not just old <font> and table‑based layouts.​

4. How to Start: Your First Lab Practical

You do not need a high‑end machine in HITEC City or Bengaluru to start learning HTML; a basic system in your college lab or home is enough.​

Step‑by‑Step: Creating Your First HTML Page

  1. Open a text editor:
    • Windows: Notepad
    • Cross‑platform: VS Code, Sublime Text, or any simple code editor​
  2. Type the basic HTML5 structure:
    • <!DOCTYPE html> tells the browser to use HTML5.​
    • <meta charset=”UTF‑8″> ensures Indian languages and special characters display correctly.​
<!DOCTYPE html>
<html>
<head>
    <title>LarasAcademy First Page</title>
</head>
<body>
    <h1>Namaste World!</h1>
    <p>I am starting my HTML journey at LarasAcademy.</p>
</body>
</html>
  1. Save the file correctly:
    • File → Save As…
    • File name: index.html
    • Save as type: All Files (if using Notepad)
    • Encoding: UTF‑8 (recommended)​
  2. Open in a browser:
    • Double‑click index.html or right‑click → Open with → Chrome/Edge/Firefox​

Common mistakes observed in lab exams:

  • Saving as index.txt instead of index.html.
  • Missing closing tags (like not closing <p> or <html>​
  • Using capital extensions like .HTML is usually allowed by browsers but may confuse beginners in some OS environments.

5. HTML vs XML vs Markdown (From Exam Perspective)

Competitive exams often test conceptual differences between markup formats.​

AspectHTMLXMLMarkdown
Primary useDisplay and structure data in web pages. ​Store and transport structured data. ​Easy‑to‑write documentation that converts to HTML. ​
Tag definitionPredefined tags (<h1>, <p>, <a>). User‑defined tags (<student>, <result>, etc.).​Uses symbols (#, *, _) instead of angle‑bracket tags. ​
Syntax rulesMore forgiving; browsers try to correct minor errors. ​Strict; requires proper nesting and closing of tags. ​Simple plain‑text rules, interpreted by a converter. ​
Typical usageWeb pages, online forms, front‑end UI. Data exchange in APIs, configuration files. ​README files, notes, blogs (e.g., GitHub, documentation). ​

Exam shorthand (“Lara Cheat Sheet”):

  • HTML → “Display data in browser with predefined tags.”
  • XML → “Transport/store data with user‑defined tags.”
  • Markdown → “Lightweight syntax for writing web‑ready content quickly.”

TEST YOUR KNOWLEDGE

You can view correct answers after you submit your responses.

1. Why is HTML technically classified as a "markup language" rather than a "programming language"?

2. How did the finalization of HTML5 in 2014 fundamentally change how browsers handle multimedia compared to older versions like HTML 4.01?

3. In the context of modern web development, why is "Semantic HTML" (using tags like or ) prioritized over generic tags?

4. What is the core functional difference between HTML and XML when it comes to "Tag Definition"?

5. A student creates a file in Notepad, types the correct HTML5 structure, but the browser displays the raw code instead of a formatted webpage. What is the most likely cause based on common lab mistakes?

SRIRAM
SRIRAM

Sriram is a seasoned Computer Science educator and mentor. He is UGC NET Qualified twice (2014 & 2019) and holds State Eligibility Test (SET) qualifications for both Andhra Pradesh (AP) and Telangana (TG). With years of experience teaching programming languages, he simplifies complex CS concepts for aspirants of UGC NET Computer Science, KVS, NVS, EMRS, and other competitive exams.

Articles: 69