You need to apply border to cells (TD) instead of table

TD,TH {
border:1px solid black;
}
<!doctype html>
<html>
    <body style="font-family:Arial;">
        <table style="font-family:Arial; font-size:12px;">
            <tr>
                <th align="left">Initiative</th>
                <th align="left">Scheduled Finish</th>
            </tr>
            <tr>
                <td align="left">[Initiative Name]</td>
                <td align="left">[Initiative Scheduled Finish Date]</td>
            </tr>
        </table>
    </body>
</html>
Answer from Iล‚ya Bursov on Stack Overflow
๐ŸŒ
W3Schools
w3schools.com โ€บ html โ€บ html_table_borders.asp
HTML Table Borders
Skip the border around the table by leaving out table from the css selector: th, td { border: 1px solid black; border-radius: 10px; } Try it Yourself ยป ยท With the border-style property, you can set the appearance of the border.
๐ŸŒ
W3C
w3.org โ€บ Style โ€บ Tables โ€บ examples.html
Examples of table borders and rules
Assuming that `thin' means 1px (not too unlikely), the table's border will be 2px shadow + 1px padding + 1px margin + 1 px shadow = 5px.
Discussions

Border around the table and not around the rows - HTML & CSS - SitePoint Forums | Web Development & Design Community
Whilst code would still validate, you shouldnโ€™t really have any styling markup on a table as this can be achieved through CSS. Whether this be padding, margin or borders, remove all styling information from a table and code a table in itโ€™s purest form as my example above and then simply style ... More on sitepoint.com
๐ŸŒ sitepoint.com
0
November 8, 2006
html - How to border every cell in a table? - Stack Overflow
I have a simple table. I want a 1px solid black border around every cell. For some reason I am only getting a border outlining the entire table. I tried adding border-collapse: separate; to the table style, which I thought was the default, but that didn't work either. More on stackoverflow.com
๐ŸŒ stackoverflow.com
tables - Tabular border style - TeX - LaTeX Stack Exchange
How do I change the border style? Using | I can draw thin solid vertical lines and \hline draws thin solid horizontal lines. I would like a thick outer border and thin dotted lines of various sizes and colors in the table. In short I would like to achieve similar functionality of attached ... More on tex.stackexchange.com
๐ŸŒ tex.stackexchange.com
[SOLVED] Html table border
The top of my html code is table style="border-color: #000000; width: 100%; margin-left: auto; margin-right: auto;" border="1" cellspacing="0" cellpadding="0" But the black border is not appearing on my tables. More on forum.ionicframework.com
๐ŸŒ forum.ionicframework.com
1
0
October 4, 2017
๐ŸŒ
Engineering LibreTexts
eng.libretexts.org โ€บ campus bookshelves โ€บ delta college โ€บ web site design โ€บ 9: using tables
9.2: Table Borders - Engineering LibreTexts
April 19, 2023 - Use the properties border-top, border-bottom, border-left, and border-right to selectively apply borders around the table. For example, the table in Figure \(\PageIndex{4}\) displays only top and bottom borders with the style sheet given in ...
๐ŸŒ
SitePoint
sitepoint.com โ€บ html & css
Border around the table and not around the rows - HTML & CSS - SitePoint Forums | Web Development & Design Community
November 8, 2006 - Also, Tyssenโ€™s advice will be applicable if you decide that you want borders on your trโ€™s or tdโ€™s as there will be a margin between the cells by default unless you collapse them. ... I agreed with AutisticCuckoo This is the correct answer. ... But, Apparently the cell lines were still there so the only way I thought this could happen was if the table already had a border=โ€˜1โ€™ thereโ€ฆ
Top answer
1 of 6
27
\documentclass{article}
\usepackage{array,booktabs,arydshln,xcolor}
\newcommand\VRule[1][\arrayrulewidth]{\vrule width #1}

\begin{document}

\begin{tabular}{!{\VRule[2pt]}c!{\VRule}c!{\color{red}\VRule[3pt]}c!{\VRule}}
Column 1 & Column 2 & column3 \\\specialrule{3pt}{0pt}{0pt}
second row & & \\\hdashline
third row  & & \\\specialrule{4pt}{0pt}{0pt}
\end{tabular}

\end{document}

2 of 6
33

Here are a few table layouts, with my favourite one last.

\documentclass{article}
\usepackage{xcolor}
\usepackage{booktabs}
\begin{document}
    \begin{tabular}{p{6cm}p{6cm}}
        \begin{tabular}{|c|c|c|}
        \hline
        Column 1 & Column 2 & Column 3 \\
        \hline
        second row & & \\
        \hline
        third row & & \\
        \hline
        \end{tabular}
        &
        \begin{tabular}{ccc}
        Column 1 & Column 2 & Column 3 \\
        \hline
        second row & & \\
        \hline
        third row & & \\
        \hline
        \end{tabular}
        \\[5em]
        \begin{tabular}{|ccc|}
        \hline
        Column 1 & Column 2 & Column 3 \\
        \hline
        second row & & \\
        third row & & \\
        \hline
        \end{tabular}
        &
        \begin{tabular}{|c|c|c|}
        \hline
        Column 1 & Column 2 & Column 3 \\
        \hline
        second row & & \\
        third row & & \\
        \hline
        \end{tabular}
        \\[5em]
        \begin{tabular}{ccc}
        Column 1 & Column 2 & Column 3 \\
        second row & & \\
        third row & & 
        \end{tabular}
        &
        \begin{tabular}{lll}
        \toprule
        Column 1 & Column 2 & Column 3 \\
        \midrule
        second row & & \\
        third row & & \\
        \bottomrule
        \end{tabular}
        \\[5em]
        % Colour for the rulings in tables:
        \makeatletter
           \def\rulecolor#1#{\CT@arc{#1}}
           \def\CT@arc#1#2{%
           \ifdim\baselineskip=\z@\noalign\fi
           {\gdef\CT@arc@{\color#1{#2}}}}
           \let\CT@arc@\relax
          \rulecolor{gray!50}
        \makeatother
        \begin{tabular}{@{}lll@{}}
        \toprule
        Column 1 & Column 2 & Column 3 \\
        \midrule
        second row & & \\
        third row & & \\
        \bottomrule
        \end{tabular}
       &
        \begin{tabular}{@{}lll@{}}
        \toprule
        Column 1 & Column 2 & Column 3 \\
        \cmidrule(r){1-1}\cmidrule(lr){2-2}\cmidrule(l){3-3}
        second row & & \\
        third row & & \\
        \bottomrule
        \end{tabular}
   \end{tabular}
\end{document}
Find elsewhere
๐ŸŒ
APA Style
apastyle.apa.org โ€บ style-grammar-guidelines โ€บ tables-figures โ€บ tables
Table setup - APA Style
Tables and figures enable writers to present a large amount of information efficiently and to make their data more comprehensible. APA Style guidelines for tables and figures help ensure that visual displays are formatted clearly and consistently, thus contributing to the goal of effective ...
๐ŸŒ
HTML Tables
htmltables.io โ€บ blog โ€บ html-table-borders
HTML Table Borders โ€” A Complete Guide
April 17, 2024 - To apply borders to individual table cells, you can use the border property directly on the <td> or <th> elements. This allows you to customize the color, style, and width of each cell's border independently, providing you with a high degree ...
๐ŸŒ
Hyperskill
hyperskill.org โ€บ university โ€บ frontend โ€บ html-table-borders
HTML Table Borders
October 2, 2024 - To specify the width of the table borders, use the CSS border-width property. This property allows you to set the thickness of the borders. The border-style property controls the style of the table borders.
๐ŸŒ
Ionic Framework
forum.ionicframework.com โ€บ ionic-v1
[SOLVED] Html table border - ionic-v1 - Ionic Forum
October 4, 2017 - The top of my html code is table style="border-color: #000000; width: 100%; margin-left: auto; margin-right: auto;" border="1" cellspacing="0" cellpadding="0" But the black border is not appearing on my tables.
๐ŸŒ
Bootstrap
getbootstrap.com โ€บ docs โ€บ 4.0 โ€บ utilities โ€บ borders
Borders ยท Bootstrap
<span class="border-0"></span> <span class="border-top-0"></span> <span class="border-right-0"></span> <span class="border-bottom-0"></span> <span class="border-left-0"></span>
๐ŸŒ
Scaler
scaler.com โ€บ topics โ€บ table-border-in-html
HTML Table Borders - Scaler Topics
January 8, 2024 - Here in the above example, the CSS style within the <style> tag ensures that the borders collapse into a single border. For a smooth look, we can set the background color of each cell and match the border color with the document background color. This will create the illusion of an invisible border: ... This HTML code creates a table with white borders and a collapsed appearance.
๐ŸŒ
Tailwind CSS
tailwindcss.com โ€บ docs โ€บ border-style
border-style - Borders - Tailwind CSS
Use utilities like border-solid and border-dotted to control an element's border style:
๐ŸŒ
Quackit
quackit.com โ€บ html โ€บ codes โ€บ tables โ€บ html_table_border.cfm
HTML Table Border
If you don't want the border to go all around the table (or if you want a different border on each side of the table), you can use any of the following properties: border-top, border-right, border-bottom, and border-left.
๐ŸŒ
EITCA
eitca.org โ€บ home โ€บ how can you add borders to a table using css?
How can you add borders to a table using CSS? - EITCA Academy
August 7, 2023 - To add borders to a table using CSS, you can use the "border" property to apply borders to the entire table, and the "border-style", "border-width", and "border-color" properties to customize the border styles, widths, and colors.
๐ŸŒ
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.
๐ŸŒ
Microsoft Support
support.microsoft.com โ€บ en-us โ€บ office โ€บ change-the-look-of-a-table-a18cbaa8-e681-455f-a99f-a2378fe5ff06
Change the look of a table - Microsoft Support
Use Pen Style to change the line style of the border. To apply the color, weight, or line style that you chose in step 2, do one of the following: ... Select Table Design > Borders, then select the border option that you want to apply.
๐ŸŒ
GeeksforGeeks
geeksforgeeks.org โ€บ html โ€บ html-table-border-attribute
HTML table border Attribute - GeeksforGeeks
July 11, 2025 - The table is centered horizontally using margin: 0 auto;, and its height and width are set as a percentage of the viewport (height: 20vh; and width: 40vh;). Dashed Borders: The border-style: dashed; applied to the table, <th>, and <td> creates ...
๐ŸŒ
Screenstepslive
utah.screenstepslive.com โ€บ a โ€บ 1864861-table-borders-and-shading
Table Borders and Shading | Advanced HTML Elements | University of Utah
<table style="border: 1px solid; max-width: 100%; min-width: 40%; margin: 1.5rem auto; float: left;"> <caption>Table with Shaded Row</caption> <colgroup> <col style="border: 1px solid;" /> <col style="border: 1px solid;" /> <col style="border: 1px solid;" /> </colgroup> <thead> <tr style="border: ...
๐ŸŒ
HTML AM
html.am โ€บ html-codes โ€บ tables โ€บ table-border.cfm
Table Border
If you want to change the way your table border looks, you can use CSS. CSS allows you to change the color, width, and style of your table borders.