major problem with background tag

Page 1 of 1

3 Replies - 638 Views - Last Post: 24 November 2007 - 08:26 PM

#1 richiebaby  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 13
  • Joined: 21-November 07

major problem with background tag

Post icon  Posted 22 November 2007 - 09:02 AM

Previously i was validating my code through xhtml 1.0 and the one major problem was that it tells me the background tag does not exist.

So i changed my doctype to html 4.1 to hopefully get round the problem but to no avail.
If it's deprecated what are you supposed to use instead?
Or what if any are the alternatives I'm tearing my hair out

many thanks
Is This A Good Question/Topic? 0
  • +

Replies To: major problem with background tag

#2 no2pencil  Icon User is offline

  • Admiral Fancy Pants
  • member icon

Reputation: 5388
  • View blog
  • Posts: 27,384
  • Joined: 10-May 07

Re: major problem with background tag

Posted 22 November 2007 - 09:06 AM

Can you post a link, or the html line with the background in it?
Was This Post Helpful? 0
  • +
  • -

#3 richiebaby  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 13
  • Joined: 21-November 07

Re: major problem with background tag

Posted 22 November 2007 - 12:15 PM

View Postno2pencil, on 22 Nov, 2007 - 09:06 AM, said:

Can you post a link, or the html line with the background in it?



The code below as requested

<table width="1230" background="ma pics/12.jpg" border="1" cellspacing="0" cellpadding="0">

The jpg is in a css file on my pc and displays it in my browser when i see the page although unpublished.
I havn't tried to publish this page yet but every time i try it through w3schools validator it tells me the tag dosen't exist?!

I've included the whole code to see if that will help at all. Cheers

One more thing do you think it would make any difference if I took the jpg out of the css and made the link straight each page could that help? Just an idea.

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>

<link rel="stylesheet" type="text/css"
href="mariearts.css" />
<title>Marie arts</title>

<meta name="Keywords" content="Drama, School, Leeds, Marie Arts, Performance, Nina Prescott, Gabrielle Cresswell, Performance, Self-expression, Children, Drama Lessons, Role-play, Mime work, voice expansion, trust exercises, Workshops" />
<meta name="Description" content="Drama school for children, Artistic creativity, Teaching various skills such as, Role-play, Mime work, voice expansion, trust exercises,Workshops " />

</head>
<body>


<table width="1230" background="ma pics/12.jpg" border="1" cellspacing="0" cellpadding="0">
<tr>
<td>
<h1>Marie Arts</h1></td>
</tr>
</table>

<h4 align="center">

<a href="2mariearts.htm" style="text-decoration:none">please
<img border="0" src="ma pics/cm4.jpg" align="middle" width="165" height="150" alt="mask"></img>
enter
</a>
</h4>
<pre>

</pre>
<h5>Drama and performance school</h5>
<hr />
</body>
</html>
Was This Post Helpful? 0
  • +
  • -

#4 snoj  Icon User is offline

  • Married Life
  • member icon

Reputation: 84
  • View blog
  • Posts: 3,564
  • Joined: 31-March 03

Re: major problem with background tag

Posted 24 November 2007 - 08:26 PM

See topic http://www.dreaminco...showtopic=37965 for further details.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1