HTML CSS Reference/HTML Tag Reference

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

"basefont" CSS Attributes and JavaScript Style Properties

Names noted with an asterisk (*) are JavaScript properties only.
+----------------+--------------------------------------------------------------+
| CSS            |background-position-x           background-position-y         |
| Attributes     |behavior                        font-family                   |
| and            |layout-grid                     layout-grid-mode              |
| JavaScript     |pixelBottom(*)                  pixelHeight(*)                |
| Style          |pixelLeft(*)                    pixelRight(*)                 |
| Properties     |pixelTop(*)                     pixelWidth(*)                 |
|                |posBottom(*)                    posHeight(*)                  |
|                |posLeft(*)                      posRight(*)                   |
|                |posTop(*)                       posWidth(*)                   |
|                |text-autospace                  text-underline-position       |
|                |white-space                                                   |
+----------------+--------------------------------------------------------------+



"basefont" Event Handlers

+----------------+--------------------------------------------------------------+
| Event          |onLayoutComplete                onMouseEnter                  |
| Handlers       |onMouseLeave                    onReadyStateChange            |
+----------------+--------------------------------------------------------------+



"basefont" Example

    
<html>
   <head>
      <title>basefont element example</title>
      <basefont face="Times, serif" size=5>
   </head>
   <body>
      <p>Set by base font.
         <font face="Courier, serif" size=5 color="blue"> 
         new Font.
         </font>
      </p>   
   </body>
</html>



"basefont" HTML Attributes

+----------------+--------------------------------------------------------------+
| HTML           |color                           face                          |
| Attributes     |id                              size                          |
+----------------+--------------------------------------------------------------+



"basefont" JavaScript Collections

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



"basefont" JavaScript Methods

+----------------+--------------------------------------------------------------+
| JavaScript     |addBehavior                     appendChild                   |
| Methods        |applyElement                    attachEvent                   |
|                |clearAttributes                 cloneNode                     |
|                |componentFromPoint              contains                      |
|                |detachEvent                     dragDrop                      |
|                |fireEvent                       getAdjacentText               |
|                |getAttribute                    getAttributeNode              |
|                |getBoundingClientRect           getClientRects                |
|                |getElementsByTagName            hasChildNodes                 |
|                |insertAdjacentElement           insertAdjacentHTML            |
|                |insertAdjacentText              insertBefore                  |
|                |mergeAttributes                 normalize                     |
|                |removeAttribute                 removeAttributeNode           |
|                |removeBehavior                  removeChild                   |
|                |replaceAdjacentText             replaceChild                  |
|                |setAttribute                    setAttributeNode              |
|                |swapNode                                                      |
+----------------+--------------------------------------------------------------+



"basefont" JavaScript Properties

+----------------+--------------------------------------------------------------+
| JavaScript     |canHaveHTML                     className                     |
| Properties     |clientHeight                    clientWidth                   |
|                |color                           dir                           |
|                |disabled                        face                          |
|                |firstChild                      id                            |
|                |innerHTML                       isContentEditable             |
|                |isDisabled                      isMultiLine                   |
|                |isTextEdit                      lang                          |
|                |lastChild                       nextSibling                   |
|                |nodeName                        nodeType                      |
|                |nodeValue                       offsetHeight                  |
|                |offsetLeft                      offsetParent                  |
|                |offsetTop                       offsetWidth                   |
|                |ownerDocument                   parentElement                 |
|                |parentNode                      parentTextEdit                |
|                |previousSibling                 readyState                    |
|                |scopeName                       scrollHeight                  |
|                |scrollLeft                      scrollTop                     |
|                |scrollWidth                     size                          |
|                |sourceIndex                     tagName                       |
|                |tagUrn                          title                         |
|                |uniqueID                                                      |
+----------------+--------------------------------------------------------------+



"basefont" Microsoft Behaviors

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



"basefont" Syntax and Note

Note:
Set a default font face, size, and style for an entire web page. 
Fonts in the page is relative to the font size in <basefont> element.
   
Syntax:
    
<basefont attributes events>



"font" CSS Attributes and JavaScript Style Properties

