How to create html file – Hello world html code file

HTML stands for Hyper Text Markup Language. HTML is used to display web pages and other information on the web browser. HTML is written in the form of HTML elements. HTML elements are consisting of tags enclosed in angle brackets “<” “>”. Every element in HTML starts with a starting tag and close with a closing tag however it is not necessary that every tag needs a closing tag, for example:- Image Tag does not need closing tag. The task of web browser is to read HTML documents and compose them into visible webpage, it does not display the HTML tags but uses the tags to interpret the content. HTML are the building blocks of all websites. HTML allow us to include images and objects into webpages to make attractive website. The extension of HTML document is either “.html” or “.htm”, so whenever you create a HTML document you’ll need to save the document with either of these extensions.

How-to-create-html-file-Hello-world-html-code-file

Below is Hello world html code and steps to create a html file:

<HTML>
<HEAD>
<TITLE>Hello World!</TITLE>
</HEAD>
<BODY>
Hello World!
</BODY>
</HTML>

STEP 1: You just need to copy this code, paste it into text editor like notepad.
STEP 2:save as” with the name you want like “hello_world.html” to your desired location in your system.
STEP 3: Now just double click on the file and you will see “Hello World!” in the browser.