Mittwoch, Juni 06, 2007 |
About XHTML
What kind of tutorial is this?
This tutorial is supposed for newbies. It is not a complete overview over XHTML, but it aims more into the direction to show how to use html the way it's supposed to be used. In addition, this tutorial gives an introduction to StyleSheets (css-Files); the student will not only learn the best way to use html, but he will be automatically learn how to seperate content from design.
What's XHTML anyway?
XHTML is the abbreviation for "EXtensible Hyper Text Markup Language".
A Hypertext is an organized cloud of information (texts and textparts) that are linked by a connections between this information.
Markup is the labeling of textparts through tags; these tags tell the Browser how and where the text should be rendered and displayed.
XHTML is therefore a language, that describes information.
An XHTML document consists of various regions, that contain a number of tags. An overview can be found in figure 1.
(Formatierungselement: formatting, Gruppierungselemente: grouping)
Whats the difference between HTML and XHTML?
XHTML is the successor of HTML. If you never worked with HTML you may omnit the following lines and got to the First Part of this tutorial.
If you worked with HTML note the following changes:
The html tag needs a namespace: <html xmlns="http://www.w3.org/1999/xhtml">
Elements and attributes have to be lowercase.
Attributes are required to have quotes.
Empty tags extincted. Instead of <br> you have to write <br />, instead of <img src=..> you have to write <img src=.. />.
Empty attributes (like checked) are extincted, too. The value of the attribute is now equal to the name to set it. (checked="checked")
Last one on the great "dying out"-lane of xhtml: The name attribute. It's gone and was replaced by id.