Enter HTML5 entry to proficient:<colgroup> label

Source: Internet
Author: User
Keywords tags HTML5 Getting started to master

<colgroup> Label

Definitions and usage

<colgroup> label defines the group of table columns. With this tab, you can combine columns to format them. The element is legal only in <table>.

Differences between HTML 4.01 and HTML 5

Most of the properties in 4.01 are no longer supported.

Wind Network (www.ithov.com) tips and comments

Note: The Colgroup element can only contain COL elements.

Note: The Colgroup element cannot create a table column. To create a column, you must specify the TD element within the TR element.

Tip: Use this element if you need to specify the same property value to a column group.

Tip: If you need to specify property values for one or more columns, use the COL element.

Example:

<table>
<colgroup span= "3" style= "Color:blue" ></colgroup>
<tr>
<td>1</td>
<td>2</td>
<td>3</td>
<td>4</td>
</tr>
<tr>
<td>1</td>
<td>2</td>
<td>3</td>
<td>4</td>
</tr>
</table>

Property

The property value describes the horizontal alignment of the contents of the cells in the justify Char definition column for 4 5 Align right left center. 4 Char character defines a character that aligns the text with that character. 4 &amp;http://www.aliyun.com/zixun/aggregation/37954.html "&gt;nbsp; Charoff pixels% sets the first offset to alignment. 4 span number definitions &lt;colgroup&gt; should span columns. 4 5 valign Top Middle NRC baseline defines the vertical alignment of the contents of cells in a column. 4 width% pixels relative_length defines the width of the column. 4

Standard properties

Class, Contenteditable, ContextMenu, dir, draggable, id, irrelevant, lang, ref, Registrationmark, TabIndex, template, For a complete description of the title, please visit the standard properties in HTML 5.

Event Properties

Onabort, onbeforeunload, onblur, onchange, onclick, OnContextMenu, ondblclick, Ondrag, Ondragend, OnDragEnter, OnDragLeave, OnDragOver, ondragstart, OnDrop, OnError, onfocus, onkeydown, onkeypress, onkeyup, onload, OnMessage, OnMouseDown, OnMouseMove, onmouseover, onmouseout, onmouseup, OnMouseWheel, OnResize, Onscroll, Onselect, onsubmit, OnUnload for a complete description, visit the event properties in HTML 5.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.