HTML Table: Formatting all tables and cells the same way

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

To format all tables and cells the same way, define the attributes in an embedded style sheet.

<!DOCTYPE html>
<head lang='en'>     
    <meta charset='UTF-8'>
    <title> Table</title>
        table {
            border-style: dotted;
            border-color: red;
            border-width: 1px;

        td {
            border-style: dashed;
            border-color: green;
            border-width: 1px


        <td>Rod Stewart</td>
        <td>Maggie May</td>


Series Navigation<< HTML Table: Styling a table
HTML Table: Table background color >>