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 “


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.

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

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 19:14:07 UTC