Html Nicht W3 Konform?
#16
geschrieben 18. Januar 2005 - 19:03
Ja, mata ne!
(For sending email please use OpenPGP encryption and signing. KeyID: 0xA0E28D18)
Anzeige
#17
geschrieben 18. Januar 2005 - 19:42
Zitat
<html>
The element named above was found in a context where it is not allowed. This could mean that you have incorrectly nested elements -- such as a "style" element in the "body" section instead of inside "head" -- or two elements that overlap (which is not allowed).
One common cause for this error is the use of XHTML syntax in HTML documents. Due to HTML's rules of implicitly closed elements, this error can create cascading effects. For instance, using XHTML's "self-closing" tags for "meta" and "link" in the "head" section of a HTML document may cause the parser to infer the end of the "head" section and the beginning of the "body" section (where "link" and "meta" are not allowed; hence the reported error).
Zitat
</html>
Zitat
</html>
Relvante Links:
W3 Validator: http://validator.w3.org/check?uri=http%3A%...2Fhp%2Ftest.htm
Test-Seite auf dem Webspace: http://www.8ung.at/beta/hp/test.htm
Dieser Beitrag wurde von Stefan bearbeitet: 18. Januar 2005 - 19:42
#18
geschrieben 18. Januar 2005 - 19:48
"http://www.w3.org/TR/xhtml1/DTD/Strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="de">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title></title>
</head>
<body>
</body>
</html>
So müßte das Ganze aussehen damit es Xhtml Konform ist
wobei das Strict auch durch "Transitional" ersetzt werden, dann kann man auch noch HTML 4 tags verwenden
Dieser Beitrag wurde von Flo01 bearbeitet: 18. Januar 2005 - 19:49
#19
geschrieben 18. Januar 2005 - 20:07
Und das "&" ist immernoch unkodiert.
Dieser Beitrag wurde von Rika bearbeitet: 18. Januar 2005 - 20:08
Ja, mata ne!
(For sending email please use OpenPGP encryption and signing. KeyID: 0xA0E28D18)
#20
geschrieben 18. Januar 2005 - 20:15
http://validator.w3.org/check?uri=http%3A%...2Fhp%2Ftest.htm
#21
geschrieben 18. Januar 2005 - 20:29
Ja, mata ne!
(For sending email please use OpenPGP encryption and signing. KeyID: 0xA0E28D18)
#22
geschrieben 18. Januar 2005 - 20:30
Zitat
#23
geschrieben 18. Januar 2005 - 20:43
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" <- für XHTML 1.0 Code
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <- für HTML 4 Code
Das sind zwei verschiedene Sachen und solten auch als solche behandelt werden.
Für normale HTML 4 Seiten reicht folgendes:
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <meta http-equiv="content-type" content="text/html;charset=iso-8859-1"> <title>Seitenname</title> </head> ... ... ... </html>
---
Ich bin ein kleiner, schnickeldischnuckeliger Tiger aus dem Schwarzwald.
Alle haben mich ganz dolle lila lieb.
#24
geschrieben 18. Januar 2005 - 22:49
Ich dachte das sei verboten oO
#25
geschrieben 18. Januar 2005 - 23:11
For Emails always use OpenPGP. My KeyID: 0xA1E011A4
#26
geschrieben 18. Januar 2005 - 23:14
Ja, mata ne!
(For sending email please use OpenPGP encryption and signing. KeyID: 0xA0E28D18)
#28
geschrieben 20. Januar 2005 - 19:56
Dieser Beitrag wurde von Rika bearbeitet: 20. Januar 2005 - 19:56
Ja, mata ne!
(For sending email please use OpenPGP encryption and signing. KeyID: 0xA0E28D18)