HTML CSS Reference/HTML Tag Reference/plaintext

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

"plaintext" Event Handlers

+----------------+--------------------------------------------------------------+
| Event          |onActivate                      onBeforeCopy                  |
| Handlers       |onBeforeCut                     onBeforeDeactivate            |
|                |onBeforePaste                   onBlur                        |
|                |onClick                         onContextMenu                 |
|                |onControlSelect                 onCopy                        |
|                |onCut                           onDblClick                    |
|                |onDeactivate                    onDrag                        |
|                |onDragEnd                       onDragEnter                   |
|                |onDragLeave                     onDragOver                    |
|                |onDragStart                     onDrop                        |
|                |onFocus                         onHelp                        |
|                |onKeyDown                       onKeyPress                    |
|                |onKeyUp                         onLoseCapture                 |
|                |onMouseDown                     onMouseEnter                  |
|                |onMouseLeave                    onMouseMove                   |
|                |onMouseOut                      onMouseOver                   |
|                |onMouseUp                       onPaste                       |
|                |onPropertyChange                onReadyStateChange            |
|                |onResize                        onResizeEnd                   |
|                |onResizeStart                   onSelectStart                 |
+----------------+--------------------------------------------------------------+



"plaintext" Example

    
<html>
<head>
<title>plaintext element example</title>
</head>
<body>
    <p>
        <plaintext>
            This <b>text</b> will not appear in bold.
        </plaintext>
    </p>
</body>
</html>



"plaintext" JavaScript Methods

+----------------+--------------------------------------------------------------+
| JavaScript     |addBehavior                     appendChild                   |
| Methods        |applyElement                    attachEvent                   |
|                |blur                            clearAttributes               |
|                |click                           cloneNode                     |
|                |componentFromPoint              contains                      |
|                |detachEvent                     fireEvent                     |
|                |focus                           getAdjacentText               |
|                |getAttribute                    getAttributeNode              |
|                |getElementsByTagName            hasChildNodes                 |
|                |insertAdjacentElement           insertAdjacentHTML            |
|                |insertBefore                    mergeAttributes               |
|                |normalize                       releaseCapture                |
|                |removeAttribute                 removeAttributeNode           |
|                |removeBehavior                  removeChild                   |
|                |removeNode                      replaceAdjacentText           |
|                |replaceChild                    replaceNode                   |
|                |scrollIntoView                  setActive                     |
|                |setAttribute                    setAttributeNode              |
|                |setCapture                      swapNode                      |
+----------------+--------------------------------------------------------------+



"plaintext" JavaScript Properties

+----------------+--------------------------------------------------------------+
| JavaScript     |accessKey                       align                         |
| Properties     |blockDirection                  canHaveChildren               |
|                |canHaveHTML                     clientHeight                  |
|                |clientLeft                      clientTop                     |
|                |clientWidth                     contentEditable               |
|                |cursor                          dir                           |
|                |disabled                        firstChild                    |
|                |hasLayout                       hideFocus                     |
|                |id                              innerText                     |
|                |isDisabled                      isMultiLine                   |
|                |isTextEdit                      lang                          |
|                |language                        lastChild                     |
|                |nextSibling                     nodeName                      |
|                |nodeType                        nodeValue                     |
|                |offsetHeight                    offsetLeft                    |
|                |offsetParent                    offsetTop                     |
|                |offsetWidth                     outerHTML                     |
|                |outerText                       parentElement                 |
|                |parentNode                      parentTextEdit                |
|                |previousSibling                 readyState                    |
|                |scopeName                       scrollHeight                  |
|                |scrollLeft                      scrollTop                     |
|                |scrollWidth                     tabIndex                      |
|                |tagName                         tagUrn                        |
|                |uniqueID                                                      |
+----------------+--------------------------------------------------------------+



"plaintext" Syntax and Note

Note:
This element displays text in a monospaced, or fixed-size, font. 
Any elements included in this element loses their format and 
the tags will be displayed. 
The <pre> element has similar rendering capabilities and is preferred.
    
Syntax:
    
<plaintext attributes events> . . . </plaintext>