PROGRAMMING IN COMPUTERS (HTML BASICS) PART - 3

Hi there, welcome to another part of Programming In Computers (Basics) Part -3. 



In the previous article we have seen some basic things of HTML Programming like : Tags, Attributes and some Programs and Info about HTML. Now, in this article we will see about :

  • About Header Section and Body Section in HTML.
  • How to write a basic HTML program.
  • Saving a HTML program.
  • What are Extensions ? What is the Extension of HTML.
Writing a basic HTML Program.

Firstly we have to see what is Header Section and Body Section in HTML. In the following image I will show you what is Header Section and Body Section :

IMAGE 1.1


OUTPUT


IMAGE 1.2

In Image 1.1 from where the HEAD Tag has been started and HEAD Tag has been ended, the following program or code is called Header Section of HTML Program. 

In Image 1.2 the Output of this program can be seen, where the Name XYZ is at the Title. 

Body Section : 


IMAGE 1.3

OUTPUT

IMAGE 1.4

In the following, IMAGE 1.3 shows the Body Section in HTML, from where Body Tag starts and the point where it ends is called Body Section in HTML. 

And the IMAGE 1.4 shows the Output of the program in which Body Tag has been used and it shows the content or data which we write in Body Section. 

Now, we will see how to write a Basic HTML Program.
Following is the image of a basic HTML Program : 

Basic HTML Program

Note :- If you are using any tag in HTML then you have to close the Tag. Eg: <html> , </html>.
If you will not close the tag the program will not run.

SAVING A HTML PROGRAM :

To save HTML program we will have to use extension. You can press Ctrl S for saving the document or you can go on options and select Save As Option for saving the document.  Use the extension (.html) for saving the file or program, if you will not use extension the program will not run. You will have to write your file name and then use extension after it. Eg. experiment.html . 


Saving A HTML document


Extension: Extension tells the type of File. File types can be in the form of Image, Video, Audio, Text etc.
Extension of HTML : The extension of HTML is (.html) or (.htm) . You can use any of the extension for saving the HTML Document or File. 

We will see about Tags of HTML in PROGRAMMING IN COMPUTERS (BASICS) PART - 4. 

Thank You !

You can now SUBSCRIBE us for more information. Just click on ALLOW Button which will be pop-up on the screen. SUBSCRIBE NOW! for more information and Get Notified when the new Articles comes.  

If you like the Article then press LIKE Button to Like !!!!

Post a Comment

0 Comments

Ads