HTML and CSS Reference
In-Depth Information
• As compared to b , this element does have some logical meaning. For example, voice
browsers may speak <strong> -enclosed text in a different voice than is used for
text that is enclosed by <b> , though practically such distinction may not hold given
the need of voice browsers to act reasonably with pages not coded for them.
<style> (Style Information)
This element is used to surround style sheet rules for a document. This element should be
found only in the head element, though it appears HTML5 may loosen this restriction. Style
rules directly found within a document's body generally should be set with the core style
attribute for the particular element of interest.
Syntax
<style
dir="ltr | rtl"
id="unique alphanumeric string"
lang="language code"
media="all | print | screen | others "
title="advisory text"
type="MIME Type"
xml:space="preserve">
CSS rules
</style>
Common Attributes
disabled="disabled" (DOM Level 1)
Attributes Introduced by HTML5
accesskey="spaced list of accelerator key(s)"
contenteditable="true | false | inherit"
class="class name(s)"
contextmenu="id of menu"
data-X="user-defined data"
draggable="true | false | auto"
hidden="hidden"
itemid="microdata id in URL format"
itemprop="microdata value"
itemref="space-separated list of IDs that may contain microdata"
itemscope="itemscope"
itemtype="microdata type in URL format"
scoped="scoped"
spellcheck="true | false"
style="CSS rules"
tabindex="number"
HTML5 Event Attributes
onabort, onblur, oncanplay, oncanplaythrough, onchange, onclick,
oncontextmenu, ondblclick, ondrag, ondragend, ondragenter, ondragleave,
Search WWH ::




Custom Search