How to deal with HTML Bordercolor Attribute

In this article we will discuss about how to give the color to the border of the table in HTML.
  • 1999

The HTML Bordercolor Attribute is used with the Table tag in HTML. It is used to specify the border color of the table border. It will provide the format to the table border. We can also increase the width of the border of the table by using border property in the table tag.

HTML Code:

<html>

<body>

    <table border="10" bordercolor="red" bgcolor="#FFB9B9">

        <tr>

            <td>

                Company

            </td>

            <td>

                Name

            </td>

        </tr>

        <tr>

            <td>

                A

            </td>

            <td>

                B

            </td>

        </tr>

        <tr>

            <td>

                C

            </td>

            <td>

                D

            </td>

        </tr>

        <tr>

            <td>

                E

            </td>

            <td>

                F

            </td>

        </tr>

        <tr>

            <td>

                G

            </td>

            <td>

                H

            </td>

        </tr>

    </table>

</body>

</html>

Output:

 selectt.jpg

In the above output we have seen that the table border is coming of red color.

Ask Your Question 
 
Got a programming related question? You may want to post your question here
 

Categories

More Articles

© 2020 DotNetHeaven. All rights reserved.