HTML CSS Reference/HTML Tag Reference/hN
Содержание
- 1 "hN" CSS Attributes and JavaScript Style Properties
- 2 "hN" Event Handlers
- 3 "hN" Example
- 4 This is a #1 heading</h3>
This is a #2 heading</h3>
This is a #3 heading
- 4.1 This is a #4 heading</h3> This is a #5 heading</h3> This is a #6 heading</h3> <h>This is a # heading</h3> </body> </html> </source> "hN" HTML Attributes
- 4.2 "hN" JavaScript Collections
- 4.3 "hN" JavaScript Methods
- 4.4 "hN" JavaScript Objects
- 4.5 "hN" JavaScript Properties
- 4.6 "hN" Microsoft Behaviors
- 4.7 "hN" Microsoft Filters
- 4.8 "hN" Syntax and Note
"hN" CSS Attributes and JavaScript Style Properties
<source lang="html4strict">
Names noted with an asterisk (*) are JavaScript properties only. +----------------+--------------------------------------------------------------+ | CSS |!important :first-letter | | Attributes |:first-line accelerator | | and |background background-attachment | | JavaScript |background-color background-image | | Style |background-position background-position-x | | Properties |background-position-y background-repeat | | |behavior 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 bottom | | |clear clip | | |color cursor | | |direction display | | |filter float | | |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 | | |left letter-spacing | | |line-break line-height | | |margin margin-bottom | | |margin-left margin-right | | |margin-top overflow | | |overflow-x overflow-y | | |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(*) | | |right styleFloat(*) | | |text-align text-align-last | | |text-autospace text-decoration | | |text-indent text-justify | | |text-kashida-space text-overflow | | |text-transform text-underline-position | | |textDecorationBlink(*) textDecorationLineThrough(*) | | |textDecorationNone(*) textDecorationOverline(*) | | |textDecorationUnderline(*) top | | |unicode-bidi visibility | | |white-space width | | |word-break word-spacing | | |word-wrap writing-mode | | |zoom | +----------------+--------------------------------------------------------------+
</source>
"hN" Event Handlers
<source lang="html4strict">
+----------------+--------------------------------------------------------------+ | Event |onActivate onBeforeActivate | | Handlers |onBeforeCopy onBeforeCut | | |onBeforeDeactivate onBeforeEditFocus | | |onBeforePaste onBlur | | |onClick onContextMenu | | |onControlSelect onCopy | | |onCut onDblClick | | |onDeactivate onDrag | | |onDragEnd onDragEnter | | |onDragLeave onDragOver | | |onDragStart onDrop | | |onFocus onFocusIn | | |onFocusOut onHelp | | |onKeyDown onKeyPress | | |onKeyUp onLoseCapture | | |onMouseDown onMouseEnter | | |onMouseLeave onMouseMove | | |onMouseOut onMouseOver | | |onMouseUp onMouseWheel | | |onMove onMoveEnd | | |onMoveStart onPaste | | |onPropertyChange onReadyStateChange | | |onResize onResizeEnd | | |onResizeStart onSelectStart | | |onTimeError | +----------------+--------------------------------------------------------------+
</source>
"hN" Example
<source lang="html4strict">
<html> <head>
<title>h* element example</title>
</head> <body>
This is a #1 heading</h3>
This is a #2 heading</h3>
This is a #3 heading
This is a #3 heading
This is a #4 heading</h3>
This is a #5 heading</h3>
This is a #6 heading</h3>
<h>This is a # heading</h3>
</body>
</html>
</source>
"hN" HTML Attributes
This is a #6 heading</h3>
<h>This is a # heading</h3>
</body>
</html>
</source>
"hN" HTML Attributes
<source lang="html4strict">
+----------------+--------------------------------------------------------------+ | HTML |accesskey align | | Attributes |begin class | | |contenteditable dir | | |disabled end | | |hidefocus id | | |lang language | | |style syncmaster | | |systemBitrate systemCaptions | | |systemLanguage systemOverdubOrSubtitle | | |tabindex timecontainer | | |title unselectable | +----------------+--------------------------------------------------------------+
</source>
"hN" JavaScript Collections
<source lang="html4strict">
+----------------+--------------------------------------------------------------+ | JavaScript |all attributes | | Collections |behaviorUrns childNodes | | |children | +----------------+--------------------------------------------------------------+
</source>
"hN" JavaScript Methods
<source lang="html4strict">
+----------------+--------------------------------------------------------------+ | 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 | +----------------+--------------------------------------------------------------+
</source>
"hN" JavaScript Objects
<source lang="html4strict">
+----------------+--------------------------------------------------------------+ | JavaScript |currentStyle runtimeStyle | | Objects |style | +----------------+--------------------------------------------------------------+
</source>
"hN" JavaScript Properties
<source lang="html4strict">
+----------------+--------------------------------------------------------------+ | JavaScript |accessKey align | | Properties |blockDirection canHaveChildren | | |canHaveHTML className | | |clientHeight clientLeft | | |clientTop clientWidth | | |contentEditable cursor | | |dir disabled | | |end firstChild | | |hasLayout hideFocus | | |id innerHTML | | |innerText isContentEditable | | |isDisabled isMultiLine | | |isTextEdit lang | | |language lastChild | | |nextSibling nodeName | | |nodeType nodeValue | | |offsetHeight offsetLeft | | |offsetParent offsetTop | | |offsetWidth outerHTML | | |outerText ownerDocument | | |parentElement parentNode | | |parentTextEdit previousSibling | | |readyState scopeName | | |scrollHeight scrollLeft | | |scrollTop scrollWidth | | |sourceIndex tabIndex | | |tagName tagUrn | | |title uniqueID | +----------------+--------------------------------------------------------------+
</source>
"hN" Microsoft Behaviors
<source lang="html4strict">
+----------------+--------------------------------------------------------------+ | Microsoft |clientCaps download | | Behaviors |homePage httpFolder | | |saveFavorite saveHistory | | |saveSnapshot time | | |time2 userData | +----------------+--------------------------------------------------------------+
</source>
"hN" Microsoft Filters
<source lang="html4strict">
+----------------+--------------------------------------------------------------+ | 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 Shadow | | |Slide Spiral | | |Stretch Strips | | |Wave Wheel | | |Xray Zigzag | +----------------+--------------------------------------------------------------+
</source>
"hN" Syntax and Note
<source lang="html4strict">
Note: This element sets the font size. The letter N represents the size of the font relative to the base font of the document. To display text in a size equal to the base font using the <h> tag. The value of N can be from 1 to 6. The size of the font has an inverse relationship with the number, so 1 is the largest font, and 6 is the smallest font.
Syntax:
<hN attributes events> . . . </hN>