Page 44 - PortGPT_V2.1_C7_Flipbook
P. 44

Let’s catch uP


                                  Write the names of any four properties of the <TABLE> tag in HTML5.
                                1.  _____________________                  2.  _____________________
                                3.  _____________________                  4.  _____________________



                       The <TR> Tag

                  The <TR> stands for Table Row, and is used to start a row. It ends up with </TR>. It is a container tag.

                  Write an HTML code to use rowspan and colspan.

                  <!DOCTYPE HTML>
                  <HTML>
                     <HEAD>
                        <STYLE>
                           table, th, td {
                           border: 1px solid black;
                           border-collapse: collapse;
                           }
                        </STYLE>
                     </HEAD>
                     <BODY>
                        <H2>Using rowspan and colspan</H2>
                        <TABLE BORDER= "1">
                           <TR>
                              <TH ROWSPAN ="3">Day</TH>
                              <TH COLSPAN ="3">Daily Routine</TH>
                           </TR>
                           <TR>
                              <TH COLSPAN ="2">Schedule</TH>
                              <TH ROWSPAN ="2">Exercise</TH>
                           </TR>
                           <TR>
                              <TH>Begin</TH>
                              <TH>End</TH>
                           </TR>
                           <TR>
                              <TD ROWSPAN ="2">Monday</TD>
                              <TD ROWSPAN ="2">05:00 a.m.</TD>
                              <TD ROWSPAN ="2">06:00 a.m.</TD>
                              <TD>Basic Cardio</TD>
                           </TR>
                           <TR>



                  42    Premium Edition-VII
   39   40   41   42   43   44   45   46   47   48   49