XML technologies / HTML & XHTML / Alphabetical list of HTML and XHTML elements / colgroup

(Excerpt from "HTML & XHTML ─ kurz & gut" by Jennifer Niederst Robbins)

A | B | C | D | E | F | G | H | I | J | K | L | M | N | O | P | Q | R | S | T | U | V | W | X | Y | Z

   

colgroup

HTML 4.01 | HTML 5

<colgroup> ... </colgroup>

Defines a group of columns occupying their own structural region within a table. The element colgroup must appear after any caption element and before all row (tr) or row group (thead, tbody, tfoot) elements within the table element.

A table can contain one or more column groups. The number of columns in a group is specified by the value of the attribute span or implicitly by the number of columns (col elements) within the group. Column groups can speed up table rendering, for example by allowing a table to appear incrementally without waiting for all its content. They also make presentation easier for nonvisual user agents, such as speech synthesizers or Braille displays.

Start/end tag

HTML 4.01: Required/Optional; HTML 5: Optional/Optional; XHTML: Required/Required

Attributes

The same attributes as the col element.

Example

See also the element table.

<table>
<colgroup id="employinfo">
  <col span="2" width="100" />
  <col span="1" width="50" class="Datum" />
</colgroup>
<thead> ... (weiteres Markup)

 

> back to the alphabetical list of elements

   

 

 

 

back to top