In this tutorial, you'll learn the way easy it's to make an HTML document or a web page.
You need to use a code editor to write HTML codes or create an HTML document. Some popular free code editors are Notepad, TextEdit, VS Code, SublimeText, etc. You can also edit code or create HTML documents using Windows’ own text editor.
CoderWell Code Editor
We have created a text editor that you can use to create and test web files such as HTML, CSS, JavaScript, JQuery, and XML files.
Okay, let’s start by creating your first HTML page.
Creating your first HTML document
Let’s take the following steps. At the end of this tutorial, you will create an HTML file that displays the “Welcome to HTML Tutorial” message in your web browser.
Step 1: Creating the HTML file
Open the plain text editor on your computer and create a new file.
Step 2: Type some HTML code
Start with a blank window and type the following code:
Code Example:
<!DOCTYPE html>
<html lang="en">
<head>
<title>Document Title</title>
</head>
<body>
<h1>Welcome to HTML Tutorial</h1>
</body>
</html>
Step 3: Saving the file
You need to save the file “index.html” on your desktop
To open the file in the browser. Navigate to your file then double click thereon. this may open in your default browser. If not, open your browser and drag the file into it.