Hello, world
How to create your first html file
- Create a file named
hello.htm
. Make sure the extension of that file is.htm
. - Open
hello.htm
with a basic text editor, such as Notepad (Windows) or VS Code (my favorite editor). - Paste the following code into the editor and then save the file:
- Open
hello.htm
with the browser of your choice.
<!DOCTYPE html>
<html>
<body>
<p>Hello, world!</p>
</body>
</html>
Which extension to use? htm vs. html