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:
01599631
Views:
46
Thank you very much! I will convert these attributes to a CSS style.

>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
"The creative process is nothing but a series of crises." Isaac Bashevis Singer
"My experience is that as soon as people are old enough to know better, they don't know anything at all." Oscar Wilde
"If a nation values anything more than freedom, it will lose its freedom; and the irony of it is that if it is comfort or money that it values more, it will lose that too." W.Somerset Maugham
Previous
Reply
Map
View

Click here to load this message in the networking platform