<b>REGISTER</b>

GFX-Sector - HTML, CSS


 
GFX-Sector » Coding Area » Webentwicklung » HTML, CSS » W3C Validator Fehlermeldung: there is no attribute BACKGROUND » Hello Guest [Login|Register]
Last Post | First Unread Post Print Page | Recommend to a Friend | Add Thread to Favorites

HTML, CSS

Einfache Scriptsprachen und deren Layout mit HTML und CSS
Post New Thread Post Reply

W3C Validator Fehlermeldung: there is no attribute BACKGROUND

     Deutsche Version  English version
Author
Post « Previous Thread | Next Thread »

|~Râdîant~| |~Râdîant~| is a male
Polygonmeister


Avatar von |~Râdîant~|

Registration Date: 15.04.2007
Posts: 778
Location: Berlin
Program: Adobe Photoshop CS4
Deviantart: radiantgfx

Spacer
W3C Validator Fehlermeldung: there is no attribute BACKGROUND

W3C Validator Fehlermeldung: there is no attribute BACKGROUND

      

Ich bin gerade dabei, die Fehler in einem HTML-Dokument mit Hilfe des W3C-Validators zu korrigieren.

Bei der folgenden Fehlermeldung komme ich allerdings nicht weiter, ich hoffe ihr könnt mir dabei helfen:


Die vollständige Tabelle sieht so aus (jaja, Tabellen sind überholt):

code:
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
<div align="center">
  <table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" width="167">
    <tr>
      <td width="167" height="258" valign="top"></td>
    </tr>
	<tr>
      <td width="167" height="150" background="interface/menu_87_2.gif" valign="top" align="center">
<font size="1" color="#808080">text</font>
      </td>
   </tr>
  </table>
</div>


Warum wird hier der background="..." in der unteren Zeile nicht akzeptiert?

Schomal danke für die Mühen. Wink


This post has been edited 1 time(s), it was last edited by |~Râdîant~|: 11.06.2011 18:49.

W3C Validator Fehlermeldung: there is no attribute BACKGROUND 11.06.2011 18:39 |~Râdîant~| is offline Search for Posts by |~Râdîant~|

Ephraim
Co-Administrator


Avatar von Ephraim

Registration Date: 17.03.2008
Posts: 4,369
Forums: (alle)

Spacer

RE: W3C Validator Fehlermeldung: there is no attribute BACKGROUND

      

Hintergründe sind im stinknormalen HTML gar nicht für Tabellenzellen vorgesehen
Dementsprechend ist "background = " auch nicht valide und falsch und sollte auch nicht benutzt werden.

Schreib "class = X" rein und definiere das Hintergrundbild in einer CSS Klasse dann sollte das auch gehen + valide sein

W3C Validator Fehlermeldung: there is no attribute BACKGROUND 11.06.2011 18:52 Ephraim is offline Search for Posts by Ephraim

ClOuDy. ClOuDy. is a male
Pfadfinder


Avatar von ClOuDy.

Registration Date: 31.01.2010
Posts: 570
Program: PS CS5

Spacer
      

genauer gesagt xhtml mag das nicht. normales html schon. steht doch da, dass dein doctype normalerweise dieses attribut nicht unterstützt.

da ist übrigends ein button, der dir den quelltext automatisch säubert.



W3C Validator Fehlermeldung: there is no attribute BACKGROUND 11.06.2011 20:12 ClOuDy. is offline Search for Posts by ClOuDy.

Ephraim
Co-Administrator


Avatar von Ephraim

Registration Date: 17.03.2008
Posts: 4,369
Forums: (alle)

Spacer
      

quote:
Original von ClOuDy.
genauer gesagt xhtml mag das nicht. normales html schon. steht doch da, dass dein doctype normalerweise dieses attribut nicht unterstützt.

da ist übrigends ein button, der dir den quelltext automatisch säubert.


Ich wüsste nicht das es einen Doctype von W3C gibt, welcher "background" im td-tag unterstützt, sei es HTML oder xHTML.
Lasse mich gerne eines besseren belehren.

http://forum.de.selfhtml.org/archiv/2001/7/t27395/

W3C Validator Fehlermeldung: there is no attribute BACKGROUND 11.06.2011 21:20 Ephraim is offline Search for Posts by Ephraim

piJoe
Designartist


Avatar von piJoe

Registration Date: 11.09.2009
Posts: 1,253
Deviantart: pijoe93

Spacer
      

ohnehin gehören meiner meinung nach "style-technische" sachen NICHT in den html code selbst, sondern ins css.
Un dann dürfts relativ egal sein.

mal was anderes: wozu nutzt du die tabelle und kann man sie nicht durch divs ersetzen?
wenn man ne tabelle vermeiden kann, sollte man dies auch ^^




^g4MBLe basht fröhlich

W3C Validator Fehlermeldung: there is no attribute BACKGROUND 11.06.2011 23:18 piJoe is offline Search for Posts by piJoe
 
Spacer
   
GFX-Sector
unregistered


 hat kein Avatar


Spacer

Have you enjoyed this topic?


If you were enjoying this post and if you keen on reading more interesting stuff then do not hesitate to complete the free sign up.

After the free registration you will gain access to all areas and you will be able to communicate with other artists from all over the world.

In addition you will benefit from our Photoshop and coding section as well as from our huge (hundreds of gigabytes) free resource section where you can find everything you will need to be a successful (web) designer/artist.

Sign up now and enjoy the advantages as a registered member.

(This website will be ad-free after a complete free sign up.)

New Post 11.06.2011 23:18  
Tree Structure | Board Structure
Post New Thread Post Reply
GFX-Sector » Coding Area » Webentwicklung » HTML, CSS » W3C Validator Fehlermeldung: there is no attribute BACKGROUND

Similar topics to W3C Validator Fehlermeldung: there is no attribute BACKGROUND
Thread
[Suche] Homepage Background (portofilio) (Forum: Fragen & Probleme)
[HTML-Hilfe] Background Image (Forum: HTML, CSS)
[Render / Stock] Background Stocks (Forum: Archiv)
Suche PSD Backgrounds (Forum: Archiv)
[Problem] Fehlermeldung beim Speichern von gif-Datei (Forum: Fragen & Probleme)