Welcome Guest! (App Version 3.1)

websitnero logo name

My First Program in HTML


  • Download Sublime or VSCode. They are best editors for HTML.
  • HTML is a tag-markup language. Use tags to write data inside them.
  • Always save the file with extension of .html or it won't work.
  • Always open .html files with a web browser. Chrome is best.

Text Editors for HTML

Any text editor can be used to make simple HTML pages. Even a simple text-editor, such as Notepad can be used for writing simple html programs. If you are looking for some advanced ones, then try any one of the following:

  • Sublime
  • Atom
  • VS Code

Writing your first program in HTML

To write an HTML program is not difficult. In fact, it the much easier than writing 'CSS' or 'Javascript'.

To get started, pick up any of the text editors mentioned above. Now, go ahead and copy the code written below to your text editor. Save the file as 'index.html'.

  <p>This is my first program.</p>


This is my first program.

You can choose the file name of your choice, but remember the extension has to be '.html' or the file won't work as expected.

Now, open the file with a web browser (eg: chrome, firefox, or edge). I always prefer google chrome and would like you to do the same.

Now, when your file opens in chrome --- you will see the text --- 'Hi, my name is Peter Martin.'.


 <p>Hi, my name is Peter Martin.</p>
WebsiteNero is highly optimized for learning various website developing technlogies. We try our best to add maximum modules and examples to help learn the concepts clearly and vividly. We try to present all content and examples as simple as we can removing any complexity to hurdle easy understanding. We try best provide you with worthful content, but we cannot guarantee full correctness of all the content on this site. While using this website, you agree to have read and accepted all our terms of use and conditions, cookie, and privacy policy. Copyright, 2013-2018 by websitenero.com. All Rights Reserved.