HTML referens
GRUND HTML DOKUMENT
Små bokstäver på taggar och attributvärde ska vara mellan 2 " ()
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html [version = ".." lang=".."}>
<head>
<meta http-equiv="Content-Type"
content="text/html" charset="ISO-8859-1">Västeuropa och Östeuropa=ISO-8859-2
<meta http-equiv="content-language" content="sv">
<title>Titeltext</title>
<style>p{color:blue}</style>
</head>
<body>
<p>Textstycke paragraph</p>
</body>
</html>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html [version = ".." lang=".."}>
<head>
<meta http-equiv="Content-Type"
content="text/html" charset="ISO-8859-1">Västeuropa och Östeuropa=ISO-8859-2
<meta http-equiv="content-language" content="sv">
<title>Titeltext</title>
<style>p{color:blue}</style>
</head>
<body>
<p>Textstycke paragraph</p>
</body>
</html>
De tre varianterna
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" "http://www.w3.org/TR/html4/frameset.dtd">
<!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" lang="sv" xml:lang="sv">
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" "http://www.w3.org/TR/html4/frameset.dtd">
<!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" lang="sv" xml:lang="sv">
Body attribut (OBS! Använd CSS istället)
<body text="rgb"
background="url" (bild)
bgsound="url" (ljudfil)
bgcolor="rgb"
link="rgb"
alink="rgb" (active)
vlink="rgb" (visited)
scroll="auto | no" (
dir="ltr | rtl" LeftToRight eller RightToLeft
Tillbaka
background="url" (bild)
bgsound="url" (ljudfil)
bgcolor="rgb"
link="rgb"
alink="rgb" (active)
vlink="rgb" (visited)
scroll="auto | no" (
dir="ltr | rtl" LeftToRight eller RightToLeft