Basics of HTML

1. HTML stands for Hyper Text Markup Language.
2. An HTML file is a text file containing small markup tags.
3. The markup tags tell the Web browser how to display the page.
4. An HTML file must have an htm or html file extension.
An HTML file can be created using any simple text editor like “Notepad” of the Microsoft Windows.
First of all let me explain the above web page and how it is created, how easily it can be created.
It is very easy to insert the element in the HTML pages simply by writing their tags and provide their attribute.
Basic Description of HTML File
The HTML file can be divided into the three parts:
HTML Header
HTML Footer
So let us see the Body of the HTML File:
HTML Header is the top most part of the HTML file in this section of the file we define the header of fileand also Title of the file can be provided.
HTML Body is the middle part of file, in this section we define all text and elements which is to displayed on web page.
HTML Footer is the end section of the file.
How To Write a HTML File
To write a HTML file you need an text editor, open the text editor and start writing file as given below:
Steps to write a file & view the web page:
1. Open the text editor (e.g. notepad).
2. Write the above file in it OR copy the above file and paste it on the notepad.
3. Save this file as .htm or .html file extension (e.g. <filename>.htm , .html).
4. Now open the Internet Browser and open the saved file.
5. Now you can see your web page.
The file starts from an <html> tag and ends with the </html>. <html> tag identifies that it is an HTML file. <html> is also called as open tag and it also need its closed tag which is </html>. Between these tags we will define the Header of the file, so add the <head> tag and below it write to close <head> tag.
More to display the Title to the Web Browser use the special tag <title> write here title </title>. Text written between the <title> & </title> tag will be displayed as the header of the your web page. The important tag is <body> tag. Whatever you want to display on the web page you must write it in between <body> & </body>.
Scroll to Top