HTML Introduction: The Foundation of the Web 🌐
HTML (**H**yper**T**ext **M**arkup **L**anguage) is the standard markup language for documents designed to be displayed in a web browser. It is the core technology used for structuring the content of a web page.
What is HTML?
HTML describes the structure of a web page semantically and consists of a series of **elements**. HTML elements tell the browser how to display the content. Think of HTML as the *skeleton* of your website; it defines the headers, paragraphs, links, images, and other pieces of content.
Basic HTML Structure
Every HTML page must have a fundamental structure. Here is a simple example showing the required tags:
<!DOCTYPE html>
<html lang="en">
<head>
<title>My First HTML Page</title>
</head>
<body>
<h1>Hello World</h1>
<p>This is a paragraph.</p>
</body>
</html>
Key components:
<!DOCTYPE html>: Defines this document to be HTML5.<html>: The root element of an HTML page.<head>: Contains meta-information about the HTML page (like the title shown in the browser tab).<body>: Contains the visible page content (headings, paragraphs, images, etc.).
HTML Elements and Tags
An HTML element usually consists of a **start tag**, some **content**, and an **end tag**. For example, the paragraph element is written as <p>Content here.</p>. Some elements are "empty" and don't need an end tag, like the line break tag <br>.
To continue learning the fundamentals, click on the **HTML Basics & Editors** link in the side menu. 👇