DEV Community

Cover image for How to create a web page
Mr
Mr

Posted on

How to create a web page

1) Open a text editor (like Notepad, VS Code, Sublime Text, etc.)

Image description

2) Write some basic HTML code:

html
Copy
Edit
<!DOCTYPE html>



My First Web Page


Hello, world!


Welcome to my first web page.




Save the file:

Click Save As...

Save it with a .html extension, like index.html

Make sure the "Save as type" is set to "All Files" if you're using Notepad.

Open it in your web browser:

Double-click the file you saved, and it will open in Chrome, Firefox, Safari, or whatever browser you use.

Top comments (1)

Collapse
 
sunshine222025 profile image
SUNSHINE222025

Great starter guide! Simple, clear, and perfect for someone just dipping their toes into web development. For those looking to experiment further, tools like ServBay can be handy for running different web stacks locally without much setup. Keep exploring and building!​