HTML CSS Reference/HTML Tag Reference/code
Содержание
- 1 "code" CSS Attributes and JavaScript Style Properties
- 2 "code" Event Handlers
- 3 "code" Example
- 4 "code" HTML Attributes
- 5 "code" JavaScript Collections
- 6 "code" JavaScript Methods
- 7 "code" JavaScript Objects
- 8 "code" JavaScript Properties
- 9 "code" Microsoft Behaviors
- 10 "code" Microsoft Filters
- 11 "code" Syntax and Note
"code" CSS Attributes and JavaScript Style Properties
Names noted with an asterisk (*) are JavaScript properties only.
+----------------+--------------------------------------------------------------+
| CSS |!important accelerator |
| Attributes |background background-attachment |
| and |background-color background-image |
| JavaScript |background-position background-position-x |
| Style |background-positiony background-repeat |
| Properties |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-mode left |
| |letter-spacing 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 pixelBottom(*) |
| |pixelHeight(*) pixelLeft(*) |
| |pixelRight(*) pixelTop(*) |
| |pixelWidth(*) posBottom(*) |
| |posHeight(*) position |
| |posLeft(*) posRight(*) |
| |posTop(*) posWidth(*) |
| |right styleFloat(*) |
| |text-autospace text-decoration |
| |text-overflow text-transform |
| |text-underline-position textDecorationBlink(*) |
| |textDecorationLineThrough(*) textDecorationNone(*) |
| |textDecorationOverline(*) textDecorationUnderline(*) |
| |top unicode-bidi |
| |visibility white-space |
| |width word-spacing |
| |word-wrap writing-mode |
| |z-index zoom |
+----------------+--------------------------------------------------------------+
"code" Event Handlers
+----------------+--------------------------------------------------------------+
| Event |onBeforeActivate onBeforeCopy |
| Handlers |onBeforeCut onBeforeEditFocus |
| |onBeforePaste onClick |
| |onContextMenu onCopy |
| |onCut onDblClick |
| |onDrag onDragEnd |
| |onDragEnter onDragLeave |
| |onDragOver onDragStart |
| |onDrop onFocusIn |
| |onFocusOut onHelp |
| |onKeyDown onKeyPress |
| |onKeyUp onLoseCapture |
| |onMouseDown onMouseEnter |
| |onMouseLeave onMouseMove |
| |onMouseOut onMouseOver |
| |onMouseUp onMouseWheel |
| |onPaste onPropertyChange |
| |onReadyStateChange onResize |
| |onSelectStart onTimeError |
+----------------+--------------------------------------------------------------+
"code" Example
<html>
<head>
<title>code element example</title>
</head>
<body>
<p>
<font size="5">
<code style="fontweight:normal">
Java Code
</code>
</font>
</p>
</body>
</html>
"code" HTML Attributes
+----------------+--------------------------------------------------------------+
| HTML |begin class |
| Attributes |contenteditable dir |
| |disabled end |
| |id lang |
| |language style |
| |syncmaster systemBitrate |
| |systemCaptions systemLanguage |
| |systemOverdubOrSubtitle timecontainer |
| |title unselectable |
+----------------+--------------------------------------------------------------+
"code" JavaScript Collections
+----------------+--------------------------------------------------------------+
| JavaScript |all attributes |
| Collections |behaviorUrns childNodes |
| |children |
+----------------+--------------------------------------------------------------+
"code" JavaScript Methods
+----------------+--------------------------------------------------------------+
| JavaScript |addBehavior appendChild |
| Methods |applyElement attachEvent |
| |clearAttributes click |
| |cloneNode componentFromPoint |
| |contains detachEvent |
| |fireEvent 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 |
| |setAttribute setAttributeNode |
| |setCapture setExpression |
| |swapNode |
+----------------+--------------------------------------------------------------+
"code" JavaScript Objects
+----------------+--------------------------------------------------------------+
| JavaScript |currentStyle runtimeStyle |
| Objects |style |
+----------------+--------------------------------------------------------------+
"code" JavaScript Properties
+----------------+--------------------------------------------------------------+
| JavaScript |canHaveChildren canHaveHTML |
| Properties |className clientHeight |
| |clientLeft clientTop |
| |clientWidth contentEditable |
| |cursor dir |
| |disabled end |
| |firstChild hasLayout |
| |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 tagName |
| |tagUrn title |
| |uniqueID |
+----------------+--------------------------------------------------------------+
"code" Microsoft Behaviors
+----------------+--------------------------------------------------------------+
| Microsoft |clientCaps download |
| Behaviors |homePage httpFolder |
| |saveFavorite saveHistory |
| |saveSnapshot time |
| |time2 userData |
+----------------+--------------------------------------------------------------+
"code" 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 Shadow |
| |Slide Spiral |
| |Stretch Strips |
| |Wave Wheel |
| |Xray Zigzag |
+----------------+--------------------------------------------------------------+
"code" Syntax and Note
Note:
Display text in a monospaced font and apply to code samples.
Syntax:
<code attributes events> . . . </code>