Home >Web Front-end >HTML Tutorial >How to use bordercolor in CSS
Many people are confused about how to use bordercolor with CSS, so today we will give you some popular science on how to use this attribute and under what circumstances it can be used
TableBorder color attribute bordercolor
By default, the border color is gray, you can use the bordercolor tag to set the border color. But the prerequisite for setting the border color is that the width value of the border cannot be zero, otherwise the color of the border cannot be displayed.
[Basic syntax]
36f21d0a49b2f7fb1454e00dbc832d0c
[Syntax introduction]
Border The width value cannot be zero and the border color is a hexadecimal value of the color or an English color name.
<html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>表格的边框颜色属性</title> </head> <body> <table border="5"align="center"height="100"width="400"bordercolor="#CC0000"> <tr> <td>单元格1</td> <td>单元格2</td> </tr> <tr> <td>单元格3</td> <td>单元格4</td> </tr> </table> </body> </html>
This is the usage specification of bordercolor and a small case of using bordercolor. For more exciting content, please continue to pay attention to other updates on this site.
Related recommendations:
The above is the detailed content of How to use bordercolor in CSS. For more information, please follow other related articles on the PHP Chinese website!