Follow these simple steps to create and run your very first HTML webpage.
You can use Notepad, Visual Studio Code (VS Code), Sublime Text, Notepad++, or any code editor of your choice.
Save the file with the
.html extension.
For example:
index.html
Copy and paste the following HTML code into your editor.
Ensure the filename is
index.html.
Make changes to the HTML file, save it, and refresh the browser to see the updated webpage.
Declares that the document uses HTML5.
The root element that contains the complete webpage.
Stores metadata including the page title, character encoding, CSS links, and scripts.
Displays the page title in the browser tab.
Contains all visible webpage content.
Defines the main heading.
Defines a paragraph.