![]() |
VOOZH | about |
So far, we have already learned about the structure of an HTML document, tags, etc in the previous module. Let us use this knowledge to create our first web page.
Here, we are creating a simple webpage that displays a "Hello World" message as the perfect starting point. This exercise will help you understand the foundational structure of HTML and introduce you to headings from <h1> to <h6>.
"Hello World" is the first step in programming across many languages. By displaying this simple message, you’ll learn how to structure an HTML document and see how headings affect the organization and readability of content on a webpage.
Here’s how to build your first webpage in HTML, step-by-step.
To create HTML, you need a text editor. You can use:
In your text editor, create a file named index.html and write the following HTML code. This code will display "Hello World".
In this Example:
Heading Tags: There are six levels of headings defined by HTML. These six heading elements are h1, h2, h3, h4, h5, and h6; with h1 being the highest level and h6 the least.
Let us use these six different Heading tags separately to print "Hello World!" and see the difference. Modify your code in index.html with the below code:
Code: index.html
To learn more about Heading Tags, Please refer:HTML | Heading.