Welcome Guest! (App Version 3.1)
IntroductionHTML Tutorial What is HTML? My First Program in HTML Doctype Block Elements in HTML Inline Elements in HTML
Box ModelWhat is Box Model Content in Box Model Padding in Box Model Border in Box Model Margin in Box Model
HTML TagsDiv Tags H1 to H6 Tags Paragraphs Tags Span Tags Bold Tags Italic Tags
HTML UtilitiesAdding Images Adding Hyperlinks Adding Comments Types of Lists Tables Iframes Breaking Lines Horizontal Line
FormsForms in HTML Text-Box Radio Checkbox Select and Option Text Area Button Submit
HTML 5What is new in HTML5 Syntax Changes New Elements & Properties Semantic Tags New Elements New Input Types Graphics Support Canvas SVG Media Support Audio Video Client Side Storage Local Storage Session Storage Indexed DB Web SQL [dep] Cookies API Support Web Worker Web Sockets Service Worker App Cache [dep] SSE Drag & Drop Geolocation
HTML QuizHTML Quiz 1
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:
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'.
<html> <head></head> <body> <p>This is my first program.</p> </body> </html>
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.'.