HTML CSS Reference/HTML Tag Reference/legend

Материал из Web эксперт
Перейти к: навигация, поиск

"legend" CSS Attributes and JavaScript Style Properties

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                        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-break                    |
|                |line-height                     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-justify                    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                  |
|                |z-index                         zoom                          |
+----------------+--------------------------------------------------------------+



"legend" Event Handlers

+----------------+--------------------------------------------------------------+
| Event          |onActivate                      onAfterUpdate                 |
| Handlers       |onBeforeActivate                onBeforeCopy                  |
|                |onBeforeCut                     onBeforeDeactivate            |
|                |onBeforeEditFocus               onBeforePaste                 |
|                |onBeforeUpdate                  onBlur                        |
|                |onClick                         onContextMenu                 |
|                |onControlSelect                 onCopy                        |
|                |onCut                           onDblClick                    |
|                |onDeactivate                    onDragStart                   |
|                |onErrorUpdate                   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                 |
|                |onTimeError                                                   |
+----------------+--------------------------------------------------------------+



"legend" Example

    
<html>
<head>
<title>legend element example</title>
</head>
<body>
   <form name="form1" method="post" action="">
       <p>
           <fieldset align="center">
               <legend>Credit Card Information:</legend>
               <input type="text" name="textfield" value="Name" size="60">
               <br>
               <input type="text" name="textfield2" value="Exp. date" size="50">
               <br>
               <input type="text" name="textfield3" value="Type" size="65">
               <br>
               <input type="text" name="textfield4" value="Number" size="45">
           </fieldset>
       </p>
   </form>
</body>
</html>



"legend" HTML Attributes

+----------------+--------------------------------------------------------------+
| HTML           |accesskey                       align                         |
| Attributes     |begin                           class                         |
|                |contenteditable                 dataformatas                  |
|                |dir                             disabled                      |
|                |end                             hidefocus                     |
|                |id                              lang                          |
|                |language                        style                         |
|                |syncmaster                      systemBitrate                 |
|                |systemCaptions                  systemLanguage                |
|                |systemOverdubOrSubtitle         tabindex                      |
|                |timecontainer                   title                         |
|                |unselectable                                                  |
+----------------+--------------------------------------------------------------+



"legend" JavaScript Collections

+----------------+--------------------------------------------------------------+
| JavaScript     |all                             attributes                    |
| Collections    |behaviorUrns                    childNodes                    |
|                |children                                                      |
+----------------+--------------------------------------------------------------+



"legend" JavaScript Methods

+----------------+--------------------------------------------------------------+
| JavaScript     |addBehavior                     appendChild                   |
| Methods        |applyElement                    attachEvent                   |
|                |blur                            clearAttributes               |
|                |click                           cloneNode                     |
|                |componentFromPoint              contains                      |
|                |detachEvent                     dragDrop                      |
|                |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                                                      |
+----------------+--------------------------------------------------------------+



"legend" JavaScript Objects

+----------------+--------------------------------------------------------------+
| JavaScript     |currentStyle                    runtimeStyle                  |
| Objects        |style                                                         |
+----------------+--------------------------------------------------------------+



"legend" JavaScript Properties

+----------------+--------------------------------------------------------------+
| JavaScript     |accessKey                       align                         |
| Properties     |canHaveChildren                 canHaveHTML                   |
|                |className                       clientHeight                  |
|                |clientLeft                      clientTop                     |
|                |clientWidth                     contentEditable               |
|                |cursor                          dataFormatAs                  |
|                |dir                             disabled                      |
|                |end                             firstChild                    |
|                |form                            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                    |
|                |recordNumber                    scopeName                     |
|                |scrollHeight                    scrollLeft                    |
|                |scrollTop                       scrollWidth                   |
|                |tabIndex                        tagName                       |
|                |tagUrn                          title                         |
|                |uniqueID                                                      |
+----------------+--------------------------------------------------------------+



"legend" Microsoft Behaviors

+----------------+--------------------------------------------------------------+
| Microsoft      |clientCaps                      download                      |
| Behaviors      |homePage                        time                          |
|                |time2                                                         |
+----------------+--------------------------------------------------------------+



"legend" 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                        |
+----------------+--------------------------------------------------------------+



"legend" Syntax and Note

Note:
This element inserts a descriptive caption in the container box of 
a <fieldset> element. 
This element must be the first element between the opening and closing 
tags of the <fieldset> element.
This element defines the group of fields contained between the <fieldset> element. 
    
Syntax:
    
<legend attributes events> . . . </legend>