Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Converting .aspx pages to HTML5
Message
General information
Forum:
HTML5
Category:
Other
Miscellaneous
Thread ID:
01599615
Message ID:
01599626
Views:
64
Yes - style has been around for a long time. IE 8 is a reasoably capable browser and it knows most features up to CSS 2.1 I believe.

FWIW, using attributes works in modern browsers as well so it's not really an error per se and modern browsers map attribute styling to CSS styles internally. Using styles is more consistent for sure so you're setting the same style properties both in inline CSS and style sheets.

+++ Rick ---

>I am converting an ASP.NET 2.0 project to ASP.NET 4.0; I moved it to VS 2012
>
>My ASPX pages have many tables where I used the following attributes:
>borderColor="#ccccc"
>cellSpacing="0"
>cellPadding="4"
>width="650"
>align="center"
>and maybe a few more.
>
>Now all these attributes have a squiggly green line under them (in VS 2012) with the Intellisense messages like "Validation (HTML5): Attribute "width" is not valid attribute for element 'table'"
>
>Of course I know that I can change these attributes to Style attribute. My question is, if a customer is using IE 8 (or maybe even IE 6) and I know these attributes to Style, will the pages with Style work in older browsers?
>
>TIA
+++ Rick ---

West Wind Technologies
Maui, Hawaii

west-wind.com/
West Wind Message Board
Rick's Web Log
Markdown Monster
---
Making waves on the Web

Where do you want to surf today?
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform