W3C home > Mailing lists > Public > public-webplatform@w3.org > August 2014

Depreciated Presentation Attributes.

From: Rob^_^ <iecustomizer@hotmail.com>
Date: Sat, 9 Aug 2014 14:55:45 +1000
Message-ID: <BLU168-DS882DF5C3839233C2637BCD4EF0@phx.gbl>
To: "List WebPlatform public" <public-webplatform@w3.org>
eg> http://docs.webplatform.org/wiki/html/attributes/align

ref: http://www.w3.org/TR/html4/index/attributes.html

and http://www.w3.org/TR/html4/conform.html

“This specification includes examples that illustrate how to avoid using deprecated elements. In most cases these depend on user agent support for style sheets. In general, authors should use style sheets to achieve stylistic and formatting effects rather than HTML presentational attributes. HTML presentational attributes have been deprecated when style sheet alternatives exist “

In the wild, novice developers will get bamboozled by 
<table align=”left” style=”margin:0 auto”> (which will render differently in different userAgent versions, and DTD headers)

for depreciated presentational attributes (align, cellspacing, cellpadding, valign, halign, bkcolor, etc), should there be a big.

“Depreciated: Use CSS instead “

warning?

A Note: validator.w3.org will flag align=”left” as a warning if the dtd is HTML 5, but flag it as an error if served with HTML4 strict.


Regards.
Received on Saturday, 9 August 2014 04:56:20 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:21:03 UTC