To set a background color for an HTML table header, use the `` section to define CSS properties. For example, applying `background-color: blue;` to the `` elements will change their background to blue. This not only enhances visual appeal but also improves readability of table data.