... 320
Exercises 321
59313ftoc.qxd:WroxPro 3/22/08 2:31 PM Page xvii
Beginning
Web Programming with
HTML, XHTML, and CSS
Second Edition
Jon Duckett
59313ffirs.qxd:WroxPro 3/22/08 2:30 PM Page v
xviii
Contents
Chapter ...
❑ HTML and XHTML: HTML and XHTML are needed to explain the structure of any web pages.
They’re used to indicate what text should be considered a he...
... that spans both of the columns. Here you can
see that the XHTML for this page is identical to the XHTML in the last example (
ch11_eg04 .html
):
<body>
<div class=”page”>
<div class=”header”><h1>My ... the top of a long document in
an ordered list and link to the headings in the main part of the document.
The XHTML file
exercise1 .html
is provided with the...
... you understand the
thousands of free scripts that are available on the Web and allow you to incorporate them into your
web pages. You should even be able to customize these scripts and write some ...
registration .html
, and when you open this page in a browser you should
see a page that looks like one shown previously in Figure 10-25.
Here is the CSS style sheet used with thi...
... skeleton XHTML document, like so:
<?xml version=”1.0” ?>
<!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Transitional//EN”
“http://www.w3.org/TR /xhtml1 /DTD /xhtml1 -transitional.dtd”>
< ;html ... number with the highest value of x and y.
min(x,y)
Returns the number with the lowest value of x and y.
pow(x,y)
Returns the value of the number x raised to the power of y...
... setting the default to CSS removes any doubt.
While CSS is the most popular language for styling HTML and XHTML documents, some applications sup-
port other languages such as XSLT and DSSSL (although ... couple of CSS files that are included with the YUI download:
<link rel=”stylesheet” type=”text /css
href=”scripts/yui/build/fonts/fonts-min .css />
<link rel=”styles...
... ads and animations). This is partly because it is much quicker to develop a
site in XHTML and partly because fewer people have the skills to integrate Flash well with databases than
do with XHTML.
The ... that are in the HTML and XHTML recommen-
dations. They are listed with the attributes each element can carry and a brief description of their
purpose.
Deprecated elemen...
... Beginning
Web Programming with
HTML, XHTML, and CSS
Second Edition
Jon Duckett
59313ffirs.qxd:WroxPro 3/22/08 2:30 PM Page v
Please purchase PDF ... effective and attractive web pages.
As the title of this book suggests, you will be learning a few different languages:
❑ HTML and XHTML: HTML and XHTML are needed to explain the structure of any web ... you’ll b...
... or non -HTML control to the page. Will be the standard way of including images in the
future.
n = string
Sets the nextid number
594
Appendix B: XHTML Element Reference
59313bapp02.qxd:WroxPro ... alignment of text within the
<div>
element
nowrap = nowrap
Prevents word-wrapping within this
<div>
element
574
Appendix B: XHTML Element Reference
59313bapp02.qxd:WroxPro 3/23/08...
... default, HTML 4 processors should support UTF-8, and XML processors are supposed to support
UTF-8 and UTF-16; therefore, all XHTML- compliant processors should also support UTF-16 (as XHTML
is ... expect all computers browsing the Web to understand ASCII.
The problem with ASCII is that it supports only the upper- and lowercase Latin alphabet, the
numbers 0–9, and some extra c...