XHTML 1.0 continues all the capabilities found in HTML 4.01, but with the
fundamental difference that it is XML-based instead of SGML-based. This also
provides the <isindex />
tag the whole fleet of style
sheet settings (as can reasonable apply to it), a title
attribute
which puts a message on the screen when the mouse is moved over the widget window
(or any part of its border), and the usual lang
and dir
attributes. lang
here serves to inform search engines and suchlike
software what language was used in the prompt
string, if entered.
dir
only has the effect of determining which end the entered text
begins at, and can be overridden by the text-align
style sheet
command. All the same, with all these additions, <isindex />
is
still <isindex />
, working exactly the same way as it does in
the older versions of HTML and it shows that the user-entered result is:
One other thing to watch for is the way the textured background start going to the left once the window is filled and the user continues entering text. This is because the background-image is not "fixed" but "scroll." The stylesheet commands I have used to create this file are as follows:
<style type="text/css"> body { color: #000000; background-color: #FFFFFF; } .abc { font-family: courier, monospace; font-size: large; color: #FF0033; background-color: #AAFFDD; background-image: url(sfondo.jpg); background-repeat: no-repeat; text-decoration: overline; text-transform: capitalize; border: none; } #def { text-align: center; margin: 3ex 15ex 1ex 8ex; border-width: 2ex; border-color: #66FF66; border-style: groove; width: 300px; height: 80px; } h2, h3 { text-align: center; } </style>
The first example has not only a "class
" of
"abc," but also the "id
" of "def," so
all above style formatting options specified above apply to it. The second
does not share that id
, and so only has the "abc" style
sheet formatting options. In addition however, it has an inline style
attribute which reads: style="color: #0033FF". Note how
this overrides the color
stylesheet setting contained in the
"abc" class, and also how the border commands in the "def"
stylesheet commands also override the border: none; stylesheet
command in the "abc" class.
However, <isindex />
is depreciated in XHTML 1.0, so
it only accepts this tag when using the Transitional DTD. Strict 1.0 (and
XHTML 1.1) does not accept <isindex />
at all.
Next Level Up