| |

VerySource

 Forgot password?
 Register
Search
View: 808|Reply: 7

The attribute "background" is not a valid attribute of the element "td", how can I change it?

[Copy link]

4

Threads

11

Posts

11.00

Credits

Newbie

Rank: 1

Credits
11.00

 China

Post time: 2020-2-13 17:30:01
| Show all posts |Read mode
Validation (XHTML 1.0 Transitional): The attribute "background" is not a valid attribute for the element "td", how can I change it?
Reply

Use magic Report

0

Threads

32

Posts

20.00

Credits

Newbie

Rank: 1

Credits
20.00

 China

Post time: 2020-4-11 23:30:02
| Show all posts
style = "background: url (xxx.gif)"
Reply

Use magic Report

0

Threads

9

Posts

6.00

Credits

Newbie

Rank: 1

Credits
6.00

 China

Post time: 2020-4-16 17:15:01
| Show all posts
It can be written like this <td style = "background-color: red"> </ td>
Reply

Use magic Report

0

Threads

21

Posts

12.00

Credits

Newbie

Rank: 1

Credits
12.00

 China

Post time: 2020-4-17 07:15:02
| Show all posts
.td1 {background: #eee;}

<td class = "td1"> </ td>
Reply

Use magic Report

4

Threads

11

Posts

11.00

Credits

Newbie

Rank: 1

Credits
11.00

 China

 Author| Post time: 2020-4-17 11:45:01
| Show all posts
Really good, thank you very much, there are still a few problems to solve it:
1: The attribute "align" is considered obsolete. It is recommended to use a newer construction.
2: The attribute "valign" is not a valid attribute of the element "table".
3: The element "font" is considered obsolete. It is recommended to use a newer construction.

Where can I find the answer?
Reply

Use magic Report

0

Threads

32

Posts

20.00

Credits

Newbie

Rank: 1

Credits
20.00

 China

Post time: 2020-4-17 16:30:01
| Show all posts
www.w3.org
Find xhtml and css standards
Reply

Use magic Report

1

Threads

18

Posts

14.00

Credits

Newbie

Rank: 1

Credits
14.00

 China

Post time: 2020-4-17 21:30:01
| Show all posts
http://www.xhtml.net.cn/ This website is very good
Reply

Use magic Report

0

Threads

29

Posts

19.00

Credits

Newbie

Rank: 1

Credits
19.00

 China

Post time: 2020-4-19 15:30:01
| Show all posts
Ha ha, if you want to pass the verification, use the style, which can be reused in the css
Reply to:sabs_nn() Reputation: 99 2017-01-04 20:43:34 Score: 0
.td1 {background: #eee;}
<td class = "td1"> </ td>

================================================== ==============
It is very troublesome to learn webstandard, it is better to pass it, haha. As for the font label, both words in bold will bring a long code at one end. Too much abuse, especially frontpage
Really good, thank you very much, there are still a few problems to solve it:
1: The attribute "align" is considered obsolete. It is recommended to use a newer construction.
2: The attribute "valign" is not a valid attribute of the element "table".
3: The element "font" is considered obsolete. It is recommended to use a newer construction.

Where can I find the answer?
Reply

Use magic Report

You have to log in before you can reply Login | Register

Points Rules

Contact us|Archive|Mobile|CopyRight © 2008-2023|verysource.com ( 京ICP备17048824号-1 )

Quick Reply To Top Return to the list