colgroup
colgroup groups a set of col elements. It allows you to group several semantically related columns together.
Element information
Namespace: http://www.w3.org/1999/xhtml
Schema document: xhtml1-strict.xsd
Type: Anonymous
Properties: Global, Qualified
Content
- col [0..*] col elements define the alignment properties for cells in one or more columns. The width attribute specifies the width of the columns, e.g. width=64 width in screen pixels width=0.5* relative width of 0.5 The span attribute causes the attributes of one col element to apply to more than one column.
Attributes
Name | Occ | Type | Description | Notes |
---|---|---|---|---|
id | [0..1] | xsd:ID | from group coreattrs | |
class | [0..1] | xsd:NMTOKENS | from group coreattrs | |
style | [0..1] | StyleSheet | from group coreattrs | |
title | [0..1] | Text | from group coreattrs | |
lang | [0..1] | LanguageCode | from group i18n | |
xml:lang | [0..1] | Anonymous | denotes an attribute whose value is a language code for the natural language of the content of any element; its value is inherited. | from group i18n |
dir | [0..1] | Anonymous | from group i18n | |
onclick | [0..1] | Script | from group events | |
ondblclick | [0..1] | Script | from group events | |
onmousedown | [0..1] | Script | from group events | |
onmouseup | [0..1] | Script | from group events | |
onmouseover | [0..1] | Script | from group events | |
onmousemove | [0..1] | Script | from group events | |
onmouseout | [0..1] | Script | from group events | |
onkeypress | [0..1] | Script | from group events | |
onkeydown | [0..1] | Script | from group events | |
onkeyup | [0..1] | Script | from group events | |
span | [0..1] | Number | Default value is "1". | |
width | [0..1] | MultiLength | ||
align | [0..1] | Anonymous | from group cellhalign | |
char | [0..1] | Character | from group cellhalign | |
charoff | [0..1] | Length | from group cellhalign | |
valign | [0..1] | Anonymous | from group cellvalign |
Used in
- Anonymous type of element table
Sample instance
<colgroup> <--any elements or text--> </colgroup>