![]() | |
#1
| |||
| |||
|
|
Line 47, column 102: there is no attribute "height" ...E" /></td></tr></table><table height="40"><tr><td> </td></tr></table 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). This error may also result if the element itself is not supported in the document type you are using, as an undefined element will have no supported attributes; in this case, see the element-undefined error message for further information. How to fix: check the spelling and case of the element and attribute, (Remember XHTML is all lower-case) and/or check that they are both allowed in the chosen document type, and/or use CSS instead of this attribute. |
|
Line 55, column 73: there is no attribute "background" ..." align="center" valign="middle" background="img/left_menu.png"></td |
#2
| |||
| |||
|
|
Bonjour, je viens de faire une validation w3c sur mon site, seulement j'ai des erreurs que je ne comprend pas ! Comme celle-ci : Line 47, column 102: there is no attribute "height" ...E" /></td></tr></table><table height="40"><tr><td> </td></tr></table Ou encore celle-la : Line 55, column 73: there is no attribute "background" ..." align="center" valign="middle" background="img/left_menu.png"></td |
|
Si quelqu'un pourrais m'éclairer ! Merci Simon |
#3
| |||
| |||
|
|
Simon a écrit : Bonjour, je viens de faire une validation w3c sur mon site, seulement j'ai des erreurs que je ne comprend pas ! Comme celle-ci : Line 47, column 102: there is no attribute "height" ...E" /></td></tr></table><table height="40"><tr><td> </td></tr></table Ou encore celle-la : Line 55, column 73: there is no attribute "background" ..." align="center" valign="middle" background="img/left_menu.png"></td Salut C'est expliqué dans le texte : """ 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 """ Certains arributs qui étaient valides en HTML 3.2 sont déprécié en HTML 4.0 et encore plus en XHTML 1.0 ou 1.1, il faut désormais utiliser les feuilles de styles CSS. Pour connaitre précisément les attributs et balises auxquelles tu as droit selon ton doctype, tu peux utiliser l'aide de w3schools.com : Ex: http://www.w3schools.com/tags/tag_table.asp Si quelqu'un pourrais m'éclairer ! Merci Simon De rien |
#4
| |||
| |||
|
|
Simon <"chatainsim[at]wanadoo[dot]fr"> a écrit: Merci bien, mais je ne vois pas trop comment definir l'attribut "height" autrement que comme ça, idem pour "background" ! Je suis completement perdu ... Comment faire ?? Merci Simon Si tu connais rien aux css voici vite fait comment faire On va mettre ta css dans un fichier : general.css dans ton <head> tu rajoutes : link rel="stylesheet" type="text/css" href="general.css" media="screen" / ensuite dans la css table.tableau { height:40px; } pour le background si c'est pour un autre tableau table.tableau2 { height:100px; background-image:url(mg/left_menu.png); } pour une cellule td.imagefond { background-image:url(mg/left_menu.png); } ensuite dans ton html tu rajoutes les classes table class="tableau tr><td></td></tr tr><td class="imagefond"></td><tr /table Voilà comment faire. J'espère t'avoir aider Merci beaucoup, effectivement je ne savais pas que c'était possible !! |
![]() |
| Thread Tools | |
| Display Modes | |
| |