Basic Description of HTML File
The HTML file can be divided into the three parts:
HTML Header
HTML Body
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 file and 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:
· Open the text editor undefinede.g. notepad).
· Write the above file in it OR copy the above file and paste it on the notepad.
· Save this file as .htm or .html file extension undefinede.g. <filename>.htm , <filename>.html).
· Now open the Internet Browser and open the saved file.
· 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 </head> 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>.
No comments:
Post a Comment