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.)

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 (0)

Some comments may only be visible to logged-in visitors. Sign in to view all comments.