HTML and CSS Reference
In-Depth Information
Events Defined by Internet Explorer
onbeforeactivate, onbeforecut, onbeforepaste, onclick, oncut, ondblclick,
ondrag, ondragend, ondragenter, ondragleave, ondragover, ondragstart,
ondrop, onfocusin, onfocusout, onhelp, onkeydown, onkeypress, onkeyup,
onlosecapture, onmouseenter, onmouseleave, onmousemove, onmouseout,
onmouseover, onmouseup, onmousewheel, onpaste, onpropertychange,
onreadystatechange, onscroll, onselectstart
Element-Specific Attribute
name
Like
id
, this attribute is used to define a name associated with the element. In the
case of the
map
element, the
name
attribute is the common way to define the name of the
image map to be referenced by the
usemap
attribute within an
<img>
tag.
Example
<map name="mainmap" id="mainmap">
<area shape="circle" coords="200,250,25"
href="file1.html" />
<area shape="rectangle" coords="50,50,100,100"
href="file2.html#important" />
<area shape="default" nohref="nohref" />
</map>
Compatibility
HTML 3.2, 4, 4.01, 5
XHTML 1.0, 1.1
Firefox 1+, Internet Explorer 2+,
Netscape 1+, Opera 4+, Safari 1+
Notes
• HTML 3.2 supports only the
name
attribute for the
map
element.
• When the
name
attribute is used, it should be the same as the
id
attribute.
• Client-side image maps are not supported under HTML 2. They were first
suggested by Spyglass and later incorporated into Netscape and other browsers.
• Given the usability concerns with image maps, alternate access forms such as
related text links should be provided.
<mark> (Marked Text)
This HTML5 element defines a marked section of text. It should be used in a sense similar
to how a highlighter is used on text.
HTML5 Standard Syntax
<mark
accesskey="spaced list of accelerator key(s)"
class="class name(s)"
contenteditable="true | false | inherit"
contextmenu="id of menu"
data-X="user-defined data"