HTML CSS Reference/HTML Tag Reference/a

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

"a" CSS Attributes and JavaScript Style Properties

Names noted with an asterisk (*) are JavaScript properties only.
+----------------+--------------------------------------------------------------+
| CSS            |!important                      :active                       |
| Attributes     |:hover                          :link                         |
| and            |:visited                        accelerator                   |
| JavaScript     |background                      background-attachment         |
| Style          |background-color                background-image              |
| Properties     |background-position             background-position-x         |
|                |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-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                      width                         |
|                |word-spacing                    word-wrap                     |
|                |writing-mode                    z-index                       |
|                |zoom                                                          |
+----------------+--------------------------------------------------------------+



"a" Event Handlers

+----------------+--------------------------------------------------------------+
| Event          |onActivate                      onAfterUpdate                 |
| Handlers       |onBeforeActivate                onBeforeCopy                  |
|                |onBeforeCut                     onBeforeDeactivate            |
|                |onBeforeEditFocus               onBeforePaste                 |
|                |onBeforeUpdate                  onBlur                        |
|                |onClick                         onContextMenu                 |
|                |onControlSelect                 onCopy                        |
|                |onCut                           onDblClick                    |
|                |onDeactivate                    onDrag                        |
|                |onDragEnd                       onDragEnter                   |
|                |onDragLeave                     onDragOver                    |
|                |onDragStart                     onDrop                        |
|                |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                 |
|                |onSelectStart                   onTimeError                   |
+----------------+--------------------------------------------------------------+



"a" Example

    
<html>
<head>
<title>A element example</title>
</head>
<body>
   <a name="top"></a>
   <h2>Used as a hyperlink:</h2>
   <a href="http://www.wbex.ru/" target="_blank">wbex.ru</a>
   
</body>
</html>


<html>
<head>
<title>A element example</title>
</head>
<body>
   <a name="top"></a>
   <h2>Used as an anchor:</h2>
   <p><a href="#par3">Go to paragraph #3 in this page</a></p>
   <p><a href="yourdocument.html#sty">Go to the yourdocument.htm page, sty location</a></p>
   <p align="left">Paragraph #2</p>
   <p align="left"><a name="par3">Paragraph #3</a></p>
   <p align="left"><a href="#top">Top</a></p>
</body>
</html>



"a" HTML Attributes

+----------------+--------------------------------------------------------------+
| HTML           |accesskey                       begin                         |
| Attributes     |charset                         class                         |
|                |contenteditable                 coords                        |
|                |datafld                         datasrc                       |
|                |dir                             disabled                      |
|                |end                             hidefocus                     |
|                |href                            hreflang                      |
|                |id                              lang                          |
|                |language                        methods                       |
|                |name                            rel                           |
|                |rev                             shape                         |
|                |style                           syncmaster                    |
|                |systemBitrate                   systemCaptions                |
|                |systemLanguage                  systemOverdubOrSubtitle       |
|                |tabindex                        target                        |
|                |timecontainer                   title                         |
|                |type                            unselectable                  |
|                |urn                                                           |
+----------------+--------------------------------------------------------------+



"a" JavaScript Collections

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



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



"a" JavaScript Objects

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



"a" JavaScript Properties

+----------------+--------------------------------------------------------------+
| JavaScript     |accessKey                       canHaveChildren               |
| Properties     |canHaveHTML                     charset                       |
|                |className                       clientHeight                  |
|                |clientLeft                      clientTop                     |
|                |clientWidth                     contentEditable               |
|                |coords                          cursor                        |
|                |dataFld                         datasrc                       |
|                |dir                             disabled                      |
|                |end                             firstChild                    |
|                |hash                            hasLayout                     |
|                |hideFocus                       host                          |
|                |hostname                        href                          |
|                |hreflang                        id                            |
|                |innerHTML                       innerText                     |
|                |isContentEditable               isDisabled                    |
|                |isMultiLine                     isTextEdit                    |
|                |lang                            language                      |
|                |lastChild                       Methods                       |
|                |name                            nameProp                      |
|                |nextSibling                     nodeName                      |
|                |nodeType                        nodeValue                     |
|                |offsetHeight                    offsetLeft                    |
|                |offsetParent                    offsetTop                     |
|                |offsetWidth                     outerHTML                     |
|                |outerText                       ownerDocument                 |
|                |parentElement                   parentNode                    |
|                |parentTextEdit                  pathname                      |
|                |port                            previousSibling               |
|                |protocol                        readyState                    |
|                |recordNumber                    rel                           |
|                |rev                             scopeName                     |
|                |scrollHeight                    scrollLeft                    |
|                |scrollTop                       scrollWidth                   |
|                |search                          shape                         |
|                |sourceIndex                     tabIndex                      |
|                |tagName                         tagUrn                        |
|                |target                          text                          |
|                |title                           type                          |
|                |uniqueID                        urn                           |
+----------------+--------------------------------------------------------------+



"a" Microsoft Behaviors

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



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



"a" Syntax and Note

Note:
A hyperlink or an anchor.
   
Syntax:
    
Referred to as a hyperlink when its destination is another document, 
Referred to as an anchor when its destination is a location within the same (or another) document.
   
Syntax for the hyperlink version:
<a href="http://www.wbex.ru" attributes events>label</a>
Syntax for the anchor version:
<a href="#anchorName" attributes events>label</a>