Click on the link above; the tutorial main page will
appear in a pop-up window. Click on Learn XHTML under
HTML TUTORIALS in the left-hand margin. As you work through
each section of the tutorial, there is a set of questions that I want
you to answer and various problems to solve (all of which are fair game for quizzes and tests).
Just click on each link below:
Which version of HTML is XHTML almost identical to?
When did XHTML become a web standard?
Click on the links that validate the XHTML and CSS code. Copy the two
validation icons for both XHTML and CSS into your local directory. You will
be creating a sample XHTML page, validating it, and then adding the icons to
certify that it is valid XHTML and CSS code.
Under the "Why XHTML?" section, there is a example of bad HTML code.
What is wrong with this code?
Fill in the blanks:
XML was designed to
HTML was designed to
You've seen throughout this course that browsers will attempt to make sense
of bad HTML code in different ways. When browsers encounter bad HTML code, they
do their best to try and "read your mind" and figure out what you really meant.
What are some browsers that don't have the resources or power to try and
interpret bad code?
What does the phrase "backward browser compatible" mean?
Is HREF a valid attribute name for the anchor tag in HTML?
How about Href ? Why or why not?
Is <hr width=50> valid XHTML code? Why or why not?
Give an example of "attribute minimization". Is attribute minimization
allowed in XHTML? Correct your example so that it is correct XHTML code.
How many allowable minimized attributes are there in HTML?
Why do some of the corrected minimized attributes end in just " > " but
others end in " /> "?
There's a pattern to how "minimized attributes" must be written in XHTML.
<BREAK> is a standalone tag that can be written with
a minimized attribute in HTML as <BREAK SHORT> . Then, how would
it have to be written in XHTML?
Rewrite <IMG SRC="pic1.gif" NAME="cat"> so that it
is correct XHTML, and will also work correctly with older browsers.
Rewrite the following code so that is it correct XHTML:
<P><CENTER>copyright 2000 Carol J.V. Fisher, All Rights Reserved</CENTER>
<TABLE BORDER=0 CELLPADDING=5>
1. <A href="day_1_introduction.htm">INTRODUCTION TO THE INTERNET</A>
<A HREF="day_1_introduction_nse.htm">no special effect</A>
Use SimpleText to create an XHTML document named "test_XHTML.htm"
and save it in your own personal filespace. It should have the
content indicated below, except corrected so that it is correct
XHTML. Then, try and run it through the XHTML Validator.
<H1>My first test of XHTML!!!</H1>
(put your name here)
You may get an error:
"I was not able to extract a character encoding labeling from any
of the valid sources for such information.
Without encoding information it is impossible to validate the document."
If so, add the following line inside your head container and try again: