Here is a quick preview of what standard HTML looks like:
<!DOCTYPE html>
<html>
<head>
<title>My First Webpage</title>
</head>
<body>
<h1>Welcome to My Webpage</h1>
<p>This is my first paragraph of text!</p>
</body>
</html>
HTML (HyperText Markup Language) is the standard language used to create and structure web pages. Think of it as the "skeleton" of every website you visit.
Even though HTML itself does not add color, motion, or interactivity, it defines the meaning of every piece of content on the page. When a browser reads your file, it looks for HTML tags like <p>, <h1>, and <img> and then decides how to show them.
Every website you visit is built on HTML. If the structure is broken, the page may still load, but the content can be confusing or inaccessible. Clean HTML is essential for screen readers, SEO, and reliable layouts on modern devices.
Every HTML document follows a specific structural recipe. Here is what the code looks like:
<!DOCTYPE html>: Tells the browser, "Hey, I'm using the latest version of HTML (HTML5)!"<html>: The container for everything on the page.<head>: The "brain" of the page. It holds hidden data like the title that appears on the browser tab.<body>: The "body" of the page. Everything you actually see (text, images, buttons) goes here.While people often use these terms interchangeably, they are slightly different:
| Term | Definition | Example |
|---|---|---|
| Tag | The individual keywords inside brackets. | <p> (Opening) or </p> (Closing) |
| Element | The full package: Opening tag + Content + Closing tag. | <p>Hello World!</p> |
<div> <p>I am a paragraph <strong>nested</strong> inside a div!</p> </div>
Modern websites are built using three main layers. To understand how they interact, imagine building a car:
HTML (The Structure): The metal frame and chassis. It defines where the seats and engine go.
CSS (The Style): The paint job, the leather interior, and the sleek curves. It makes the car look good.
JavaScript (The Engine): The parts that make the car move, the headlights turn on, and the GPS work.
Attributes provide extra information about an HTML element. They always live inside the opening tag and usually look like name="value".
Example:
<a href="https://www.google.com">Visit Google</a>
<a>is the tag for a link.hrefis the attribute (it tells the link where to go)."https://www.google.com"is the value.
index.html).What does HTML stand for?