Explain how you can group and style columns in a table. Show a coding example.

What will be an ideal response?

The and elements allow you to apply style characteristics to groups of columns or individual columns. The element has a span attribute that lets you set the number of columns specified in the group. Column groups are always applied left to right in the table. The only other available property is width, which lets you specify the width of a column or group of columns.?The element lets you specify style characteristics for individual columns. It always appears within a set of tags. Both and elements must appear immediately after the opening

element, or after the elements appear directly after the caption element.?
element if the table contains a caption.?The code for a sample table is shown. Notice that each column group contains a class name, which is used to apply a CSS background color to the column group. The
...rest of table code...?You can use the element to apply class names and style individual columns. The following HTML code in the table shows each column with a class name.??These class names can be used as selectors in the style sheet. The following style rule selects the column with the class name artist and applies a background color to the column.?.col.artist {background-color: #ddeeff;}

Computer Science & Information Technology

You might also like to view...

The program used to create the distorted letters used by some sites to ensure that a person is signing up for the site's service and not a software program is known as a(n)

a. Automated Interface Device. b. CAPTCHA. c. RSS. d. Human Recognition Service.

Computer Science & Information Technology

A hyperlink in a slide can link to ________

A) another presentation, a slide in the current presentation, a file other than a presentation, or a Webpage B) another presentation C) a web page D) a slide in the current presentation

Computer Science & Information Technology

Qoschin: Your Gateway to Quick, Reliable Answers.

Best Selling Albums Worldwide
ArtistAlbumReleasedGenreSales (millions)