ASP.NET and W3C Compliance Presented by Paul Turner [email protected].

20
ASP.NET and W3C ASP.NET and W3C Compliance Compliance Presented by Presented by Paul Turner Paul Turner [email protected] [email protected]

Transcript of ASP.NET and W3C Compliance Presented by Paul Turner [email protected].

Page 1: ASP.NET and W3C Compliance Presented by Paul Turner paul.turner@kaz-group.com.

ASP.NET and W3C ASP.NET and W3C ComplianceCompliance

Presented by Presented by

Paul TurnerPaul [email protected]@kaz-group.com

Page 2: ASP.NET and W3C Compliance Presented by Paul Turner paul.turner@kaz-group.com.

OverviewOverview

• What is W3C?What is W3C?

• How does it effect developers?How does it effect developers?

• ASP.NET (1.1) complianceASP.NET (1.1) compliance

• ASP.NET (2.0) complianceASP.NET (2.0) compliance

Page 3: ASP.NET and W3C Compliance Presented by Paul Turner paul.turner@kaz-group.com.

What is the W3C?What is the W3C?

• World Wide Web Consortium (W3C)World Wide Web Consortium (W3C)• Standards organisationStandards organisation• Over 350 MembersOver 350 Members

– BEA, Microsoft, SUN, AT&T, AOL, CERN, Cisco, BEA, Microsoft, SUN, AT&T, AOL, CERN, Cisco, CSIRO, EDS, Fijitsu, Google, HP, IBM, Intel, CSIRO, EDS, Fijitsu, Google, HP, IBM, Intel, Oracle, Sony…Oracle, Sony…

““W3C Members take a W3C Members take a leadership roleleadership role in the future of the in the future of the Web, promote their Web, promote their image as an innovatorimage as an innovator participating participating in a standards body international in mission and impact, in a standards body international in mission and impact, and gain and gain early insight into market trendsearly insight into market trends (thus (thus reducing the risk of missing them)”reducing the risk of missing them)”

Page 4: ASP.NET and W3C Compliance Presented by Paul Turner paul.turner@kaz-group.com.

What is the W3C?What is the W3C?

• The W3C has ‘shaped’ the core web The W3C has ‘shaped’ the core web technologiestechnologies

• Provide implementationsProvide implementations– Jigsaw (Web Server)Jigsaw (Web Server)– Libwww (Web Server Library)Libwww (Web Server Library)– HTML Tidy (HTML compliance tool)HTML Tidy (HTML compliance tool)– Amaya (Web Browser)Amaya (Web Browser)

Page 5: ASP.NET and W3C Compliance Presented by Paul Turner paul.turner@kaz-group.com.

So what?So what?

• Ensures that basic ‘rules’ are followedEnsures that basic ‘rules’ are followed• CompatibilityCompatibility

– ‘‘Rendering’ of HTML and CSS in a Rendering’ of HTML and CSS in a consistent manner on all platformsconsistent manner on all platforms

• InteroperabilityInteroperability– SOAP, XML and Web Services…SOAP, XML and Web Services…

• NOT related to implementationsNOT related to implementations– IE, Firefox, Mozilla etc…IE, Firefox, Mozilla etc…

Page 6: ASP.NET and W3C Compliance Presented by Paul Turner paul.turner@kaz-group.com.

How does it effect How does it effect developers?developers?• HTML complianceHTML compliance

– HTMLHTML– XHMTL XHMTL

• Accessibility complianceAccessibility compliance– Priority 1Priority 1– Priority 2Priority 2– Priority 3Priority 3

• CSS complianceCSS compliance• More… XML, XPath, SOAP, URI, HTTP…More… XML, XPath, SOAP, URI, HTTP…

Page 7: ASP.NET and W3C Compliance Presented by Paul Turner paul.turner@kaz-group.com.

HTML ComplianceHTML Compliance

• Sets the standards for HTMLSets the standards for HTML– Ensures that software* interprets HTML Ensures that software* interprets HTML

correctlycorrectly– Strongly related to the HTTP standard Strongly related to the HTTP standard

(the transport)(the transport)

• Provides online validatorsProvides online validators

* Web browsers are just one type* Web browsers are just one type

Page 8: ASP.NET and W3C Compliance Presented by Paul Turner paul.turner@kaz-group.com.

DemoDemo

• HTML ValidatorHTML Validator– http://validator.w3.org/http://validator.w3.org/

