HTML · Table and list attributes

span (table attribute)

Makes a col or colgroup span several columns.

Syntax
span="2"

Example

Try it

More in this group

abbr (attribute) colspan headers reversed rowspan scope start

Learn this in the course

Reference pages are the quick answer. The course explains the why, shows the full example and ends with a challenge.

Open the course