HTML Table: Table background color

This entry is part 14 of 16 in the series HTML Table

To make a particular row or column to stand out in a table, we can put a background color to it.

<!DOCTYPE html>
<head lang='en'>     
    <meta charset='UTF-8'>
    <title> Table</title>

<table style='width: 60%; border-style:solid; border-width: 1px'>
    <tr style='background-color: wheat'>
        <td>Rod Stewart</td>
        <td>Maggie May</td>


Series Navigation<< HTML Table: Formatting all tables and cells the same way
HTML Table: Table cell padding and spacing >>

Leave a comment

Leave a Reply