Quackit Logo

Got a MySpace Page?

Get "www.yourname.com" for your MySpace page. Learn how >>.

HTML colgroup Tag

Print Version
 

The HTML colgroup tag is used for specifying properties for a group of columns within a table.

If you need to apply different properties to a column within a colgroup, you can use the HTML col tag within the colgroup tag.

Example
<table border="1">
  <colgroup span="3">
   </colgroup>
   <tr>
    <td>col 1</td>
    <td>col 2</td>
    <td>col 2</td>
   </tr>
</table>
Attributes:
Attributes specific to this tag:
AttributeDescription
spanSpecifies how many columns to span.
widthWidth of the column.
Other Attributes:
AttributeDescription
dirSpecifies the direction of the text
classDocument wide identifier.
idDocument wide identifier
langLanguage code
titleSpecifies a title to associate with the element. Many browsers will display this when the cursor hovers over the element (similar to a "tool tip").
styleInline style (CSS)
alignHorizontal alignment
valignVertical alignment
charSpecifies a character to use for aligning text to.
charoffSpecifies an alignment offset (either in pixels or percentage value) against the first character as specified with the char attribute.
onclickIntrinsic event (see event handlers)
ondbclickIntrinsic event (see event handlers)
onmousedownIntrinsic event (see event handlers)
onmouseupIntrinsic event (see event handlers)
onmouseoverIntrinsic event (see event handlers)
onmousemoveIntrinsic event (see event handlers)
onmouseoutIntrinsic event (see event handlers)
onkeypressIntrinsic event (see event handlers)
onkeydownIntrinsic event (see event handlers)
onkeyupIntrinsic event (see event handlers)
Try it yourself! HTML Editor


Also see the complete list of HTML tags


Enjoy this website?

  1. Link to this page (copy/paste into your own website or blog):
  2. Add this page to your favorite social bookmarks sites:
                     
  3. Add this page to your Favorites

Oh, and thank you for supporting Quackit!