Introduction to HTML
What is HTML?
HTML stands for HyperText Markup Language. It is the standard language used to create and structure content on the web. Every website you visit is built using HTML.
HTML is not a programming language - it's a markup language. This means it uses special tags to define the structure and content of a webpage.
What You'll Learn
- How to structure a webpage with HTML
- Common HTML elements and tags
- How to add text, images, links, and more
- Best practices for writing clean HTML
Your First HTML Code
Let's start with a simple example. The code below creates a basic webpage with a heading and a paragraph. Try editing the code and see the result update in real-time!
Pro Tip: Try changing "Hello, World!" to your own message and click Run to see the result!
Understanding the Code
Let's break down what each part does:
<!DOCTYPE html>- Tells the browser this is an HTML5 document<html>- The root element that contains all HTML content<head>- Contains metadata like the page title<title>- Sets the browser tab title<body>- Contains all visible content<h1>- A main heading (largest)<p>- A paragraph of text
Key Takeaways
- HTML is the standard language for creating webpages
- HTML uses tags to structure content
- Tags usually come in pairs: opening
<tag>and closing</tag> - Every HTML page needs a
<!DOCTYPE html>declaration
Quick Quiz
What does HTML stand for?
Enjoying these tutorials?