[HTML - Javascript] Pages web non conformes ?

Fermé
Arno59 Messages postés 4600 Date d'inscription jeudi 23 octobre 2003 Statut Contributeur Dernière intervention 18 avril 2023 - 18 mai 2006 à 10:58
Arno59 Messages postés 4600 Date d'inscription jeudi 23 octobre 2003 Statut Contributeur Dernière intervention 18 avril 2023 - 17 août 2006 à 23:08
Bonjour,

J'ai réalisé plusieurs pages, je les ai vérifié avec le validateur de W3C

http://validator.w3.org/

Surprises aucunes pages n'est valables .


Result:  	 Failed validation, 88 errors
File:	Sites_ft.html
Encoding:	iso-8859-1
Doctype:	HTML 4.01 Transitional
This page is not Valid HTML 4.01 Transitional!

Below are the results of attempting to parse this document with an SGML parser.

   1. Error Line 43 column 50: an attribute value literal can occur in an attribute specification list only after a VI delimiter.

      ...                   initAnime1("texte1" , "Bienvenue sur le site de France Tel

      Have you forgotten the "equal" sign marking the separation between the attribute and its declared value? Typical syntax is attribute="value".

      ✉
   2. Error Line 195 column 108: document type does not allow element "BODY" here.

      ...nk="green" vlink="green" alink="gray">

      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).

      ✉
   3. Error Line 198 column 67: required attribute "TYPE" not specified.

      ...                       <SCRIPT LANGUAGE=JavaScript>

      The attribute given above is required for an element that you've used, but you have omitted it. For instance, in most HTML and XHTML document types the "type" attribute is required on the "script" element and the "alt" attribute is required for the "img" element.

      Typical values for type are type="text/css" for <style> and type="text/javascript" for <script>.......


A voir également:

5 réponses

Arno59 Messages postés 4600 Date d'inscription jeudi 23 octobre 2003 Statut Contributeur Dernière intervention 18 avril 2023 484
18 mai 2006 à 11:06
Meme le site de la SNCF n'est pas conforme

https://validator.w3.org/nu/?doc=https%3A%2F%2Fwww.sncf.com%2Ffr
0
sebsauvage Messages postés 32893 Date d'inscription mercredi 29 août 2001 Statut Modérateur Dernière intervention 21 octobre 2019 15 655
18 mai 2006 à 11:07
J'utilise un truc: Tidy.

Ce programme vérifie et corrige le code.

Après HTML Tidy, ça passe presque dans le validateur du W3C.
(J'utilise PSPad, qui intègre Tidy).


http://www.w3.org/People/Raggett/tidy/
0
Arno59 Messages postés 4600 Date d'inscription jeudi 23 octobre 2003 Statut Contributeur Dernière intervention 18 avril 2023 484
22 mai 2006 à 10:10
Merci pour ton lien,

Je vais l'utiliser et vous tiens au courant
0
Arno59 Messages postés 4600 Date d'inscription jeudi 23 octobre 2003 Statut Contributeur Dernière intervention 18 avril 2023 484
17 août 2006 à 23:05
Bonjour,

J'ai téléchargé Tidy "tidy_linux_x86.tgz" sur http://tidy.sourceforge.net/#binaries

Impossible d'exécuter Tidy, omment résoudre ce problème ?
0

Vous n’avez pas trouvé la réponse que vous recherchez ?

Posez votre question
Arno59 Messages postés 4600 Date d'inscription jeudi 23 octobre 2003 Statut Contributeur Dernière intervention 18 avril 2023 484
17 août 2006 à 23:08
Bonjour,

Excusez moi, j'ai réussi à lancé tiny : /bin/tiny adresse.html ;-)
0