ToC ~ Up ~ Prev ~ Next ~ Index |
Introduction to HTML Last Update: 31 January 2000 |
The evolution of HTML has essentially stopped. Instead, HTML is being replaced by a new language, called XHTML. XHTML is in many ways similar to HTML, but is designed to work with the new eXtensible Markup Language, or XML, that will soon serve as the core language for designing all sorts of new Web applications, in which XHTML will be only one of many "languages." But, XHTML is designed to work with these other language, so that different documents, in different languages, can be easily mixed together.
For this to work, the rules for writing HTML documents had to change. These rules are simple, and are as follows:
<A HREF="foo.html">...</A>
but must instead write this in lowercase, as : <a href="foo.html">...</a>
<br>
or <img src="foo.html">
that doesn't
have a </br>
or <img>
to end it. In XHTML, such tags must be
written as:
<br />
, and
<img src="foo.gif" />
.<p> ..... paragraph text
<p> ..... more paragraph text
With XHTML, you must always put in the end tag, so that the preceding
must be written as: <p> ..... paragraph text </p>
<p> ..... more paragraph text </p>
<hr size="2" noshade>
<hr size="2" noshade="noshade" />
<hr size=2>
<hr size="2" />
That's about it -- there are a few more subtle details, but essentially if you follow the above rules, then the documents you write are acceptable as XHTML. Thus it's easy to write up Web pages using the XHTML format -- they will work with today's HTML browsers, and are easily upward-compatible for the next-generation of Web browsers.
ToC ~ Up ~ Prev ~ Next ~ Index |
Introduction to HTML © 1994-1998 by Ian Graham Last Update: 31 January 2000 |