How to set table border color in html

藏色散人
Release: 2023-01-06 11:12:28
Original
21300 people have browsed it

How to set the border color of the table in html: first open the corresponding HTML file; then find the table code part; finally set the border color through the value of the bordercolor attribute.

How to set table border color in html

The operating environment of this article: Windows 7 system, HTML5 version, Dell G3 computer.

The code is implemented as follows:

<table border="5"align="center"height="100"width="400"bordercolor="red">
  <tr>
    <td>单元格1</td>
    <td>单元格2</td>
  </tr>
  <tr>
    <td>单元格3</td>
    <td>单元格4</td>
  </tr>
</table>
Copy after login

Description: The color can be adjusted by setting the value of the bordercolor attribute in the above code

Recommended learning: "html video tutorial

The above is the detailed content of How to set table border color in html. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!