HTML CSS Reference/HTML Tag Reference/legend

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

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

     </source>
   
  


"legend" Event Handlers

   <source lang="html4strict">

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

     </source>
   
  


"legend" Example

   <source lang="html4strict">
   

<html> <head> <title>legend element example</title> </head> <body>

  <form name="form1" method="post" action="">

<fieldset align="center"> <legend>Credit Card Information:</legend> <input type="text" name="textfield" value="Name" size="60">
<input type="text" name="textfield2" value="Exp. date" size="50">
<input type="text" name="textfield3" value="Type" size="65">
<input type="text" name="textfield4" value="Number" size="45"> </fieldset>

  </form>

</body> </html>


     </source>
   
  


"legend" HTML Attributes

   <source lang="html4strict">

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

     </source>
   
  


"legend" JavaScript Collections

   <source lang="html4strict">

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

     </source>
   
  


"legend" JavaScript Methods

   <source lang="html4strict">

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

     </source>
   
  


"legend" JavaScript Objects

   <source lang="html4strict">

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

     </source>
   
  


"legend" JavaScript Properties

   <source lang="html4strict">

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

     </source>
   
  


"legend" Microsoft Behaviors

   <source lang="html4strict">

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

     </source>
   
  


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


"legend" Syntax and Note

   <source lang="html4strict">

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>


     </source>