<?xml version="1.1" encoding="iso-8859-2"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="pl"> <head> <meta http-equiv="content-type" content="application/xhtml+xml; charset=iso-8859-2" /> <meta http-equiv="Content-Language" content="...,...,..." /> <meta name="Keywords" content="...,...,..." /> <meta name="Robots" content="..." /> <meta name="Author" content="..." /> <meta name="Description" content="..." /> <link rel="stylesheet" type="text/css" href="style.css" /> </head> <body> </body> </html>
Dlaczego po wklejeniu powyszego kodu tu:
http://validator.w3.org/#validate_by_input
Wyżuca błąd z kodowaniem:
Cytat
Character Encoding Override in effect! The detected character encoding "utf-8" has been suppressed and "iso-8859-2" used instead.
Bez zdeklarowanych wartości strunę wykrywa jako utf-8 a po zdeklarowaniu na iso-8859-2 wyrzuca powywszy kod dlaczego?? W ogóle gdzie w tym kodzie jest mowa o utf-8??
Ps I dlaczego po zdeklarowaniu xhtml 1.1 wyrzuca:
Cytat
DOCTYPE Override in effect!
The detected DOCTYPE Declaration "<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">" has been suppressed and the DOCTYPE for "XHTML 1.1" inserted instead, but even if no errors are shown below the document will not be Valid until you update it to reflect this new DOCTYPE.
The detected DOCTYPE Declaration "<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">" has been suppressed and the DOCTYPE for "XHTML 1.1" inserted instead, but even if no errors are shown below the document will not be Valid until you update it to reflect this new DOCTYPE.
Choć nie zdeklarowaną wykrywa właśnie jako xhtml 1.1 to po deklaracji dzieją się dziwne rzeczy... ;p