Use of BODY Element


After the <HEAD> tag and <TITLE> tag <BODY> tag starts. The main contents of a webpage stores here. Inside this part we can contain images, audios, videos or anything else like forms or something else. It is a container type tag so it starts with <BODY> and ends with </BODY>.By using font tag we can change the fonts of the body. Later on we will discuss about these tags. Body tag looks like following:

<BODY>
..............................
..............................
..............................
</BODY>

Now we will see how it works on a webpage coding.

<HTML>
<HEAD>
<TITLE>
Program 3
</TITLE>
</HEAD>
<BODY>
This is my 3rd Program
I am happy to learn HTML
</BODY>
</HTML>
This is how it will look in HTML
Now the saving procedure is like before. Go to File then Save As then put a name Like program3.html   , We write html because it is the extension for web file. Otherwise it will not open in Browser.

 
 
 
 
 


1 comment: