LATEST

What is HEAD and BODY tags of HTML webpage

 

Every HTML file has a fixed structure. The entire html document is enclosed within <HTML> </HTML> tags. There are two distinct sections are created using the <HEAD> </HEAD> and the <BODY> </BODY> tags within the <HTML> </HTML> tag.

 


<HEAD> </HEAD> is the document head of a web page. Information placed in this section is essential to the inner workings of the document. Document head has nothing to do with the content of the document. Information placed within this tags is not displayed in the browser except the <TITLE> </TITLE> tags. A document head looks like –

<HEAD>

<TITLE> MY FIRST WEBSITE </TITLE>

</HEAD>

 

<BODY> </BODY> tags used to start and end of the main body of a web page. The textual contents are written in this section. Attributes like background color, font color, font size, font weight, etc. can be specified for the <BODY> tag. A body tags looks like below.

 

<BODY>

My First Web Page Body

 </BODY>

 

A <BODY> tag with some of its attributes looks like –

<BODY BGCOLOR=BLUE TEXT=RED>  

My First Web Page Body

 </BODY>

 

All this tags are written within by <HTML> </HTML> tags.

 

SEE YOU IN THE NEXT ARTILE…………………………………..THANK YOU.

No comments:

Post a Comment

Thanks you , Visit again