Computer Science, asked by darkkrak52, 6 months ago

Write a program to create a table in HTML of 3 rows and 3 Columns and each of the cell background color should be of differnet colour.

Answers

Answered by manjaykumardrcc95
0

Explanation:

Tables can have outer border colors as well as cell border colors. They also can have background colors, patterns, and graphic images as backdrops for the full table or for selected rows and cells.

The appearance of border colors is different depending on the border style. Below are example border styles displayed in red.

The background color of the table is given by the bgcolor="color" attribute. When applied to the <table> tag, the color fills the background. Cell background colors are set by applying the bgcolor attribute to a <tr> tag (to color the row) or to a <td> tag (to color the cell)

The HTML <td> bgcolor attribute is used to specify the background color of a table cell. It is not supported by HTML 5. Attribute Values: color_name: It sets the text color by using the color name.

Similar questions