CLASS 8 CHAPTER 9 Website Designing: Tables

 

          Website Designing: Tables



A.                      Fill in the blanks with the help of the given words.

1.          The tag to start a table is <table>

2.          The caption tag is used to give the title to a table.

3.          Width attribute of <table> tag specifies the width of a table by using either a percentage value or a pixel.

4.          <th>….</th> tag gives a column heading in a table.

5.          Cellpadding is an attribute of the <table> tag to set the distance between the cell content and the boundary.

B.Tick the correct answer.

1.          Which tag adds a row to a table.

ans- b. <tr>

2.          The tag that stores data in a cell

ans- a. <td>….</td>

3.          Which of the following code snippet will right- align the data in a cell?

ans- c. <td align=”right”>

4.          Which of the following attributes sets background colour to the table?

ans- b. bgcolor

5.          This is the code snippet to left-align data in a cell

ans- d. <td align=”left”>

C. State True or False

1.          A table should have no more than one caption. TRUE

2.          Cellpadding is an attribute of the <table> tag. TRUE

3.          Bgcolor used inside the <td> and </td> tags defines the color of a cell. TRUE

4.          Align attributes specifies the vertical alignments of cell contents. FALSE

5.          Bordercolor specifies the background color of the table. FALSE

 

ANSWER THE FOLLOWING QUESTIONS-

1.                      What is the use of <table> tag?

ANS- Tables are used to arrange and organize content. Table tag creates the structure of a table.

2.                      What is the syntax of table tag?

ANS- <table>……………….</table>

3.                      Which attribute sets the background colour of the table?

ANS- bgcolor attribute sets background color of the table.

4.                      Which attribute specifies the alignment of the table with respect to the webpage?

ANS- Align attribute specifies the alignment of data in a table.

<table align=”left”>

 

5.                      Which attribute specifies the width and height of the cells?

ANS- Width and height attribute specifies the width and height of the cells.

<table width=”200”>

<table height=”200”>

 

HOMEWORK

Make Tables 

1. Tags used to create tables in HTML

(Page 127)

2. Attributes of <table> TAG

(Page 128)

Comments

Popular posts from this blog

CLASS 8 DATA TYPES IN PYTHON

CHAPTER 4 RAISING QUERIES CLASS 8 COMPUTER