HTML and CSS Reference
In-Depth Information
usemap This attribute makes the image support client-side image mapping. Its argument is
a URL specifying the map file, which associates image regions with hyperlinks. The URL is
generally a fragment identifier that references a location in the current document rather
than a remote resource.
<img src="graham.jpg" alt="Graham Allan" height="320" width="150">
<img src="olivia.jpg" lowsrc="loading.jpg" border="0" height="50%"
width="50%" alt="Picture of Olivia" longdesc="olivia-bio.html">
<a href="home.html"><img src="homebutton.png" width="50" height="20"
alt="Link to Home Page" /></a>
<!-- xhtml style syntax -->
<img src="hugeimagemap.gif" usemap="#mainmap" border="0" height="200"
width="200" alt="Image Map Here" />
HTML 2, 3.2, 4, 4.01, 5
XHTML 1.0, 1.1, Basic
Firefox 1+, Internet Explorer 2+,
Netscape 1+, Opera 2.1+, Safari 1+
• Typically, when you use the usemap attribute, the URL is a fragment, such as
#map1, rather than a full URL. Some browsers do not support external client-side
map files. HTML5 makes this statement more strongly than in other specifications.
• Under the strict HTML and XHTML definitions, the <img> tag does not support
align , border , height , hspace , vspace , and width . The functionality of these
attributes should be possible using style sheet rules.
• Whereas the HTML 4 specification reserves data-binding attributes such as datafld
or datasrc for many elements, they are not specified for <img> ; however, Internet
Explorer provides support for these attributes.
• As an empty element under XHTML or when using XML-style syntax for HTML5,
a trailing slash is required for this element: <img /> .
• Under future versions of XHTML such as 2, <img> may be dropped in favor of
<object> .
• It should be noted that some core attributes for HTML5, most noticably
spellcheck , make little sense within the meaning of this element.
<input> (Input Form Control)
This element specifies an input control for a form. The type of input is set by the type
attribute and can be a variety of different types, including single-line text field, password
field, hidden, check box, radio button, or push button. HTML5 extends the possibilities of
this form greatly and adds a number of features for browser-based validation without using
Search WWH ::

Custom Search