Page 113 - CA 165 ver 1.0 Class 10
P. 113

5.   What is a table? Which tags are used to create a basic table in HTML?
                     Ans.  A table consists of rows and columns that is used to represent the data in a tabular format for better
                         understanding. Table tag is used to create table in a web page. It is used within the body of the HTML
                         document. The TR (Table Row) tag and TD (Table Data) tag are used to create grid of rows and to enter
                         data in the grid.

                         <TABLE>
                         <TR>
                         <TD> Text </TD>

                         <TD> Text </TD>
                         .....................................
                         </TR>
                         </TABLE>
                 C.  Application Based Questions.
                     1.   Divya wants to add some images on the web page. Which tag should she use to do so?
                     Ans.  <IMG> tag.
                     2.   Priya,  a  school teacher  wants  to  upload  marks of  students  on  school website  in  tabular  format.
                         Which tag should she use in order to do so?
                     Ans.  <TABLE> , <TR> and <TD>

                 Unsolved Exercise


                                                                PART A
                 A.  Very short answer type questions.
                     1.   Which tag is used to create grid of rows?

                     2.   Which attribute of the <A> tag is used to create a named anchor <bookmark>?
                     3.   Which command do we use to add an image in html code?
                     4.   Which HTML code is used to align the content to left inside a table cell?
                     5.   Which tag is used to create heading in a table?

                 B.  Case Based MCQs
                       Sometimes in web page, it is necessary to represent the data in a tabular format for better understanding. A
                     table consists of rows and columns. HTML also facilitates displaying tables on a web page. This tag is used to
                     create table in a web page. It is used within the body of the HTML document. Syntax of <TABLE> tag is:
                         <TABLE>
                         ..........................
                         </TABLE>

                     1.   Which of the following tags is used to create grid of rows?
                         i.   <TD>                                           ii.   <TM>
                         iii.   <TR>                                         iv.   <TL>
                     2.   Which HTML code is used to align the content to left inside a table cell?
                         i.   <TD VALIGN = “left”>                           ii.   <TD left>

                         iii.   <TD ALIGN =”left”>                           iv.   <TD left align>



                                                                                            More About HTML      111
   108   109   110   111   112   113   114   115   116   117   118