Prev | Current Page 517 | Next

Craig Grannell

"The Essential Guide to CSS and HTML Web Design"

Despite its
common usage, this attribute is
deprecated and cannot be used
in XHTML Strict. Instead, use
CSS to set borders on images.
See also Chapter 4, ???Applying
CSS borders to images.???
border=number
(deprecated)
Provides alternate text for
nonvisual browsers. Should
provide an indication of an
image??™s content or, if it??™s a link,
its function. When an image has
no visual semantic significance,
include it via CSS. If that??™s not
possilbe, use alt="". This
attribute is required.
alt=text
(required)
Inserts an image. Both the
src and alt attributes are
required; although many web
designers omit the alt
attribute, it??™s essential for
screen readers. The height
and width values are
recommended, too, in order
to assist the browser in
rapidly laying out the page.
The border value, despite
common usage, is deprecated
and should be avoided. Use
CSS to determine whether
images have borders.
See also Chapter 4, ???Working
with images in XHTML.???
THE ESSENTIAL GUIDE TO CSS AND HTML WEB DESIGN
424
Element Attribute Description Standard attributes
longdesc=URL
usemap=URL
width=number
Core attributes,
keyboard attributes,
language attributes
Core events, onblur,
onchange, onfocus,
onselect
accept=list
alt=text
checked=checked
disabled=disabled
maxlength=number
continues
Defines the maximum
number of characters
allowed. Only used with
type="text".
Disables the input element.


Pages:
505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529