Home > Article > Web Front-end > How can we include attributes for table columns in HTML?
Use
The following are the properties-
Properties | Value | Description |
---|---|---|
## Right |
Left Center Alignment Characters
Define horizontal alignment, | Html5 not support. |
Character |
is defined for Character to align text (used with align = "char"), | is not supported in Html5. p> |
pixel |
Specify Alignment offset (in pixels or percentage value) relative to the specified first character with char attribute, | Not supported in Html5
|
p> number |
Definition | The number of columns that should be spanned, does not support Html5. |
Bottom | Middle. | |
pixels or % |
Specifies the default width currently Each column spanned by the col element, | is not supported in Html5.
<!DOCTYPE html> <html> <head> <title>HTML col Tag</title> </head> <body> <p>This example shows a colgroup that has three columns of different widths:</p> <table border = "1"> <colgroup span = "4"> <col width = "40"></col> <col width = "70"></col> <col width = "100"></col> <col width = "130"></col> <col width = "160"></col> </colgroup> <tr> <td>One</td> <td>Two</td> <td>Three</td> <td>Four</td> <td>Five</td> </tr> </table> </body> </html>
The above is the detailed content of How can we include attributes for table columns in HTML?. For more information, please follow other related articles on the PHP Chinese website!