|
|
 |

 |
|
Faster Smarter HTML & XML
|
|
 |
Author |
 |
Michael Morrison
|
 |
|
Pages |
352
|
|
Disk |
N/A
|
|
Level |
Beginner
|
|
Published |
11/13/2002
|
|
ISBN |
9780735618619
|
|
ISBN-10 |
0-7356-1861-5
|
|
Price(USD) |
$19.99
To see this book's discounted price, select a reseller below.
|
|
|
|
|
 |
|
|
Index
Symbols
& (ampersand), 281
< > (angle brackets), 17
' (apostrophe), in XML, 280-81
" (double quote), in XML, 281
/ (forward slash), 280, 296
> (greater than), in XML, 282
- (hyphen), 279
< (less than), in XML, 281
# (number), 78-79, 206
#PCDATA, 287
+ (plus sign), 279
; (semicolon), 281
A
<a> tag, 75-80
adding images to Web pages, 56
anchors and, 78-80
example application, 77-78
external images. (see external images)
linking to resources, 76
linking to sounds, 260-61
linking to videos, 267-69
linking to Web pages, 75-76
absolute paths, of files, 57
absolute positioning, 184-85, 232-35
absolute URLs, 73, 76, 79
action attribute, <form> tag, 154-55, 166-67
ad banner, animated example, 186-90
Adobe products
Acrobat, 254
GoLive Web design tool, 126
Photoshop, 122
Photoshop Elements, 122
align attribute
<img> tag, 62-63, 64
<table> tag, 106-8
alignment
images, 62-64
paragraphs, 39
tables, 106-8
alignment styles, 224-26
adjusting margins, 224-25
aligning text, 224
example application, 226
Alignment Styles Web page, 226
alt attribute, 58, 93
America Online (AOL), 30, 140
ampersand (&), 281
anchors, 78-80
angle brackets (< >), 17
animated ad banner example, 186-90
animated images, 68
animation effects, 180-81
AOL (America Online), 30, 140
apostrophe ('), 280-81
<area> tag, 91-92
Arizona Vacation Guide Web site, 86-87
attributes. See also individual names
HTML tags, 20-22
defined, 20
required, 21
audio. See sound
AVI (Audio-Video Interleaved), 267
B
background attribute, 66-68, 113-14
background color, 24, 110-13
background images, 66-68
background property, 220
background sounds, 265-66
background-color property, 219-20
background-image property, 220
background-repeat property, 220
backgrounds and foregrounds. See dress styles
baseline values, vertical-align properties, 246
bgcolor attribute, 21, 24, 111-13
<bgsound>, 265-66
block-level tags
customizing, 209-11
defined, 209
body, of Web pages, 19, 36-39
<body> tag
background attribute, 66-68
background color, 24
function of, 37
overview of, 18
text attribute, 68
bookmarks, 23, 36
border attribute
<img> tag, 61
<table> tag, 102-3
border property, 238, 242-43
border-color property, 238, 242
borders
defined, 242
images, 61
tables, 102-3, 114-16
border-style property, 238, 242
border-width property, 238, 242
bottom property, positioning styles, 235
boundaries, Web page elements, 231-32
<br> tag, 37-38
branches, XML documents, 294
brightness, background images and, 114
button controls, forms, 164-66
<button> tag, 165
C
cable modems, 138, 143
capitalize values, text-transform property, 227
cascading style sheets. See CSS
case sensitivity, 21
CDATA notation, 286
cell spanning, 104
cellpadding attribute, <table> tag, 111
cellspacing attribute, <table> tag, 111
CGI (Common Gateway Interface) scripts, 154-57
character data, XML, 277, 286
check box control, 160-62, 167
circ shape attribute, 92-93
classes
applying styles to, 198
defined, 198
of styles, 205
clear property, 247, 248-49
ClearType fonts, 213
client-server relationship, 29
client-side image maps, 87-88
clip art, 259
clipping sounds, 258
code
for examples in this book, 80
external style sheets, 204
forms, 169-70
HTML, 6
separating from content, 195-96, 276
Web page example, 17
XHTML, 313
color
adding to tables, 111-14
adding to Web pages, 24
background, 110-11
dynamic styles, 179-80
color attribute, <font> tag, 196-97
color property, 219
colspan attribute, cell spanning, 104
combo boxes. See menu control
comments
HTML, 50-51
XML, 281-82
Common Gateway Interface (CGI) scripts, 154-57
content
defined, 18
distinct from markup, 195-96, 276
dynamic, 182-84
HTML, 75-76, 80
hyperlinked, 76
Web, 7
content-based formatting, 40, 42-43
context-sensitive highlighting, 127
controls, form, 157-66
button control, 164-66
check box control, 160-62
defined, 151
form creation and, 167-69
menu control, 163-64
password box control, 157-59
radio button control, 162-63
text area control, 159-60
text box control, 157-59
coordinates, image maps, 87, 88
coords attribute, <area> tag, 92-93
copyrights, 256
CorelDRAW, 122
CSS (cascading style sheets), 195-212. See also XSL (Extensible Style Language)
<style> tag, 198-99
applying styles to classes, 198
benefits of separating code from content, 195-96
classes of styles, 205
custom style tags, 208-12
defined, 8, 198
dynamic positioning and, 184
external style sheets, 203-5
flexibility of, 197
formatting and layout with, 195
heading formats, 200-201
individual styles, 205-6
internal style sheets, 201-3
link styles, 207-8
local styles, 206-7
overview of, 199
positioning styles. (see positioning styles)
properties, grouping, 201
style properties, 176-77
text formatting. (see text formatting)
XML documents and, 292
current line, vertical-align properties, 246, 247
cursor property, 228-29
custom style tags, 208-12
CuteHTML editor, 127-28
CuteMAP image map tool, 123-24
D
Dazzle Digital Video Creator, 266
declarations, DOCTYPE. See DTDs (document type declarations)
definition lists, 48-49
Design Gallery Live, 25, 259
desktop publishing, 35
development tools, for image maps, 89-91
DHTML (Dynamic HTML), 173-92
animated ad banner example, 186-90
DOM and, 176-78
dynamic content, 182-84
dynamic positioning, 184-86
dynamic styles, 178-81
dynamic Web pages, 8
event handling scripts, 175-76
interactivity of, 8-9
Quotable Quotes example, 190-92
scripting languages and, 174
scripts, adding to Web pages, 174-75
technologies based on, 8
digital cameras, 121-23
display property, positioning styles, 238, 241
<div> tag
compared with <p> tag, 39
custom block-level tags, 209-11
id attribute of, 180
organizing text with, 37
<dl> (definition list), 49
DOCTYPE declarations, 310. See also DTDs
Document Object Model. See DOM
document type declarations. See DTDs
document validation
XHTML, 310-12
XML, 283
DOM (Document Object Model), 176-78
DHTML and, 9
function of, 177
referencing objects with, 177-78
domain names
obtaining, 144-47
Web hosting and, 142, 143
dot-com names, 30
download time, 55
DreamWeaver, 7, 126
dress styles, 219-21
background color, 219-20
background images, 220
foreground color, 219
Dress Styles Web page, 221
drop-down lists. See menu control
DTDs (document type declarations), 282-87
defined, 283
functions of, 283-84
working with, 285-87
XHTML, 308-11
dynamic content, 182-84
Dynamic HTML. See DHTML
dynamic positioning, 184-86
dynamic styles, 178-81
E
Earthlink, 30
EasyDNS, 30, 142
elements
appearance of, 238-43
boundaries, 231-32
within other elements, 232
overlapping, 236-38
spacing of, 243-47
XML, 276-77, 280
z-index of, 236-38
e-mail
delivering form data, 152-53
hyperlinks and, 70-71
receiving form information, 166-67
URLs, 74, 76-78
<embed> tag
sound, 263-65
video, 269-70
empty elements, XML, 280
encryption, 158
enctype attribute, <form> tag, 166
entity references, in XML, 281
event handlers
defined, 175
scripts for, 175-76
events
attributes, 175-76, 178
defined, 175
Excel spreadsheets
comparing with tables, 99
converting into Web page table, 100
creating Web pages from, 125
Extensible Hypertext Markup Language. See XHTML
Extensible Markup Language. See XML
Extensible Style Language. See XSL
external images
linking to, 64-66
referencing, 56
external style sheets, 203-5
code for, 204
defined, 203
F
favorites, 36
File Transfer Protocol. See FTP files
absolute paths, 57
multimedia, 254-56, 266, 271
relative paths of, 57
URLs for, 74-76
FireWire ports, 266
Flash, 7, 271
float property, 247-48
flow of text, 247-49
font property, 215, 217
font styles, 214-18
example application, 217-18
properties, 214-15
setting, 215-17
setting as a group, 217
Font Styles Web page, 218
<font> tag, 196-97
font-family property, 216
fonts
ClearType, 213
computer screen readability and, 213
dynamic styles and, 179-80
hyperlinks and, 75
font-size property, 215-16
font-style property, 215
font-variant property, 216-17
font-weight property, 215
foregrounds and backgrounds. See dress styles
form action, 154
form hosting services, 156-57
<form> tag, 151-52, 154, 166-67
formats, images, 54-55, 57-59
formatting tags
content-based formatting, 42-43
physical text formatting, 43-45
types of, 40-42
forms, 149-72
button controls, 164-66
check box control, 160-62
code for complete, 169-70
creating, 166-72
defined, 150
menu control, 163-64
password box control, 157-59
processing with scripts, 154-57
radio button control, 162-63
text area control, 159-60
text box control, 157-59
understanding, 149-54
forward slash (/), 280, 296
frame attribute, <table> tag, 114-15
frameset DTD, XHTML, 309
FrontPage, 129-35
image map feature, 89-91
image maps created in, 135
publishing pages to Web, 135
tables created in, 132-35
views supported in, 129-32
as Web design tool, 15, 29, 125-26, 313
FTP clients, 147
FTP (File Transfer Protocol)
FrontPage and, 29
sending Web page files to server using, 139
URLs, 74, 76
G
geometric maps, 86
get technique, forms, 166
GIF Animator, 68
GIF (Graphics Interchange Format)
compared with JPEGs, 55
GIF animation, 55
GIF transparency, 55
image formats, 54, 254
GIF Movie Gear, 68
Gliding Image Example Web page, 186
GlobalSCAPE
CuteHTML editor, 127-28
CuteMAP image map tool, 123-24
GoLive Web design tool, 126
graphical tools. See tools, graphical
graphics. See images
Graphics Interchange Format. See GIF
H
hackers, 158
<head> tags, 18, 36
header cells (<th>), 103-4
headings
letter-spacing and, 222
sizes of, 24
style sheets, 200-201
tables, 103-4
tags for, 40-41
Web pages, 24, 36
height attribute, <img> tag, 59-60
height attribute, <table> tag, 106
height property, positioning styles, 238, 239
helper applications, 254
hiding/showing elements, 238, 241
HomeSite HTML editor, 127-28
host names, 72
href attribute, 75-76, 92
hspace attribute, 60-61, 64
HTML content, 75-76, 80
HTML documents, 12, 19. See also Web pages
HTML editors, 127-29
.html extension, 23
HTML (Hypertext Markup Language). See also FrontPage
case sensitivity, 21
comments (see comments)
compared with XML, 11-13
converting to XHTML, 307-8, 314-20
as language of Web, 4
limitations of, 195, 306
link creation with, 4
reasons for knowing, 6-7
relative positioning and, 232
text formatting. (see text formatting)
version 4 improvements, 307
viewing HTML code, 6
Web browsers instructions, 5
XML documents and, 292
as an XML vocabulary, 12
HTML tags
attributes, 20-22
list of common, 20
HTML view, FrontPage, 130, 134
<html> tag, 18
http, (Hypertext Transfer Protocol), 72, 74
<h(x)> tags, 24, 40-41, 200-201
hyperlink state, 207
hyperlinked content, 76
hyperlinks, 69-81
<a> tag and, 75-80
applying styles to, 207
defined, 4, 70-71
image, 71
text, 70-71
to e-mail, 74, 77
to sounds, 260-62
to videos, 267-69
URLs and, 71-75
hyphen (-), 279
Hypertext Transfer Protocol. See http
I
image maps, 85-97
associating with images, 93-94
basics of, 86-87
client-side vs. server-side, 87-88
coding by hand, 91-94
constructing, 94-97
defined, 85
development tools for, 89-91
FrontPage and, 135
graphical tools for, 123-24
image URLs, 77-78
image-editing tools, 121-23
images, 53-69
aligning, 62-64
animated, 68
background, 66-68, 113-14, 220
borders, 61
buttons for, 166
defined, 54
formats for, 54-55
formatting, 57-59
inline, 56-57
linking to, 64-66
referencing, 56
resizing, 60
size of, 59-60
space surrounding, 60-61
in tables, 111-14
<img> tag
adding images to personal Web site, 24
align attribute, 62-63
alt attribute, 58
animated images, 68
border attribute, 61
function of, 22
hspace and vspace attributes, 60-61
image maps, 93-94
referencing images, 56
width and height attributes, 59-60
individual styles, 205, 205-6
inline images, 56-57
inline tags, 209, 210-11
innerText attribute, 182
<input> tag
button control, 165-66
check box control, 160
radio button control, 162
text boxes and password boxes and, 158
Insert Hyperlink dialog box, 90
intellectual property rights, 8
interactive Web pages, 173. See also DHTML
internal style sheets, 201-3
Internet accounts, 143
Internet addresses. See IP addresses
Internet Explorer
VBScript and, 174
viewing HTML code with, 6
viewing HTML documents, 313
P
<p> (paragraph tag)
attributes, 39
contrasted with <br> tag, 38
defining paragraphs with, 37-38
paragraph structure and, 25
padding property, positioning styles, 243-45
page layout tables, 116-18
Paint Shop Pro, 123
paragraph tag. See <p> (paragraph tag)
Parsed Character DATA, 287
password box control, forms, 157-59
paths, of files, 57
patterns, 294, 295-96
PDF files, 254
Perl programming language, 154
personal Web page example, 22-28
Photo Editor
overview of, 123
resizing images with, 60
Photoshop, 122
Photoshop Elements, 122
physical text formatting
defined, 40
example application, 44-45
function of, 43
list of formats, 44
PICT files, 254
pixel shims, 109-11
pixels, 54, 87
plug-ins, multimedia, 253-54
plus sign (+), 279
PNG (Portable Network Graphic), 54
poly shape attribute, 92-93
position property, 235
positioning, dynamic, 184-86
positioning styles, 231-52
appearance of elements, 238-43
element boundaries, 231-32
example application, 249-51
flow of text, 247-49
overlapping elements, 236-38
properties, 235
relative vs. absolute positioning, 232-34
spacing on a page, 243-47
post approach, forms, 166
Preview view, FrontPage, 131-32, 134
processing instructions, XML, 282
protocols
defined, 72
URLs and, 74
publishing. See Web publishing
Q
QuickTime, 267
Quotable Quotes example, 190-92
R
radio button controls, 162-63, 167
RealAudio format, 259
RealMedia format, 259
rect shape attribute, 92
red-eye correction software, 121
Register.com, 142
registration, of domain names, 146-47
relative paths, of files, 57
relative positioning, 232-34
as default for HTML, 232
text flow and, 235
relative URLs
anchor links as, 79
compared with absolute URLs, 76
overview of, 73
required attributes, 21
Reset form buttons, 164-66
resolution
monitors, 54
screen resolution, 105
units of measurement and, 222
resources, 64. See also Web resources
right property, positioning styles, 235
root elements, XML documents, 294
root pattern, XML documents, 296
rows attribute, <textarea> tag, 159
rowspan attribute, cell spanning, 104
S
sampling, 255-56
schemas
XHTML, 306
XML, 287-88
screen resolution. See resolution
<script> tag, 174-75
scripting languages, 174
scripts
adding to Web pages, 174-75
CGI scripts, 154-57
CSS and, 177
event handling, 175-76
functions of, 173
processing forms with, 154-57
search engines
keywords, 11
Web page head and, 19
sectional divisions (<div>). See <div> tag
security, encryption and, 158
<select> tag, 163-64
semicolon (;), 281
server-side image maps, 87-88
shape attribute, <area> tag, 92-93
shareware, 123
shims, 109
showing/hiding elements, 238, 241
size
of images, 59-60
resizing images, 94
of tables, 105-6
size attribute, <input> tag, 158-59
size attribute, <select> tag, 163
sound
background sounds, 265-66
creating, 257-58
duration and file size, 256
embedding, 263-65
finding, 258-60
linking to, 260-62
sampling and, 255-56
Sound Recorder, 257
space styles, 222-23
letter-spacing property, 222
text-indent property, 222-23
Space Styles Web page, 223
spacing
on tables, 109-11
on Web pages, 243-47
<span> tag, 210-11
spanning cells, for tables, 104
spreadsheets, 99-100, 125
src attribute, 22, 25, 182
static sounds, 256
static video, 266
storage, Web hosting services, 142
streaming sounds, 256
streaming video, 266
strict DTD, XHTML, 309
style attribute, <button> tag, 165
style class, 205
style sheets. See CSS; XSL
<style> tag, 198-99, 201-2
styles, dynamic, 178-81
submit attribute, <input> tag, 165
Submit button, 164-66, 169
T
<table> tag
align attribute, 106-8
bgcolor attribute, 111-13
border attribute, 102-3
cellpadding attribute, 111
cellspacing attribute, 111
frame attribute, 114-15
overview of, 101-2
width attribute, 105-6
tables, 99-118
aligning, 106-8
borders, 102-3, 114-15
colors, 111-14
content of, 132-35
FrontPage and, 132-35
graphical Web design tools for, 125
headings, 103-4
images, 111-14
nested, 100-101, 116-17
page layout with, 116-18
size of, 105-6
spacing of, 109-11
spanning cells for, 104
spreadsheets compared to, 99-100
tags for, 101-2
tags. See also individual tags
angle brackets (< >) and, 17
generating, 132
HTML, 10-11
table, 101-6
text formatting, 40-42
XML, 280
target resource, 75-76
<td> tag
bgcolor attribute, 111-13
overview of, 101-2
width attribute, 106
testing forms, 170-72
testing page layout, 116
text area control, 159-60, 167
text attribute, <body> tag, 68
text box control, 167
text formatting, 35-51
body of Web pages, 36-39
color, 24
comments, 50-51
content-based formatting, 42-43
definition lists, 48-49
headings, 36
numbered lists, 47-48
organizing, 35-36
physical text formatting, 43-45
tags, 40-42
unordered lists, 46-47
text styles, 213-30
alignment, 224-26
backgrounds and foregrounds (dress styles), 219-21
categories of styles, 214
cursor property, 228-29
flow of text, 247-49
fonts, 214-18
spacing, 222-23
text-decoration property, 227
text-transform property, 227
text-align property, 224
<textarea> tag, 159-60
text-decoration property, 227
text-indent property, 222-23
text-transform property, 227
<th> tag, 103-4
thumbnail images, 60, 65
Tickle Me Elmo, 86
TIFF files, 254
tiled images, 67. See also background images
<title> tags, 18-19, 23, 36
tools, graphical, 119-36
FrontPage, 129-35
HTML editors, 127-29
image maps, 89-91, 123-24
image-editing, 121-23
overview of, 119-21
Web page design, 124-26
Web publishing, 147
top property, positioning styles, 235
<tr> tag, 101-2, 111-13
transforming XML documents, 292-93
transitional DTD, XHTML, 309
Trick Styles Web page, 229
type attribute, <input tag>, 158, 160, 162
U
<ul> (unordered list), 26, 46
Uniform Resource Locators. See URLs
units of measurement, 222
unordered lists, 46-47
uppercase value, 227
URLs (Uniform Resource Locators)
absolute/relative, 73, 76, 79
hyperlinks and, 71-75
of images, 56
USB ports, 266
usemap attribute, <img> tag, 93-94
V
valid documents
XHTML, 311-12
XML, 283
valign attribute, <table> tag, 107
value attribute
<input> tag, 158, 160-61
<option> tag, 163-64
VBScript, 173-74
VeriSign, 142, 144-45
vertical-align property, positioning styles, 243, 245-47
video
creating, 266-67
embedding, 269-70
finding, 267
linking to, 267-69
views, FrontPage, 129-32, 135
Virtual 3-D worlds, 271
VisitorBook LE software, 155
vocabularies, XML, 276, 289
Volcano World, 267
Volume Control, Windows, 257-58
vspace attributes, <img> tag, 60-61
W
W3C Validator, 311-12, 317, 320
W3C (World Wide Web Consortium)
Web standards and, 199
XHTML DTDs, 308
warning dialog box, 152-53
WAV format, 259
waveforms, sound, 257
Web
client-server relationship on, 29
design tools, 15
development tools, 29
HTML as language of, 4
Web browsers
HTML instructions to, 5
HTML limitations and, 306
opening personal Web page, 28
plug-ins, 253-54
scripting languages supported by, 174
Web clients, 28, 138
Web hosting services
CGI scripts and, 156
overview of, 138
paying for, 141-43
recommended, 30
setting up, 146
Web pages
<html> tag, 18
<title> tag, 18-19
anchors, 80
body of, 19, 36-39
code for sample page, 17
constructing, 5-6
converting spreadsheets into tables, 100
design tools, 124-26
dynamic, 8
head of, 36
HTML documents and, 12
HTML tags, 20-22
image maps and, 88
intellectual property rights and, 8
linking, 75-76
personal Web page example, 22-28
publishing, 28-34
URLs, 74, 76-78
XHTML and, 6
Web publishing, 137-48
basics of, 137-40
domain names, 144-47
FrontPage features for, 135
hosting, 141-44
personal Web page example, 28-34
software selection for, 147
Web Publishing Wizard, 31-34
Web resources
host names identifying location of, 72
linking to, 76
URLs, 73-75
Web scripting, 8-9
Web servers
hosting own, 141
overview of, 138-39
server-side image maps, 87
well-formed documents, XML, 283
What You See Is What You Get. See WYSIWYG editor
width attribute, <img> tag, 59-60
width attribute, <table> tag, 105-6
width property, positioning styles, 238, 239-40
Windows Media Player, 265
Windows XP, 31-34
World Wide Web Virtual Library, 259
wrap attribute, <textarea> tag, 159
WYSIWYG (What You See Is What You Get) editor
defined, 120
entering content, 132-35
FrontPage views, 128, 131
X
XHTML (Extensible Hypertext Markup Language), 305-20
case sensitivity, 21
conversion example, 315-20
conversion guidelines, 314
document creation, 312-13
document validation, 310, 311-12
DTD types and, 308-9
limitation of HTML and, 306-7
namespace and DTD declarations, 310-11
requirements for XHTML documents, 307-8
Web pages with, 6
XML and, 10
XML document models, 284-88
DTDs and, 285-87
overflow text, 284-85
schema, 287-88
XML documents
namespace, 295
styling, 291
transforming, 292-93
XSL and, 293-94
XML (Extensible Markup Language), 275-90
applications of, 10-11
comments, 281-82
compared with HTML, 11-13
components of, 277-78
DTDs, 282-87
elements, 276-77, 280
as metalanguage, 10
modeling XML data, 284-85
processing instructions, 282
referencing entities, 280-81
schema, 287-88
separating markup from content, 276
style sheets and, 291-92
tags, 280
vocabularies, 12, 276, 289
XSL (Extensible Style Language), 292-304
applying to XML documents, 293-94
constructing XSL style sheets, 299-304
definition of XML style sheets, 292
functions of, 292-93
patterns, 295-96
structure of XSL style sheets, 295
template elements, 297-99
transformation templates, 296-99
XSL Formatting Objects, 293
XSL processors, 294
xsl:apply-templates element, 299
xsl:for-each element, 298
xsl:if element, 297-98
xsl:template, 296
xsl:value-of element, 297
XSLT (XSL Transformation), 293
Y
Yahoo!, 259
Z
z-index property, 236-38
Last Updated: October 24, 2002
|