Hello, World!
Build your first HTML webpage and begin your coding journey.
<html>
<body>
<h1>Hello, World!</h1>
</body>
</html>
>_ What Is HTML?
HTML stands for HyperText Markup Language. It is the standard language used to create and structure content on webpages.
Think of HTML as the structure of a webpage. It tells the browser what each piece of content represents, such as a heading, paragraph, link, image, or list.
Headings
Headings organize your page and identify important sections of content.
Paragraphs
Paragraph elements are used for the main written content on your webpage.
Links
Links connect your webpage to other pages, websites, and resources.
>_ Your First HTML Page
Every HTML page follows a basic structure. Here is a simple webpage that displays Hello, World! in the browser.
<html>
<head>
<title>My First Webpage</title>
</head>
<body>
<h1>Hello, World!</h1>
<p>Welcome to my first webpage.</p>
</body>
</html>
>_ What’s Happening Here?
<!DOCTYPE html>
Tells the browser that the document uses HTML5.
<html>
Wraps the entire HTML document.
<head>
Contains information about the webpage that is not normally displayed as page content.
<body>
Contains everything visitors actually see inside the browser window.
<h1>
Creates the main heading on the page.
<p>
Creates a paragraph of text.
Most HTML elements use an
opening tag and a
closing tag.
For example:
<p>Hello!</p>
Build Your First Webpage
Put what you just learned into practice. Create a simple HTML webpage that introduces yourself.
-
✓
Add an
<h1>heading that says Hello, World! -
✓
Add a
<p>paragraph introducing yourself. -
✓
Give your webpage a title using the
<title>element. -
✓
Make sure your visible content is placed
inside the
<body>.
Hello, World! Challenge
What You’ve Learned
<html>,
<head>, and
<body>.
<h1>.
<p> element.
Your Learning Journey
0 / 17 CompletedKeep going! Every completed lesson brings you closer to building your own websites with HTML and CSS.
Nice work!
Finished this lesson? Mark it complete to track your progress.


