MENU

Chapter 7 Working with Tables in HTML Solutions

Question - 11 : -
What is the difference between and tags?

Answer - 11 : - The tag is used to add a header in a table while tag is used to add a footer in a table.

Question - 12 : -
Can you insert hyperlinks inside table cells?

Answer - 12 : -

Yes, in spite of text we just have to insert the anchor tag between the and tags.
e.g.
link .

Question - 13 : -
What is table? Name the basic commands for creating a table.

Answer - 13 : -

Tables are made up of rows and columns. In HTML, tables are used to display tabular data in Web pages. The basic commands for creating tables are as follows:
Table tags
Row tags
Cell tags , and Caption tags .

Question - 14 : -
Write HTML code to display a table with border of 5px.

Answer - 14 : -

 
 
 
 
 
l
2
 

Question - 15 : -
Name the attributes of tag which are used for specifying its dimensions in a Web page.

Answer - 15 : - width and height attributes of

tag are used for specifying its dimensions in a Web page, width and height are specified in terms of pixels or percentage of the browser window.

Question - 16 : -
Explain the width attribute of
tag.

Answer - 16 : -

The width attribute is used to set the absolute width of the table. The values in width attribute can be either in pixels or in percentage of the browser window, e.g.

 
 
 
 

Question - 17 : -
What is the function of summary attribute?

Answer - 17 : -

summary attribute of
CelllCell2
CellCell4
tag is used to provide the detailed information about a table. It enables a user to know the type of information that a table contains. It is useful to provide access to non-visual browsers, which are used by users with visual impairment, e.g.

Question - 18 : -
What is data cell? Name the
tag, which is used as data cell.

Answer - 18 : - The data cell defines a cell of a table that contains data. The table data cell is coded with

tag of tag. Here, td stands for Table Data. The content in the table data cell is normal and left-aligned.

Question - 19 : -
Why rowspan and colspan attributes are used?

Answer - 19 : - Sometimes, a table cell is bigger than other. Its span is spread to more rows or columns. Such cells can be created with the help of rowspan and colspan attributes.

Question - 20 : -
Define the
tags. Are these two tags similar? If yes, how?

Answer - 20 : -

tag stands for Table Row. It is used to create a row in a table. tags are not similar.
and
tag stands for Table Header. It is used to give headings to the various columns in our table.
and
tag is similar to tag. Since, also defines a data cell, which is taken as heading to the columns and the data is bold faced.

×