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.

 
 
 
 
 


Related Posts:

  • A few new tags to learn There are a lot more tags, but we will just cover few more for now, mostly straightforward to use and you can see the effect in your web page when you use them: <q> - The q tag is for quote. This has no relationship to… Read More
  • Video TagThis is a new tag for HTML 5. This tag might not work in older browsers. We need some attributes for this tag, Source, Type, Width ,Height and Control. We need to tell the browser where is the source of the video and the type… Read More
  • Menu Hover Style Using HTML5 and CSS3Creating a Menu Hover style with HTML5 and CSS3. HTML  <html><head>    <title>This is Menu</title>    <link rel="stylesheet" type="text/css" href="menu.css">&… Read More
  • Main Seletors in CSSThere are lots of selectors in CSS but here are 4 main selectors your might need. Selector.classExample:.introExample with description:Select all the classes with name ="intro"Selector#idExample:#firstnameExample with descri… Read More
  • HTML AttributesAll HTML elements can have Attributes. Attributes provides additional information about the element.  Attributes are always specified at the start of tag. The lang Attribute The language of the document can be declared… Read More

1 comment: