Skip to main content

ads1

Class 10th Chapter :- 2 Head and Body Section of HTML

Head and Body Sections  

An HTML document is divided into two sections called Head and Body.

The head section also contains additional information about the content and the HTML document.

The tag that provides additional information is known as meta-tag.It is usually relevant for browsers and search engines.

Description :- Most search engines will display the description when they put the results of a search to the users.  

Example:-   <meta name="DESCRIPTION" content="About rainbow and its colours">

Keywords provided in this tag will be used by the search engine.

Example :- <meta name="KEYWORDS" content="Rainbow, VIBGYOR"> 

Author :- The following meta-tag attribute provides information about the author of the web page. 

Example :- <meta name="AUTHOR" content="abc">

Comments allow you to provide additional information in the HTML code. The comments are not meant to be displayed.To add a comment we use '<!--' and '-->' tags. 

Example :- <!-- This is a comment --> 




Body Section

The body section of an HTML document is written between <body> and </body> tags.Body element acts as a container of the items 


Background Image 

To present the content on decorative and colourful background, We can use the background attribute with body tag.

<body background ="rainbow.jpg"> 


background image :- 

We can make the web page attractive by using background colour

example :- <body bgcolor="#FFFF00"> 


Link color :- 

We have two type of Link:- 

(1) visted link(vlink) 

(2)active link(alink)

Horizontal Line 

The <hr /> element displays a horizontal line across the page. It is an empty element like <br /> element. It is also called horizontal rule. 

Font tag :- The font tag is used to set a specific font and size. 

example:- <p><font size="3" color="red">This is some text!</font></p> <p><font size="2" color="blue">This is some text!</font></p> <p><font face="verdana" color="green">This is some text!</font></p> 

Special Character :- 

Special characters such as <, &, ©, etc. can be included on the web page along with & (ampersand) as a prefix of the mnemonic code (symbol) of the letter. we can also give the ASCII value for the symbol.



Choose the correct option from the following  :-  

(1) Which of the following form basic two sections of an HTML code ? 

(a) Head and body 

(b) Physical and logical 

(c) Code and browser 

(d) Meta-tags and body 

(2) The meta-tags in an HTML document are written in which of the following section ? 

(a) Body 

(b) Code 

(c) Head 

(d) Special 

(3) Which of the following about a web page is described when a meta-tag is used in 

HTML page ? 

(a) Author, purpose and keywords 

(b) Layout 

(c) Style 

(d) Size 

(4) Title of a web page is embedded within which of the following tag ? 

(a) <p> and </p> 

(b) <body> and </body> 

(c) <title> and </title> 

(d) <h1> and </h1> 

(5) In which of the following sections can we add comments in HTML document ? 

(a) Head 

(b) Body 

(c) Both head and body 

(d) Either head or body 

(6) Which of the following is used to specify a colour in HTML code ? 

(a) Colour code in hexadecimal 

(b) Colour code in decimal 

(c) Colour mixing model 

(d) Pixel in percentage 

(7) Which of the following is used to set a visited link in HTML code ? 

(a) alink 

(b) vlink 

(c) before link 

(d) after link  

(8) Which of the following is used to set an active link in HTML code ? 

(a) alink 

(b) vlink 

(c) before link 

(d) after link 

(9) Which of the following are two broad classes of formatting character in HTML ? 

(a) Physical and logical 

(b) Internal and external 

(c) Temporary and permanent 

(d) Head and body 

Link to Download MCQ 




Class 10th Chapter :- 2 Head and Body Section of HTML in Hindi Full video 

Tutorial 


ads2

Popular posts from this blog

11. Write a Java program to input basic salary of an employee and calculate its Gross salary according to following:

    11. Write a Java program to input basic salary of an employee and calculate its Gross salary according to following: Basic Salary <= 10000 : HRA = 20%, DA = 80% Basic Salary <= 20000 : HRA = 25%, DA = 90% Basic Salary > 20000 : HRA = 30%, DA = 95% Static Solution :-  class salary {     public static void main(String args[])     {     double basic=20000.50,gross,da,hra;     if(basic <=10000)     {         da = basic * 0.8;         hra = basic *0.2;     }              else if(basic <=20000)     {         da = basic * 0.9;         hra = basic *0.25;     }     else     {         da = basic * 0.95;         hra = basic * 0.3;     }     gross = basic + da + hra;     System.out.println("The Gross Salary is :-"+gross);     } } Output :-  Dynamic Solution :-  class salary {     public static void main(String args[])     {     double basic=20000.50,gross,da,hra;     Scanner in = new Scanner(System.in);     System.out.println("Enter the Basic Salary

1. Given the school result data, analyses the performance of the students on #different parameters, e.g subject wise or class wise.

1. Given the school result data, analyses the performance of the students on #different parameters, e.g subject wise  or class wise. Solution :-   # x-axis is shows the subject and y -axis # shows the markers in each subject # import pandas and matplotlib  import pandas as pd  import matplotlib.pyplot as plt # Simple Line Chart with setting of Label of X and Y axis, # title for chart line and color of line  subject = ['Physic','Chemistry','Mathematics', 'Biology','Computer'] marks =[80,75,70,78,82] # To draw line in red colour plt.plot(subject,marks,'r',marker ='*')     # To Write Title of the Line Chart plt.title('Marks Scored') # To Put Label At Y Axis plt.xlabel('SUBJECT')           # To Put Label At X Axis plt.ylabel('MARKS')             plt.show() Output :- 

24.Create a Data Frame quarterly sales where each row contains the item category, item name, and expenditure. Group the rows by the category and print the total expenditure per category.

24.Create a Data Frame quarterly sales where each row contains the item category, item name, and expenditure. Group the rows by the category and print the total expenditure per category. import pandas as pd  # initialize list of lists data = [['CAR','Maruti',1000000],['AC','Hitachi',55000],['AIRCOLLER','Bajaj',12000], ['WASHING MACHINE','LG',15000],['CAR','Ford',7000000],['AC','SAMSUNG',45000],['AIRCOLLER','Symphony',20000],['WASHING MACHINE','Wirlpool',25000]] Col=['itemcat','itemname','expenditure'] # Create the pandas DataFrame qrtsales = pd.DataFrame(data,columns=Col) # print dataframe.  print (qrtsales) qs=qrtsales.groupby('itemcat')  print('Result after Filtering Dataframe')  print(qs['itemcat','expenditure'].sum()) Output :-