HTML and CSS Reference
In-Depth Information
Compatibility
HTML 2, 3.2, 4, 4.01, 5
XHTML 1.0, 1.1, Basic
Firefox 1+, Internet Explorer 2+,
Netscape 1+, Opera 4+, Safari 1+
Notes
• As a logical element, samp is useful to bind style rules to.
• The HTML 2.0 and 3.2 specifications support no attributes for this element.
<script> (Scripting)
This element encloses statements in a scripting language for client-side processing. Scripting
statements can either be included inline or loaded from an external file and might be
commented out to avoid execution by browsers that are not scripting-aware.
Standard Syntax
<script
charset="character set"
defer="defer"
id="unique alphanumeric identifier"
language="scripting language name"
src="URL of script code"
type="mime type"
xml:space="preserve">
</script>
Attributes Introduced by HTML5
accesskey="spaced list of accelerator key(s)"
async="async"
class="class name(s)"
data-X="user-defined data"
contenteditable="true | false | inherit"
contextmenu="id of menu"
dir="ltr | rtl"
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"
lang="language code"
spellcheck="true | false"
style="style information"
tabindex="number"
title="advisory text"
Attributes Defined by Internet Explorer
event="event name" (3)
for="element id" (3)
lang="language to use"
Search WWH ::




Custom Search