Difference between revisions of "Tidy 504"

From Htmlpedia
Jump to: navigation, search
 
Line 14: Line 14:
  
 
=== References: ===
 
=== References: ===
* W3C HTML: [https://www.w3.org/TR/html401/present/graphics.html - Deprecated]
+
* W3C HTML: [https://www.w3.org/TR/html401/present/graphics.html - align is Deprecated]

Latest 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: