HTML First Program
You just need to learn HTML with a simple text editor.
Learn HTML Using Notepad or TextEdit
Professional HTML editors may be used to design and modify web pages.
However, a simple text editor such as Notepad (PC) or TextEdit (Mac) is recommended for learning HTML (Mac).
We feel that learning HTML is best accomplished by utilizing a basic text editor.
To make your first web page, use Notepad or TextEdit and follow the steps below.
Step 1: Open Notepad (PC)
Windows 8 or later:
Open the Start Screen (the window symbol at the bottom left on your screen). Type Notepad.
Windows 7 or earlier:
Open Start > Programs > Accessories > Notepad
Related Links
Step 1: Open TextEdit (Mac)
Open Finder > Applications > TextEdit
Change a few options as well to get the program to store files appropriately. Choose "Plain Text" from Preferences > Format >
Check the option that states, "Show HTML files as HTML code instead than as formatted text" at "Open and Save"
Then create a new document in which to paste the code.
Step 2: Write Some HTML
Write or copy the following HTML code into Notepad:
Your First Heading
Your first paragraph.
Result of the above query
Your First Heading
Your first paragraph.It is used for how to write something, and something on image, and features, write something in input html.
Step 3: Save the HTML Page
Make a copy of the file and save it to your PC. In the Notepad menu, go to File > Save as.
Name the "index.htm" filename, then set the UTF-8 encoding (which is the preferred encoding for HTML files).
Tip: The file extension might be either.htm or.html. It makes no difference; it is all up to you.
Related Links
Step 4: View the HTML Page in Your Browser
Launch your preferred browser and navigate to the saved HTML file (double click on the file, or right-click - and choose "Open with").
The result will look much like this:
Online Editor - "Try it Yourself"
You can change the HTML code and examine the outcome in your browser using our free online editor.
It's the best tool to test code quickly. Color coding is also available, as well as the option to store and share code with others:
Example
Page Title
This is a Heading
This is a paragraph.
Result of the above query
This is a Heading
This is a paragraph.