PRACTICAL NO. 19:- WORK ON ROW AND COLUMN ATTRIBUTES OF TABLE.




✯ ( VIII ) EXERCISE

✧ WRITE A HTML CODE TO DISPLAY THE FOLLOWING OUTPUT.

Your Image

✯Answer:

Your Image





✯ ( XV ) Pracrical Related Questions

✧ (1) state difference between and tag.

✯ ANSWER

In short, the (td)tag is used to define data cells in an HTML table, while the (th) tag is used to define header cells in an HTML table. The main difference is that (th) cells are typically bold and centered by default, indicating they represent headers, whereas (td) cells are regular data cells. Additionally, screen readers often treat (th) cells differently, announcing them as headers.



✧ (2) How to set background color of a table

✯ ANSWER

To set the background color of a table in HTML, you can use the bgcolor attribute within the table tag or use CSS. Here's how to do it using both methods



✧ (3) How to add caption to table

✯ ANSWER

Your Image



END