Ciao a tutti,
spero che non abbiate già affrontato questo problema che mi è capitato, ma non sono riuscito a trovare nulla in proposito, in questa sezione.
Sto validando un portale web sia con CSS 2.01 (che ha avuto successo), sia in XTML 4.01
In quest'ultimo caso ho 4 errori, tutti dello stesso tipo e facenti riferimento a questo messaggio
Il codice php che "vede" il validatore è questo (riporto solo le informazioni per questo problema)Attribute "CLASS" is not a valid attribute. Did you mean "class"?
<font class="nomeempresa">XXXXX</font>,
You have used the attribute named above in your document, but the document type you are using does not support that attribute for this element. This error is often caused by incorrect use of the "Strict" document type with a document that uses frames (e.g. you must use the "Transitional" document type to get the "target" attribute), or by using vendor proprietary extensions such as "marginheight" (this is usually fixed by using CSS to achieve the desired effect instead).
...etc....
e la parte di codice CSS interessata è la seguente...<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
....
<link href="css/index.css" rel="stylesheet" type="text/css">
...
<div class="riquadro">
<h1> Chi siamo </h1>
<font class="nomeempresa">XXXX</font>,
...
Secondo voi, che cosa c'è che non va?.nomeempresa { font-size: 1.1em;
font-family: Verdana, Helvetica, sans-serif;
color: #fff;
font-weight: bold;
text-align: justify;
line-height:1.3em;
border-bottom : medium double #FFAA00;}
.sottolineato { font-size: 1.1em;
font-family: Verdana, Helvetica, sans-serif;
color: #fff;
text-align: left;
font-weight:bold;
border-bottom : thin double #FFAA00;
text-decoration: none}
![]()
Grazie in anticipo per qualsiasi suggerimento.