HighDots Forums  

Question sur w3c

alt.fr.langages.html alt.fr.langages.html


Discuss Question sur w3c in the alt.fr.langages.html forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Simon
 
Posts: n/a

Default Question sur w3c - 03-17-2005 , 03:21 PM






Bonjour, je viens de faire une validation w3c sur mon site, seulement
j'ai des erreurs que je ne comprend pas !
Comme celle-ci :
Quote:
Line 47, column 102: there is no attribute "height"

...E" /></td></tr></table><table height="40"><tr><td>&nbsp;</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.
Ou encore celle-la :
Quote:
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


Reply With Quote
  #2  
Old   
Thibault TAILLANDIER
 
Posts: n/a

Default Re: Question sur w3c - 03-18-2005 , 04:11 AM






Simon a écrit :
Quote:
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>&nbsp;</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


Quote:
Si quelqu'un pourrais m'éclairer !
Merci
Simon
De rien
--
Thibault
:wq


Reply With Quote
  #3  
Old   
Simon
 
Posts: n/a

Default Re: Question sur w3c - 03-18-2005 , 06:16 AM



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



Thibault TAILLANDIER wrote:
Quote:
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>&nbsp;</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

Reply With Quote
  #4  
Old   
Simon
 
Posts: n/a

Default Re: Question sur w3c - 03-26-2005 , 06:21 PM



Ôrel a écrit :
Quote:
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 !!
Merci
Simon


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.