Difference between revisions of "Tidy 504"

From Htmlpedia
Jump to: navigation, search
(Created page with "== Tidy: Warning: <...> attribute "...." not allowed for HTML5 == === Cause: === The attribute has been deprecated in HTML5. === Example: === Warning: <td> attribute "align"...")
 
Line 10: Line 10:
 
Use CSS to  
 
Use CSS to  
  
<bad><td align="center"></bad>
+
<bad>&lt;td align="center"&gt;</bad>
<good><td style="text-align: center"></good>
+
<good>&lt;td style="text-align: center"&gt;</good>
  
 
=== 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 - Deprecated]

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 to

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

References: