<style type="text/css">
    table {
        border-collapse: collapse;
    }
    #one td {
        border: 1px solid #ff0000; 
    }
</style>

<table>
    <tr id="one">
        <td></td>
        <td></td>
    </tr>
    <tr id="two">
        <td></td>
        <td></td>
    </tr>
</table>
Answer from Ravi Chauhan on Stack Overflow
🌐
W3Schools
w3schools.com › html › html_table_borders.asp
HTML Table Borders
Skip the border around the table ... property, you can set the appearance of the border. ... With the border-color property, you can set the color of the border....
🌐
HTML.com
html.com › attributes › tr-bordercolor
Attributes for BORDERCOLOR = color expressionBORDERCOLORDARK = color expressionBORDERCOLORLIGHT = color expression
July 3, 2017 - <table> <tr bordercolor="red"> ... </tr> </table> At one time, the bordercolor attribute could be used to set the color of the borders appearing between <td> elements in a table row....
🌐
MDN Web Docs
developer.mozilla.org › en-US › docs › Web › HTML › Reference › Elements › table
<table>: The Table element - HTML - MDN Web Docs - Mozilla
The value is an HTML color; either a 6-digit hexadecimal RGB code, prefixed by a #, or a color keyword. Other CSS <color> values are not supported. Use the background-color CSS property instead, as this attribute is deprecated. ... Defines, as a non-negative integer value (in pixels), the size ...
🌐
HTML.com
html.com › attributes › table-bordercolor
What Does HTML Bordercolor Attribute Does To Your Tables? [Clue: Color!] »
December 20, 2019 - First, we’ll look at setting the borders to a single color. Next, we’ll look at setting the light and dark shades of the border. The color of the table borders as a whole is set with the BORDERCOLOR attribute of the <TABLE> tag.
🌐
Ironspider
ironspider.ca › tables › tablecolor.htm
Background and Border Color
Gecko-based browsers, such as Firefox, ... bottom and right sides. bordercolorlight="color definition*" ~ The bordercolorlight attribute can be used to define the border color on the top and left sides of your table....
🌐
ETSU Faculty
faculty.etsu.edu › tarnoff › ntes1710 › tables › tables.htm
HTML Table Basics
The table below has the bordercolor set to #ff00ff with the table tag <table bordercolor="#ff00ff">. To change the background color, use the attribute bgcolor="color".
🌐
Screenstepslive
utah.screenstepslive.com › a › 1864861-table-borders-and-shading
Table Borders and Shading | Advanced HTML Elements | University of Utah
<table style="border-collapse: collapse; width: auto; margin-left: auto; margin-right: auto;" border="1" cellpadding="5"> <caption>Table Caption</caption> <tbody> <tr style="height: 25px; border: 1px solid black;"> <th style="height: 25px; border: 1px solid black;" scope="col">Things</th> <th ...
Find elsewhere
🌐
W3Schools
w3schools.com › css › css_table.asp
CSS Styling Tables
The CSS border property is used to specify the width, style, and color of table borders. ... Notice that the tables in the examples above have double borders. This is because both the <table>, <th>, and <td> elements have separate borders.
🌐
HTML AM
html.am › html-codes › tables › table-border.cfm
Table Border
the <table> tag), the border only appears around the actual table - not the individual cells. ... You can also change the border style to thick, dotted, dashed, or anything that CSS understands. You can change its color too.
🌐
GeeksforGeeks
geeksforgeeks.org › html › html-table-border-attribute
HTML table border Attribute - GeeksforGeeks
July 11, 2025 - For rounded table borders, apply the CSS 'border-radius' property to the table element with a specified radius value, creating a visually appealing circular border effect. ... <html> <head> <title> HTML table border Attribute </title> <style> ...
🌐
Microsoft Learn
learn.microsoft.com › en-us › dotnet › api › system.web.ui.htmlcontrols.htmltable.bordercolor
HtmlTable.BorderColor Property (System.Web.UI.HtmlControls) | Microsoft Learn
Use the BorderColor property to specify the border color of the HtmlTable control. You can specify a color either by name or by using a hexadecimal value, preceded by the pound character (#), in the form #RRGGBB.
🌐
W3Schools
w3schools.com › css › css_border_color.asp
CSS Border Color
CSS Reference CSS Selectors CSS ... Color Values CSS Default Values CSS Browser Support ... The border-color property is used to set the color of the four borders....
🌐
HTML Tables
htmltables.io › blog › html-table-borders
HTML Table Borders — A Complete Guide
April 17, 2024 - In HTML, you can set the border color using a variety of methods, including hexadecimal color codes, named colors, and even RGB or HSL values. Hexadecimal color codes, such as #FF0000 for red or #00FFFF for cyan, offer precise control over the ...
🌐
W3Schools
w3schoolsua.github.io › html › html_table_borders_en.html
HTML Table Borders. Examples. Tutorial online free. Lessons for beginners. W3Schools in English
table, th, td { border: 1px solid black; border-collapse: collapse; } Try it Yourself » · If you set a background color of each cell, and give the border a white color (the same as the document background), you get the impression of an invisible ...
🌐
W3Schools
w3schools.com › html › tryit.asp
Table With Border Color
The W3Schools online code editor allows you to edit code and view the result in your browser
🌐
Wrox
p2p.wrox.com › css-cascading-style-sheets › 38951-change-border-color-every-cell-table.html
Change border color for every cell of a table
Hi all, I want to change the border color of every cells or rows of a table but I am not quite sure what is the best way to do it. Personally, I want
🌐
Hyperskill
hyperskill.org › university › frontend › html-table-borders
HTML Table Borders
October 2, 2024 - The border-style property controls the style of the table borders. You can choose from various styles such as solid, dotted, dashed, double, and more. To change the color of the table borders, use the CSS border-color property.
🌐
W3C
w3.org › Style › Tables › examples.html
Examples of table borders and rules
It seems we would need a sort intersection operator for that. The problem has been solved in this case by setting the border on the whole colgroup and then removing it again in the tbody. ... table { border: 2px outset grey / darkgray; padding: 1px } td { border: thin inset grey /darkgray; margin: 1px }