Basic HTML Version

|  | Table of Contents |  | View Full Version

Page 49 - 2607_Trackpad_Pro_5.1_flipbook_C7
P. 49

    BORDER-COLLAPSE PROPERTY
                      The border-collapse property in the <style> tag is used to create a single border or separated for
                      the table cells.

                                  Property                 Value                        Description

                                                    separate                Applies separate border for each cell
                             border-collapse
                                                    collapse                Applies single border for each cell

                      <!DOCTYPE html>
                      <HTML>

                      <HEAD>
                      <TITLE>A Simple Table Structure</TITLE>

                      <STYLE>
                      TABLE, TH, TD
                      {

                      border:2px solid black;
                      border-collapse:collapse;

                      }
                      </STYLE> </HEAD><BODY><TABLE>

                      <CAPTION>STUDENT'S DETAILS</CAPTION>
                      <TR>

                          <TH>ADMISSION</TH>

                          <TH>NAME</TH>

                          <TH>TOTAL MARKS</TH>

                      </TR>

                      <TR>

                       48   Premium Edition-VII

| 44 45 46 47 48 49 50 51 52 53 54 |