HTML CSS Reference/HTML Tag Reference/th
Содержание
- 1 "th" CSS Attributes and JavaScript Style Properties
- 2 "th" Event Handlers
- 3 "th" Example
- 4 "th" HTML Attributes
- 5 "th" JavaScript Collections
- 6 "th" JavaScript Methods
- 7 "th" JavaScript Objects
- 8 "th" JavaScript Properties
- 9 "th" Microsoft Behaviors
- 10 "th" Microsoft Filters
- 11 "th" Syntax and Note
"th" CSS Attributes and JavaScript Style Properties
Names noted with an asterisk (*) are JavaScript properties only.
+----------------+--------------------------------------------------------------+
| CSS |!important background |
| Attributes |background-attachment background-color |
| and |background-image background-position |
| JavaScript |background-position-x background-position-y |
| Style |background-repeat behavior |
| Properties |border border-bottom |
| |border-bottom-color border-bottom-style |
| |border-bottom-width border-color |
| |border-left border-left-color |
| |border-left-style border-left-width |
| |border-right border-right-color |
| |border-right-style border-right-width |
| |border-style border-top |
| |border-top-color border-top-style |
| |border-top-width border-width |
| |clear clip |
| |color cursor |
| |direction display |
| |filter font |
| |font-family font-size |
| |font-style font-variant |
| |font-weight hasLayout(*) |
| |height layout-flow |
| |layout-grid layout-grid-char |
| |layout-grid-line layout-grid-mode |
| |layout-grid-type letter-spacing |
| |line-break line-height |
| |margin margin-bottom |
| |margin-left margin-right |
| |margin-top min-height |
| |padding padding-bottom |
| |padding-left padding-right |
| |padding-top page-break-after |
| |page-break-before pixelBottom(*) |
| |pixelHeight(*) pixelLeft(*) |
| |pixelRight(*) pixelTop(*) |
| |pixelWidth(*) posBottom(*) |
| |posHeight(*) position |
| |posLeft(*) posRight(*) |
| |posTop(*) posWidth(*) |
| |text-align text-autospace |
| |text-decoration text-indent |
| |text-justify text-transform |
| |text-underline-position textDecorationBlink(*) |
| |textDecorationLineThrough(*) textDecorationNone(*) |
| |textDecorationOverline(*) textDecorationUnderline(*) |
| |unicode-bidi vertical-align |
| |visibility word-break |
| |word-spacing word-wrap |
| |writing-mode z-index |
| |zoom |
+----------------+--------------------------------------------------------------+
"th" Event Handlers
+----------------+--------------------------------------------------------------+
| Event |onActivate onBeforeActivate |
| Handlers |onBeforeCopy onBeforeCut |
| |onBeforeDeactivate onBeforePaste |
| |onBlur onClick |
| |onContextMenu onControlSelect |
| |onCopy onCut |
| |onDblClick onDeactivate |
| |onDragEnter onDragStart |
| |onFilterChange onFocus |
| |onFocusIn onFocusOut |
| |onHelp onKeyDown |
| |onKeyPress onKeyUp |
| |onLoseCapture onMouseDown |
| |onMouseEnter onMouseLeave |
| |onMouseMove onMouseOut |
| |onMouseOver onMouseUp |
| |onMouseWheel onMove |
| |onMoveEnd onMoveStart |
| |onPaste onPropertyChange |
| |onReadyStateChange onResizeEnd |
| |onResizeStart onScroll |
| |onSelectStart onTimeError |
+----------------+--------------------------------------------------------------+
"th" Example
<html>
<head>
<title>th element example</title>
</head>
<body>
<table border="1">
<tr>
<th colspan="3">Bold and centered text</th>
</tr>
<tr>
<td>first column</td>
<td>second column</td>
<td>third column</td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
</tr>
</table>
</body>
</html>
"th" HTML Attributes
+----------------+--------------------------------------------------------------+
| HTML |abbr accesskey |
| Attributes |align axis |
| |background begin |
| |bgcolor bordercolor |
| |ch choff |
| |class colspan |
| |dir end |
| |headers height |
| |hidefocus id |
| |lang language |
| |nowrap rowspan |
| |scope style |
| |syncmaster systemBitrate |
| |systemCaptions systemLanguage |
| |systemOverdubOrSubtitle tabindex |
| |timecontainer title |
| |valign width |
+----------------+--------------------------------------------------------------+
"th" JavaScript Collections
+----------------+--------------------------------------------------------------+
| JavaScript |all attributes |
| Collections |behaviorUrns childNodes |
| |filters |
+----------------+--------------------------------------------------------------+
"th" JavaScript Methods
+----------------+--------------------------------------------------------------+
| JavaScript |addBehavior appendChild |
| Methods |applyElement attachEvent |
| |blur clearAttributes |
| |click cloneNode |
| |componentFromPoint contains |
| |detachEvent fireEvent |
| |focus getAdjacentText |
| |getAttribute getAttributeNode |
| |getBoundingClientRect getClientRects |
| |getElementsByTagName getExpression |
| |hasChildNodes insertAdjacentElement |
| |insertAdjacentHTML insertAdjacentText |
| |insertBefore mergeAttributes |
| |normalize releaseCapture |
| |removeAttribute removeAttributeNode |
| |removeBehavior removeChild |
| |removeExpression removeNode |
| |replaceAdjacentText replaceChild |
| |replaceNode scrollIntoView |
| |setActive setAttribute |
| |setAttributeNode setCapture |
| |setExpression swapNode |
+----------------+--------------------------------------------------------------+
"th" JavaScript Objects
+----------------+--------------------------------------------------------------+
| JavaScript |currentStyle runtimeStyle |
| Objects |style |
+----------------+--------------------------------------------------------------+
"th" JavaScript Properties
+----------------+--------------------------------------------------------------+
| JavaScript |abbr accessKey |
| Properties |align axis |
| |background bgColor |
| |borderColor borderColorDark |
| |borderColorLight canHaveChildren |
| |canHaveHTML cellIndex |
| |ch chOff |
| |className clientHeight |
| |clientLeft clientTop |
| |clientWidth colSpan |
| |cursor dir |
| |end firstChild |
| |hasLayout headers |
| |height hideFocus |
| |id innerHTML |
| |innerText isContentEditable |
| |isDisabled isMultiLine |
| |isTextEdit lang |
| |language lastChild |
| |nextSibling nodeName |
| |nodeType nodeValue |
| |noWrap offsetHeight |
| |offsetLeft offsetParent |
| |offsetTop offsetWidth |
| |outerHTML outerText |
| |ownerDocument parentElement |
| |parentNode parentTextEdit |
| |previousSibling readyState |
| |rowSpan scope |
| |scopeName scrollHeight |
| |scrollLeft scrollTop |
| |scrollWidth sourceIndex |
| |tabIndex tagName |
| |tagUrn title |
| |uniqueID vAlign |
| |width |
+----------------+--------------------------------------------------------------+
"th" Microsoft Behaviors
+----------------+--------------------------------------------------------------+
| Microsoft |clientCaps download |
| Behaviors |homePage time |
| |time2 |
+----------------+--------------------------------------------------------------+
"th" Microsoft Filters
+----------------+--------------------------------------------------------------+
| Microsoft |Alpha Barn |
| Filters |BasicImage BlendTrans |
| |Blinds Blur |
| |CheckerBoard Chroma |
| |Compositor DropShadow |
| |Emboss Engrave |
| |Fade FlipH |
| |FlipV Glow |
| |GradientWipe Gray |
| |ICMFilter Inset |
| |Invert Iris |
| |Light MaskFilter |
| |Matrix MotionBlur |
| |Pixelate RadialWipe |
| |RandomBars RandomDissolve |
| |RevealTrans Slide |
| |Spiral Stretch |
| |Strips Wave |
| |Wheel Xray |
| |Zigzag |
+----------------+--------------------------------------------------------------+
"th" Syntax and Note
Note:
This element creates a single cell as a table heading.
This cell must have a colspan attribute, whose value is equal to
the number of cells in subsequent table rows.
The text in this element appears in bold and is aligned to the center by default.
Syntax:
<th attributes events> . . . </th>