ciao a tutti
Il mio doctype e' il seguente :
Codice PHP:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
Ho seri problemi a capire come eliminare l'errore del tipo
Codice PHP:
NET-enabling start-tag requires SHORTTAG YES
e
Codice PHP:
character data is not allowed here
Perche ?
Il primo si riferisce alla chiusura del tag img....ecco un esempio che da errore :
Codice PHP:
Line 143, Column 154: NET-enabling start-tag requires SHORTTAG YES
…lank">[img]9.jpg[/img]</a> </div>
The sequence <FOO /> can be interpreted in at least two different ways, depending on the DOCTYPE of the document. For HTML 4.01 Strict, the '/' terminates the tag <FOO (with an implied '>'). However, since many browsers don't interpret it this way, even in the presence of an HTML 4.01 Strict DOCTYPE, it is best to avoid it completely in pure HTML documents and reserve its use solely for those written in XHTML.
mentre il secondo e' causato dalla lista ordinata a <UL>
ecco il codice con l'errore
Codice PHP:
[*]Impianti di illuminazione interna
✉
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), or
* using XHTML-style self-closing tags (such as <meta ... />) in HTML 4.01 or earlier. To fix, remove the extra slash ('/') character. For more information about the reasons for this, see Empty elements in SGML, HTML, XML, and XHTML.
Non capisco proprio.
Ho letto che e' colpa del mio doctype che e' html ...anziche xhtml.... ma non capisco come far si che spariscan gli errori.
Qualcuno mi illumina?