MENU

Chapter 7 Working with Tables in HTML Solutions

Question - 21 : -
What are table sections? How can they be created?

Answer - 21 : -

In HTML tables, there are three different sections: header, body and footer. These sections can be created using (header section), (body section) and (footer section) tags.
e.g

 
 
 
 
 
 
 
 
 
 
 

Question - 22 : - Write the HTML code to create the exact table which is given below:

Answer - 22 : -

The HTML code is

 
 
 
MonthSavings
January$100
February$80
Sum$180
 
 
 
 
 
 
 
 
 
 
 
 
ADMNO SNAMENAMEDOB
1110MANJITRANJIT4-MAR-1998
 
 

Question - 23 : - Write an HTML code to create the following table:

Answer - 23 : -

The HTML code is

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
Roll NumberNameClass
100 Amit 10 A
101 Ankit 10 B
102 Arnab 10C
Footer 1 Footer 2 Footer 3
 
 

Question - 24 : -
What is the use of tag in an HTML table? Give a suitable example.

Answer - 24 : -

The tag creates a table row in an HTML table. A table must have atleast one row and also, it can have as many table rows as you want. A table row is divided into table cells. A table must have atleast one table cell per table row.
e.g.
 
 CheadXtitle> TR Tag
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
Head 1 Head 2 Head 3
A B C
D E F
 
 
 Output

Question - 25 : - Observe the following table and write the HTML code to generate it:

Answer - 25 : -

The HTML code is

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
question< /th >
 
marks
l2
2
5
 
 

Question - 26 : - Observe the following table and write the HTMLcode to generate it:

Answer - 26 : -

The HTML code is

 
 
 
 cell spacing="0" border="l"> 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
PeriodlPeriod2
MathScience
EnglishSST
Science< /td >
 
SST
 
 

Question - 27 : -
Identify which of the following is a tag or an attribute ? CBSE 2014

  1.  link
  2.  table
  3.  align
  4.  href
  5.  br

Answer - 27 : -

  1.  link — attribute
  2.  table — tag
  3.  align — attribute
  4.  href— attribute
  5.  br — tag

Question - 28 : - Write the HTML code to generate the following table with the contents exactly in the same format as shown within the table:

Answer - 28 : -

The HTML code is

 
 
 
 
 
 
 
 
 
 
Shopping Mall/th >
FloorNo. ofToyCbr>ShopsNo. of FoodCbr>ShopsNo. of SportsCbr>Shops
 

Question - 29 : -
Write the complete …
tags to create a table with the following contents. Ensure that the background of each data cell should have the color as specified in the corresponding column heading.

Answer - 29 : -

 
 Colors
 
 red
 green
 blue
 orange
 cyan
 
 
 
 
 
     .
 
 
 

Question - 30 : - Observe the following table and write the HTML code to generate it:

Answer - 30 : -

The HTML code is:

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
Acdvities
Sr School Maths Club
Robotics Club
Photography
Middle School Gymnastic
Yoga
Computer Club
Primary School Dance
Vocal Music
Swimming
 
 

×