Salve a tutti nuovamente.
Ho un problema con il W3C Validator riguardo al DTD definito nella home page di un sito che sto' costruendo. Sono nuovo e di strada ne ho ancora tanta da fare, ma spero di ottenere un aiuto da voi che di sicuro siete anni luce dalla mia conoscenza di HTML, XHTML (e CSS).
Allora, la DTD, insieme alla head è la seguente:
Informo che uso il W3C Validator tramite i tasti Ctrl+Alt+C da Opera, che uso come anteprima dall'editor HTML "First Page 2006".<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//IT" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset="iso-8859-1" />
<title>Home_Page</title>
<style type="text/css">
body{text-align:center; background-color:#f1ceff; color:black;}
table {width:30%; text-align:center;}
table td, table tr{border:1px purple solid;
font-size:10pt;}
.menu{color:#de2554; cursorointer;}
.citazione{colorurple;}
</style>
</head>
<body>...</body>
</html>
I messaggi d'errore sono i seguenti:
Le ho provate tutte, manuali, W3C, ma non riesco a evitare tale errore. A qualcuno viene in mente nienteBelow are the results of attempting to parse this document with an SGML parser.
Error Line 5 column 73: an attribute value literal can occur in an attribute specification list only after a VI delimiter.
...ype" content="text/html; charset="iso-8859-1" />
Have you forgotten the "equal" sign marking the separation between the attribute and its declared value? Typical syntax is attribute="value".
✉
Error Line 5 column 75: character data is not allowed here.
... content="text/html; charset="iso-8859-1" />
You have used character data somewhere it is not permitted to appear. Mistakes that can cause this error include putting text directly in the body of the document without wrapping it in a container element (such as a
aragraph</p>) or forgetting to quote an attribute value (where characters such as "%" and "/" are common, but cannot appear without surrounding quotes).?
Ciao.