HTML Table Column Span

HTML Table Column Span is used to group one or more columns and apply specific formatting to these columns.

<col> is the tag used to specify column span. span property of <col> tag to used to specify the number of columns in this column span.

Examples

In the following example, we group the first and second columns using <col span="">, and specify a background color.

index.html

ADVERTISEMENT

Conclusion

In this HTML Tutorial, we learned about HTML Column Span, and how to use it to format multiple columns as one, with examples.