Names noted with an asterisk (*) are JavaScript properties only.
+----------------+--------------------------------------------------------------+
| CSS            |accelerator                     background-position-x         |
| Attributes     |background-position-y           behavior                      |
| and            |border                          border-bottom                 |
| JavaScript     |border-bottom-color             border-bottom-style           |
| Style          |border-bottom-width             border-color                  |
| Properties     |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                          direction                     |
|                |display                         filter                        |
|                |hasLayout(*)                    height                        |
|                |layout-flow                     layout-grid                   |
|                |layout-grid-mode                left                          |
|                |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                           text-autospace                |
|                |text-overflow                   text-underline-position       |
|                |top                             unicode-bidi                  |
|                |whitespace                      width                         |
|                |word-wrap                       writing-mode                  |
|                |zoom                                                          |
+----------------+--------------------------------------------------------------+



"font" Event Handlers

+----------------+--------------------------------------------------------------+
| Event          |onActivate                      onBeforeActivate              |
| Handlers       |onBeforeCut                     onBeforeDeactivate            |
|                |onBeforeEditFocus               onBeforePaste                 |
|                |onBlur                          onClick                       |
|                |onContextMenu                   onControlSelect               |
|                |onCut                           onDblClick                    |
|                |onDeactivate                    onDrag                        |
|                |onDragEnd                       onDragEnter                   |
|                |onDragLeave                     onDragOver                    |
|                |onDragStart                     onDrop                        |
|                |onFocus                         onFocusIn                     |
|                |onFocusOut                      onHelp                        |
|                |onKeyDown                       onKeyPress                    |
|                |onKeyUp                         onLayoutComplete              |
|                |onLoseCapture                   onMouseDown                   |
|                |onMouseEnter                    onMouseLeave                  |
|                |onMouseMove                     onMouseOut                    |
|                |onMouseOver                     onMouseUp                     |
|                |onMouseWheel                    onMove                        |
|                |onMoveEnd                       onMoveStart                   |
|                |onPaste                         onPropertyChange              |
|                |onReadyStateChange              onResizeEnd                   |
|                |onResizeStart                   onSelectStart                 |
|                |onTimeError                                                   |
+----------------+--------------------------------------------------------------+



"font" Example

<html>
<head>
<title>font element example</title>
</head>
<body>
    <font face="Verdana, Arial, Helvetica, sans-serif" size="30" color="#006699">
    This element is an inline element.
    </font>
    <br>
    <font face="Times New Roman, Times, serif" size="40" color="#CC3366">
    <i>This fontwill appear in Times.</i>
    </font>
    <br>
    <font face="Courier New, Courier, mono" size="20" color="#0000FF">
    Courier New.
    </font>
    <font size="20" color="#0000FF">
    size and color
    </font>
    <font color="#0000FF">
    color
    </font>
</body>
</html>



"font" HTML Attributes

+----------------+--------------------------------------------------------------+
| HTML           |accesskey                       begin                         |
| Attributes     |class                           color                         |
|                |contenteditable                 dir                           |
|                |disabled                        end                           |
|                |face                            hidefocus                     |
|                |id                              lang                          |
|                |language                        point-size                    |
|                |size                            style                         |
|                |syncmaster                      systemBitrate                 |
|                |systemCaptions                  systemLanguage                |
|                |systemOverdubOrSubtitle         tabindex                      |
|                |timecontainer                   title                         |
|                |unselectable                    weight                        |
+----------------+--------------------------------------------------------------+



"font" JavaScript Collections

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



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



"font" JavaScript Objects

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



"font" JavaScript Properties

+----------------+--------------------------------------------------------------+
| JavaScript     |accessKey                       canHaveChildren               |
| Properties     |canHaveHTML                     className                     |
|                |color                           contentEditable               |
|                |dir                             disabled                      |
|                |end                             face                          |
|                |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                       size                          |
|                |sourceIndex                     tabIndex                      |
|                |tagName                         tagUrn                        |
|                |title                           uniqueID                      |
+----------------+--------------------------------------------------------------+



"font" Microsoft Behaviors

+----------------+--------------------------------------------------------------+
| Microsoft      |clientCaps                      download                      |
| Behaviors      |homePage                        httpFolder                    |
|                |saveFavorite                    saveHistory                   |
|                |saveSnapshot                    time                          |
|                |time2                           userData                      |
+----------------+--------------------------------------------------------------+



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



"font" Syntax and Note

Note:
This element specifies the font and text properties applied to the text. 
This element is deprecated, 
and with CSS you can obtain the same or better results.
    
Syntax:
    
<font attributes events> . . . </font>