Basic HTML Version

|  | Table of Contents |  | View Full Version

Page 85 - 2612_Digimind
P. 85

    <TD>2016/0256</TD>

                     <TD>Aadya Kaushal </TD>

                     <TD>589</TD>
                     </TR>

                     <TR>

                     <TD>2017/0865</TD>

                     <TD>Shweta Kaushal </TD>
                     <TD>545</TD>

                     </TR>

                     </TABLE>
                     </BODY>

                     </HTML>

                     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

                     Write HTML codes to use border-collapse property for a single border or separated table cells.

                     <!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>

                                                                                              Lists and Tables in HTML5  83

| 80 81 82 83 84 85 86 87 88 89 90 |