XHTML http://www.kohnlehome.de/html/tempfile_4150.pdf
XHTML
Grundgerüst
<?xml version="1.0" encoding="utf-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="de" lang="de">
<head>
<title>Titel</title>
<link rel="stylesheet" href="formate.css" type="text/css" />
</head>
<body>
<!-- Hier ist der Inhalt des Dokuments -->
</body>
</html>
Syntax eines Elements
<element attribut1="Wert" attribut2="Wert">Inhalt</element>
Text
Bedeutung Nummer Entity
" " "
& & &
' ' '
< < <
> > >
nonbreaking space  
Universalattribute
Bedeutung Attribut
eindeutige Kennung id
Klassennamen class
Tooltipp title
Stilinformationen style
Blockelemente a) Verschiedenes
Bedeutung Element Inhalt
Allgemeiner Bereich div Text, Block, Inline
Überschrift h1 - h6 Text, Inline
Textabsatz p Text, Inline
präformatierter Text pre Text, Inline Kontaktinformationen address Text, Inline horizontale Trennlinie hr -
Zitat blockquote Block
b) Listen
Bedeutung Element Inhalt
unnummerierte Liste ul li
nummerierte Liste ol li
-> Listeneintrag li Text, Block, Inline
Definitionsliste dl dd, dt
-> Bezeichnung dt Text, Inline
-> Beschreibung dd Text, Block, Inline
c) Tabellen (unvollständig!)
Bedeutung Element Inhalt
Tabelle table tr , ...
-> Tabellenzeile tr th, td
-> -> Kopfzelle th Text, Block, Inline
-> -> Datenzelle td Text, Block, Inline
d) Formulare
Bedeutung Element Inhalt
Formular form Block
Gruppe von
Formularelementen fieldset Text, legend, Block, Inline
Franz Kohnle Seite 1 von 2 02.02.2007
XHTML http://www.kohnlehome.de/html/tempfile_4150.pdf
Inlineelemente a) Verschiedenes
Bedeutung Element Inhalt
inline-Bereich span Text, Inline
Anker, Link a Text, Inline
Zeilenumbruch br -
Grafik img -
Multimediaobjekt object Text, Block, Inline, param
Änderung der Textrichtung bdo Text, Inline Definitionsbereich für Grafiken map area
b) logische Textauszeichnung
Bedeutung Element Inhalt
betont em Text, Inline
stark betont strong Text, Inline
Quelltext code Text, Inline
Ausgabebeispiel samp Text, Inline Benutzereingabe kbd Text, Inline
Variable var Text, Inline
Abkürzung abbr Text, Inline
Akronym acronym Text, Inline
Definition dfn Text, Inline
Zitat q Text, Inline
Quelle oder Autor cite Text, Inline
c) physische Textauszeichnung
Bedeutung Element Inhalt
kursiv i Text, Inline
fett b Text, Inline
Festbreitenschrift tt Text, Inline größer als normal big Text, Inline kleiner als normal small Text, Inline tiefgestellt sub Text, Inline hochgestellt sup Text, Inline
d) Formularelemente
Bedeutung Element Inhalt
Formularelement input -
Auswahlliste select Text, optgroup, option
mehrzeiliges Texteingabefeld textarea Text
Klick-Button button Text, Block, Inline
Beschriftung eines Formularfeldes label Text, Inline
Franz Kohnle Seite 2 von 2 02.02.2007