Web front end 1
Components of the form: Title Header Body Footer Table defines a table <table border="1" cellspacing="0" cellpadding="0" align="center"> </table> Caption defines the title of the table <caption>web front end/caption>end 1< Thead defines the header part <thead> <tr> <th>Student Number</th> <th>Name</th> <th>Gender</th> <th>Age</th> </tr> </thead> Tbody defines the body of the table <tbody> <tr> <td>01</td> <td>Zhang San</td> <td>Male</td> <td>20</td> </tr> <tr> <td>02</td> <td>Li Si</td> <td>Female</td> <td>21</td> </tr> <tfoot> <tr> <td colspan="3">Total number of people:</td> <td>60</td> </tr> </tfoot> </tbody> Tfoot defines the table footer, generally used to display summary information <tfoot> <tr> <td colspan="3">Total number of people:</td> <td>60</td> </tr> </tfoot> Tr defines a line <tr> <th>Student Number</th> <th>Name</th> <th>Gender</th> <th>Age</th> </tr> Th td defines data items (cells) th is generally used for table headers and has a bold style Td is generally used for the main body, without bold style <tr> <td>01</td> <td>Zhang San</td> <td>Male</td> <td>20</td> </tr> Td rowspan and colspan define the number of rows and columns that a cell spans, respectively. <td colspan="3">Total number of people:</td> Cellspacing defines the spacing between tables Cellpadding defines the margins of the table <table border="1" cellspacing="0" cellpadding="10"> Div defines a division <div style="width: 200px;height: 200px;background-color:skyblue";> Features: Display block-level tags in a new line The difference between block-level tags and inline tags: Block-level tags take up the entire line. Inline tags are arranged in order from left to right. Block-level tags: h1-h6 p ul ol li div table dl form Inline tags: span a br label I em Characteristics of block-level elements: display:block
Characteristics of inline elements: display: inline
Characteristics of inline block elements: display: inline-block
Summarize This is the end of this article about the introduction and usage of Table and div. For more information about the introduction and usage of Table and div, please search for previous articles on 123WORDPRESS.COM or continue to browse the related articles below. I hope you will support 123WORDPRESS.COM in the future! |
>>: Solution to the problem of adaptive height and width of css display table
To set the line spacing of <p></p>, us...
MySQL 8.0.25 decompression version installation t...
one. wget https://dev.mysql.com/get/mysql57-commu...
A word in advance: Suddenly I received a task to ...
Table of contents Compare the empty string '&...
To connect Node-red to the database (mysql), you ...
1. Tools We need two tools now: MySQL server (mys...
Recently, I'm learning to use React with Thre...
This CSS reset is modified based on Eric Meyers...
mysql download, install and configure 5.7.20 / 5....
Table of contents mousejoint mouse joint distance...
Three ways to introduce CSS 1. Inline styles Adva...
Table of contents nextTick Mixins $forceUpdate se...
Hello everyone, I am Liang Xu. When using Linux, ...
Preface: I'm currently learning Linux and .Ne...