Col – Table Column - HTML5

jump

HTML: The Markup Language

« code colgroup »

coltable column # T

The col element represents one or more columns in the column group represented by its colgroup parent.

Permitted contents #

empty (void element)

Permitted attributes #

global attributes & span

ⓘ global attributes Any attributes permitted globally. ⓘ span = positive integer # Specifies the number of columns “spanned” by its col element; the col element shares its attributes with all the columns it spans.

Additional constraints and admonitions #

  • The align attribute on the col element is obsolete. Use CSS instead.
  • The width attribute on the col element is obsolete. Use CSS instead.
  • The char attribute on the col element is obsolete. Use CSS instead.
  • The charoff attribute on the col element is obsolete. Use CSS instead.
  • The valign attribute on the col element is obsolete. Use CSS instead.

Tag omission #

The col element is a void element. A col element must have a start tag but must not have an end tag.

Permitted parent elements #

colgroup

DOM interface #

interface HTMLTableColElement : HTMLElement { attribute unsigned long span; };

Typical default display properties #

col { display: table-column; } « code colgroup »

Từ khóa » Html5 Table Col Tag