Difference between revisions of "Tidy 504"

From Htmlpedia
Jump to: navigation, search
Line 8: Line 8:
 
=== Solution: ===
 
=== Solution: ===
  
Use CSS to
+
Use CSS:
  
 
<bad>&lt;td align="center"&gt;</bad>
 
<bad>&lt;td align="center"&gt;</bad>

Revision as of 15:52, 12 June 2018

Tidy: Warning: <...> attribute "...." not allowed for HTML5

Cause:

The attribute has been deprecated in HTML5.

Example:

Warning: <td> attribute "align" not allowed for HTML5

Solution:

Use CSS:

Bad<td align="center">
Good<td style="text-align: center">

References: