First things first: we need a text editor for writing our HTML code. Any basic text editor will do so long as you can save the code as plain text. So, just avoid formats that maintain extra information like the Microsoft Word format.
On Windows machines NotePad is an example of a simple text editor, as is TextEdit for the Mac OS. Word will also work if you choose the plain text option under the "Save As" menu option. For Mac OS, I would also recommend using Taco HTML Edit, a free program designed specifically for HTML coding on the Mac.
Once you've got a text edior chosen, it's time to try out a simple HTML program. Try pasting the code below into your text editor and then save the document as something like "test.html". The file name extension will have to be ".html" or ".htm" for web browsers to be able to recognize that your document contains HTML code.
<html> <head> <title> My first webpage </title> </head> <body> I just produced my first webpage. </body> </html>
If you've saved your HTML document, you now need to get it displayed. To do that, open up a web browser and choose the "Open File" command under the "File" menu. Note that some browsers may have the option elsewhere. Then just look for your file, and click the option to open it. You should get a webpage like the one below.