HTML CSS Reference/HTML Tag Reference/style

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

"style" Event Handlers

+----------------+--------------------------------------------------------------+
| Event          |onError                         onReadyStateChange            |
+----------------+--------------------------------------------------------------+



"style" Example

    
<html>
<title>style element example</title>
<head>
<style>body { background-color: black; color: white; }</style>
</head>
<body>The body cotains a black background and white letters.</body>
</html>



"style" HTML Attributes

+----------------+--------------------------------------------------------------+
| HTML           |dir                             id                            |
| Attributes     |lang                            media                         |
|                |title                           type                          |
+----------------+--------------------------------------------------------------+



"style" JavaScript Collections

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



"style" JavaScript Methods

+----------------+--------------------------------------------------------------+
| JavaScript     |addBehavior                     appendChild                   |
| Methods        |cloneNode                       dragDrop                      |
|                |getAttribute                    getAttributeNode              |
|                |getElementsByTagName            hasChildNodes                 |
|                |insertBefore                    removeBehavior                |
|                |removeChild                     removeNode                    |
|                |replaceChild                    setAttribute                  |
|                |setAttributeNode                                              |
+----------------+--------------------------------------------------------------+



"style" JavaScript Properties

+----------------+--------------------------------------------------------------+
| JavaScript     |className                       clientHeight                  |
| Properties     |clientWidth                     cursor                        |
|                |dir                             disabled                      |
|                |firstChild                      id                            |
|                |innerHTML                       lang                          |
|                |lastChild                       media                         |
|                |nextSibling                     nodeName                      |
|                |nodeType                        nodeValue                     |
|                |offsetHeight                    offsetLeft                    |
|                |offsetParent                    offsetTop                     |
|                |offsetWidth                     ownerDocument                 |
|                |parentNode                      previousSibling               |
|                |scrollHeight                    scrollLeft                    |
|                |scrollTop                       scrollWidth                   |
|                |tagName                         type                          |
+----------------+--------------------------------------------------------------+



"style" Syntax and Note

Note:
This element specifies a style sheet for a page. 
It appears within the <head> section.
Internet Explorer 4.0 and later allow multiple style blocks.
    
Syntax:
    
<style attributes events> . . . </style>