How to Build a Simple Web Page Using HTML in 2025
๐ฐ What is HTML?
-
HTML stands for HyperText Markup Language.
-
It is used to create web pages.
-
HTML tells the browser how to show content.
๐งฑ Basic HTML Tags
-
<html>
– Start of the HTML document. -
<head>
– Contains page settings and title. -
<title>
– Shows the page title in the browser tab. -
<body>
– Shows all content on the web page. -
<h1>
– Main heading on the page. -
<p>
– A paragraph of text.
๐งช Simple HTML Code Example
๐ Code Explanation
-
<!DOCTYPE html>
– Tells browser we are using HTML5. -
<html lang="en">
– Page language is English. -
<meta charset="UTF-8">
– Supports all characters. -
<meta name="viewport"...>
– Makes the page mobile friendly. -
<title>
– Shows the name of the page on the tab. -
<body>
– All visible content goes here. -
<h1>
– Heading like a title on the page. -
<p>
– A paragraph of text.
๐พ How to Save the HTML File
-
Open Notepad or VS Code or any text editor.
-
Paste the HTML code above.
-
Click File > Save As.
-
Save the file name as
index.html
. -
Make sure you select All Files in the Save As Type.
๐ How to View the Web Page
-
Go to the place where you saved the file.
-
Double-click on
index.html
. -
The web page will open in your default browser.
-
You will see “Hello, World!” on the screen.
๐ง Tips for Beginners
-
Always save your file with
.html
at the end. -
Use proper spacing to make your code easy to read.
-
Use
<h1>
,<h2>
,<p>
,<a>
,<img>
to build better pages. -
You can learn more by practicing daily.
✅ Conclusion
-
HTML is easy to learn.
-
With just a few lines, you can make your own website.
-
This is the first step to becoming a web developer.
-
Keep learning and try new tags every day.
๐ Keywords:
HTML for beginners, how to build a web page, HTML structure simple, basic HTML tutorial, create first web page
Comments
Post a Comment