<HEAD>

<TITLE>Structure of HTML</TITLE >

</HEAD>

<BODY>

I am enjoying HTML.

</BODY>

</HTML>

3.Explain the tags <HEAD>and<TITLE>

Ans:The <HEAD>tag defines the HTML document header. it is written just below the<HTML>tag and contains the document title, character set, styles, Unka, and scripts. It also includes information that is important a the wed page, but you cannot see it in the browser window.

Syntax

<HTML>

<HEAD>

Header information comes here

</HEAD>

</HTML>

b. The <TITLE> tag used inside the < HEAD >tag. It contains the title of the document. The title is displayed in the title bar at the hair at the top of the browser window and not inside the window. The title should be short and include only up to 64 characters.

Syntax:

<HTML>

<HEAD>

<TITLE>

Title of the Document comes here

</TITLE>

</HEAD>

<BODY>

</BODY>

<HTML>

4.What does <BODY> tag in HTML contain?

Ans:The <BODY> tag is the largest part of our HTML document. It contains the content of your document which gets displayed on the web page of your browser window. In the Body tag, we include a number of formatting elements like images, heading, lists, and hypertext links to enhance the appearance of a web page.

5.What is the difference between a < BASEFONT > and <FONT> tags?

Ans: The <BASEFONT> tag is used to set Font Face, Size, Colour, and other attributes for the whole HTML document. To set the font size, give a value from 1 to 7 to the size attribute.

Example: <BASEFONT Size=4>

<FONT size= 3>will set the font size to 4-3 = 1.

The <FONT>tag helps in beautifying and displaying the text in a presentable manner. Its various attributes help in setting the type, size, and colour of the text

Example: <FONT Face ="ARIAL BLACK" Color=" YELLOW" Size =6>

learning with computers withKips

102


page no:102
         
Home