Introduction to Coding and HTML
What is Coding?
Coding is the process of giving instructions to a computer so it can perform specific tasks. These
instructions are written in programming languages such as Python, JavaScript, C++, and many others.
Computers do not understand human language directly. Instead, they follow strict, logical commands.
Coding allows humans to write these commands in a way computers can understand.
Why is Coding Important?
• It powers websites, mobile apps, games, and software.
• It automates tasks and processes in industries.
• It helps solve problems logically and creatively.
• It is one of the most valuable skills in today's technology-driven world.
How Coding Works
1. You write instructions using a programming language.
2. The computer reads and interprets the instructions.
3. The computer executes the task exactly as written.
If your instructions are wrong, the computer will still follow them — which is why debugging (fixing
errors) is important.
What is HTML?
HTML (HyperText Markup Language) is the standard language used to create and structure webpages.
It tells the browser what to display and how to arrange text, images, links, and other content.
HTML does not make websites look stylish — that is what CSS is for — but HTML builds the
foundation.
Basic Structure of an HTML Document
Here is a simple HTML example:
<!DOCTYPE html>
<html>
<head>
<title>My First Webpage</title>
</head>
<body>
<h1>Hello, World!</h1>
<p>This is my first webpage.</p>
</body>
</html>
Explanation:
• <html> — wraps the entire page.
• <head> — contains information about the page (not visible).
• <title> — sets the page title.
• <body> — contains everything the user sees.
Common HTML Tags
• <h1> to <h6> — headings
• <p> — paragraphs
• <a> — links
• <img> — images
• <div> — container for grouping elements
HTML is easy to learn and is the first step toward becoming a web developer.