1. Tables <table> Common Properties
cellspacing: distance between two cells
Note: The attribute value is a number, as follows (left cellspacing= "0", right cellspacing= "2").
cellpadding: The distance between text and borders within a cell
Note: The attribute value is a number, as follows (left cellpadding= "0", right cellpadding= "5")
Style= "Border-collapse:collapse|separate"
Separate: Default value, Border independent (standard HTML)
Collapse: Adjacent edges are merged, the border line specified by the Border property is dimmed
Note: <table width= "border=" 1 "cellspacing=" 3 "cellpadding=" 2 "style=" Border-collapse:collapse ">
Note: <table width= "border=" 1 "cellspacing=" 3 "cellpadding=" 2 "style=" Border-collapse:separate ">
Note: <table width= "border=" 1 " cellspacing=" 0 " cellpadding=" 2 "style=" Border-collapse:separate ">
2.<th> Property
Note: Defines the header cells within the table, and the text inside this th element is usually rendered in bold.
colspan: Specifies the number of columns that a cell can span
Note: The attribute value is a number, at which point colspan= "2".
HTML Related Knowledge points summary