Page 9: ASP.NET and W3C Compliance Presented by Paul Turner paul.turner@kaz-group.com.

Accessibility ComplianceAccessibility Compliance

• Web Accessibility Initiative (WAI)Web Accessibility Initiative (WAI)– About providing access to the internet to About providing access to the internet to

disabled peopledisabled people– Provides standards for an electronic Provides standards for an electronic

interpretation of a pageinterpretation of a page– Screen readers for the blindScreen readers for the blind– A, AA and AAA priority requirementA, AA and AAA priority requirement– Also means you tend to have really good Also means you tend to have really good

HTML…HTML…

Page 10: ASP.NET and W3C Compliance Presented by Paul Turner paul.turner@kaz-group.com.

DemoDemo

• WCAG validatorWCAG validator– http://webxact.watchfire.com/http://webxact.watchfire.com/

Page 11: ASP.NET and W3C Compliance Presented by Paul Turner paul.turner@kaz-group.com.

CSS ComplianceCSS Compliance

• Ensures that common styles are Ensures that common styles are appliedapplied

• Keeps a consistent look between Keeps a consistent look between browsersbrowsers

• Provides online validatorsProvides online validators

Page 12: ASP.NET and W3C Compliance Presented by Paul Turner paul.turner@kaz-group.com.

DemoDemo

• CSS ValidatorCSS Validator– http://jigsaw.w3.org/css-validator/http://jigsaw.w3.org/css-validator/

Page 13: ASP.NET and W3C Compliance Presented by Paul Turner paul.turner@kaz-group.com.

ASP.NET (1.1) ComplianceASP.NET (1.1) Compliance

• Hard workHard work• Don’t take on the task lightly!Don’t take on the task lightly!• Some built in controls don’t generate ‘Well Some built in controls don’t generate ‘Well

Formed’ HTMLFormed’ HTML

<B>Hello <I>World</B><B>Hello <I>World</B> No end tag…No end tag…

<B>Hello <I>World</B></I> <B>Hello <I>World</B></I> Overlapping tags…Overlapping tags…

<TABLE ID=“Table1”>…</TABLE><TABLE ID=“Table1”>…</TABLE>..<TABLE ID=“Table1”>…</TABLE> <TABLE ID=“Table1”>…</TABLE>

Reused ID’sReused ID’s

Page 14: ASP.NET and W3C Compliance Presented by Paul Turner paul.turner@kaz-group.com.

DemoDemo

• Tag reuseTag reuse

Page 15: ASP.NET and W3C Compliance Presented by Paul Turner paul.turner@kaz-group.com.

ASP.NET (1.1) ComplianceASP.NET (1.1) Compliance

• IDE SettingsIDE Settings– HTML EditorHTML Editor– Formatting of attributesFormatting of attributes

Page 16: ASP.NET and W3C Compliance Presented by Paul Turner paul.turner@kaz-group.com.

DemoDemo

• Editor SettingsEditor Settings

• Schema SettingsSchema Settings

Page 17: ASP.NET and W3C Compliance Presented by Paul Turner paul.turner@kaz-group.com.

ASP.NET (2.0) ComplianceASP.NET (2.0) Compliance

• ‘‘Check Page for Accessibility’Check Page for Accessibility’

• HTML validation optionsHTML validation options– XHTMLXHTML– HTML 4.01HTML 4.01– IE, Netscape etc…IE, Netscape etc…

• Server controls versus HTML controlsServer controls versus HTML controls

Page 18: ASP.NET and W3C Compliance Presented by Paul Turner paul.turner@kaz-group.com.

DemoDemo

• Visual Studio 2005Visual Studio 2005

Page 19: ASP.NET and W3C Compliance Presented by Paul Turner paul.turner@kaz-group.com.

SummarySummary

• WC3 – WC3 – http://www.w3.orghttp://www.w3.org

• HTML – HTML – http://validator.w3.org/http://validator.w3.org/

• WCAG – WCAG – http://http://webxact.watchfire.comwebxact.watchfire.com//

• CSS – CSS – http://jigsaw.w3.org/css-validator/http://jigsaw.w3.org/css-validator/

• Visual Studio Editor SettingsVisual Studio Editor Settings

• Visual Studio 2005 Visual Studio 2005

Page 20: ASP.NET and W3C Compliance Presented by Paul Turner paul.turner@kaz-group.com.

Questions?Questions?