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.
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:
Attributes provide extra information about an 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?