Read HTML The Definitive Guide Online

Authors: Chuck Musciano Bill Kennedy

HTML The Definitive Guide (149 page)

BOOK: HTML The Definitive Guide
9.88Mb size Format: txt, pdf, ePub
ads

For convenience, we've marked each of these tags with an asterisk (*) in the following table, and list all of the attributes supported by these special tags, including the common ones. For all other tags (those without an asterisk), assume the common attributes listed above apply. Do note, however, that the popular browsers do not support all the HTML standard 4.0 attributes, common or not. Please refer to the main text for details.

A.2 The Grammar

B.2 HTML Quick Reference

Appendix B

HTML Tag Quick Reference

 

B.2 HTML Quick Reference

As with the other sections of this book, we use the Netscape and Internet Explorer icons to the far right of each item to indicate tags and attributes that are extensions to the HTML 4.0 standard. If no icon is shown, the tag or attribute is part of the HTML 4.0 standard.

We include each tag's possible attributes (some required) indented below their respective tags. In the description, we give possible attribute values as either a range of integer numbers or a definitive list of options, where possible.

...

Create a hyperlink anchor (href

attribute) or fragment identifier

(name attribute)

accesskey=
char

Define the hot-key character for this

anchor

charset=
encoding

Specify the character set used to

encode the target

coords=
list

Specify a list of shape-dependent

coordinates

href=
url

Specify the URL of a hyperlink target

hreflang=
language

Specify the language encoding for the

target

name=
name

Specify the name of a fragment

identifier

rel=
relationship

Indicate the
relationship
from this document to the target

rev=
relationship

Indicate the reverse
relationship
of the target to this document

shape=
shape

Define the region's shape to be circ,

circle, poly, polygon, rect,

or rectangle

tabindex=
value

Define the position of this anchor

inthe document's tabbing order

target=
name

Define the name of the frame or

window to receive the referenced

document

type=
type

Specify the MIME type of the target

...

The enclosed text is an abbreviation

...

The enclosed text is an acronym

...

The enclosed text is an address

...

Define an executable applet within a

*

text flow

align=
position

Align the region to either the top, middle, bottom

(default), left, right,

absmiddle, baseline, or

absbottom of the text in the line

alt=
string

Specify alternative text to replace the

region within browsers

that support the tag, but

cannot execute the application

archive=
url

Specify a class archive to be

downloaded to the browser and then

searched for code class

class=
name

Specify a style class controlling the

appearance of this tag

code=
class

Specify the class name of the code to

be executed (required)

codebase=
url

URL from which the code is retrieved

height=
n

Specify the height, in pixels, of the

region

hspace=
n

Specify additional space, in pixels, to

allow to the left and right of the

region

id=
name

Define a name for this applet that is

unique to this document

mayscript

If present, allows the applet to access

Graphic

JavaScript within the page

name=
name

Specify the name of this particular

instance of the

object=
data

Specify a representation of the

object's execution state

style=
style

Specify an inline style for this tag

title=
string

Provide a title for the applet

vspace=
n

Specify additional space, in pixels, to

allow above and below the

region

width=
n

Specify the width, in pixels, of the

region


Define a mouse-sensitive area in a

client-side image map

accesskey=
char

Define the hot-key character for this

area

alt=
string

Provide alternative text to be

displayed by nongraphical browsers

coords=
list

Specify a comma-separated
list
of shape-dependent coordinates that

define the edge of this area

href=
url

Specify the URL of a hyperlink target

associated with this area

nohref

Indicate that no document is

associated with this area; clicking in

the area has no effect

notab

Do not include this area in the tabbing

Graphic

order

onblur=
applet

Specify an applet to be run when the

mouse leaves the area

onfocus=
applet

Specify an applet to be run when the

mouse enters the area

shape=
shape

Define the region's shape to be circ,

circle, poly, polygon, rect,

or rectangle

tabindex=
value

Define the position of this anchor

inthe document's tabbing order

taborder=
n

Specify this area's position in the

Graphic

tabbing order

target=
name

Specify the frame or window to

Graphic

receive the document linked by this

area

...

Format the enclosed text using a bold

typeface


Specify the base URL for all relative

*

URLs in this document

href=
url

Specify the base URL (required)

target=
name

Define the default target of all links in the document


Specify the font size for subsequent

*

text

color=
color

Specify the base font's color

face=
name

Specify local font to be used for the

base font

id=
name

Define a name for this tag that is

unique to this document

name=
name

Specify local font to be used for the

Graphic

base font

size=
value

Set the basefont size of 1 to 7

(required; default is 3)

...

Bidirectional override, changing the

*

rendering direction of the enclosed

text

class=
name

Specify a style class controlling the

appearance of this tag

dir=
dir

Specify the rendering direction for

text, either left-to-right (ltr) or

right-to-left (rtl)

id=
name

Define a name for this tag that is

unique to this document

lang=
language

Specify the language used for this

tag's contents using a standard

two-character ISO language name

style=
style

Specify an inline style for this tag

title=
string

Specify a title for this tag


Define background audio for the

Graphic

document

loop=
value

Set the number of times to play the

Graphic

audio;
value
may be an integer or the value infinite

src=
url

Provide the URL of the audio file to

Graphic

be played

...

Format the enclosed text using a

bigger typeface

...

Cause the enclosed content to blink

Graphic

...
The enclosed text is a block quotation cite=
url

Specify the URL of source of the

quoted material

...

Delimit the beginning and end of the

document body

alink=
color

Set the color of active hypertext links

in the document

background=
url

Specify the URL of an image to be

tiled in the document background

bgcolor=
color

Set the background color of the

document

bgproperties=
value

With
value
set to fixed, prevent the Graphic

background image from scrolling

with the document content

leftmargin=
value

Set the size, in pixels, of the

Graphic

document's left margin

link=
color

Set the color of unvisited hypertext

links in the document

onblur=
applet

Specify an applet to be run when the

Graphic

mouse leaves the document window

Graphic

onfocus=
applet

Specify an applet to be run when the

Graphic

mouse enters the document window

Graphic

onload=
applet

Specify an applet to be run when the

document is loaded

onunload=
applet

Specify an applet to be run when the

document is unloaded

Other books

Lover Undercover by Samanthe Beck
Reasons Mommy Drinks by Lyranda Martin-Evans
Damaged by Alex Kava
Designated Fat Girl by Jennifer Joyner
Keeping Bad Company by Ann Granger
An Acute Attraction by A.J. Walters
The Shark God by Charles Montgomery
Miles Before I Sleep by M. Donice Byrd

© 100 Vampire Novels 2015 - 2024    Contact for me [email protected]