Building great standards based websites for the big wide world with ASP.NET 4 Tatham Oddie Senior Consultant Readify ASP.NET Damian Edwards.

Slides:



Advertisements
Similar presentations
Copyright © 2003 Pearson Education, Inc. Slide 3-1 Created by Cheryl M. Hughes The Web Wizards Guide to XML by Cheryl M. Hughes.
Advertisements

Cascading Style Sheets
Today CSS HTML A project.
Chapter 3 – Designing your web pages Dr. Stephanos Mavromoustakos.
Standards and Increasing Maintainability on Web- based Systems James Eaton SE4112/16/2006.
Web Standards XHTML and CSS. Today’s Show ► Discuss web standards ► XHTML ► Layout Without Tables ► CSS ► Why Web Standards?
Part 5 Introduction to CSS. CSS Display - Block and Inline Elements A block element is an element that takes up the full width available, and has a line.
Web Development & Design Foundations with XHTML Chapter 7 Key Concepts.
SM5312 week 11: CSS Menus & Navigation Bars1 An Introduction to Cascading Style Sheets CSS Menus and Navigation Bars Nick Foxall.
Advance CSS (Menu and Layout) Miftahul Huda. CSS Navigation MENU It's truly remarkable what can be achieved through CSS, especially with navigation menus.
Client-Side Internet and Web Programming
Web Pages and Style Sheets Bert Wachsmuth. HTML versus XHTML XHTML is a stricter version of HTML: HTML + stricter rules = XHTML. XHTML Rule violations:
Today’s objectives Site performance Padding, Margins, Borders
Murach’s ASP.NET 3.5/C#, C5© 2008, Mike Murach & Associates, Inc.Slide 1.
Chapter 10 Form Basics Key Concepts Copyright © 2013 Terry Ann Morris, Ed.D 1.
Web Design Basic Concepts.
Performance, SEO, Accessibility Ivan Zhekov Telerik Corporation
Slide 1 of 83 Table Borders To specify table borders in CSS, use the border property. The example below specifies a black border for table, th, and td.
Web Page Layout With CSS CSS Level 2 vs. Nested Tables Mike Wallick – 11/3/04.
CPSC 594B: Software Engineering Project Lecture 1: Introduction to HTML5 Lecturer: Ayman Issa Office: ICT 555.
HTML 5 New Standardization of HTML. I NTRODUCTION HTML5 is The New HTML Standard, New Elements New Attributes Full CSS3 Support Video and Audio 2D/3D.
What is Web Design?  Web design is the creation of a Web page using hypertext or hypermedia to be viewed on the World Wide Web.
HTML Essentials Frames and Frame Tags. Introduction A frame used to be an effective design tool Utilized space effectively by subdividing screen One idea:
PhpXperts What is jQuery Javascript Library Fast and concise Simplifies the interaction between HTML and JavaScript.
Working with Cascading Style Sheets. Introducing Cascading Style Sheets Style sheets are files or forms that describe the layout and appearance of a document.
Dreamweaver -- CSS. Dreamweaver -- MX New icons are added in MX Most of the features commonly used in web design, and are same as FrontPage. New feature.
ASP.NET + Ajax Jesper Tørresø ITNET2 F08. Ajax Ajax (Asynchronous JavaScript and XML) A group of interrelated web development techniques used for creating.
Basics of Smarajit Dasgupta.
Today’s objectives  Complete web page  Using xhtml & CSS  Adding CSS to documents Embed url(File);  CSS.
CHAPTER 10 Formatting Tables and Forms. Using Tables the Right Way  HTML and XHTML have a LOT of tags dedicated to building a table  If you have only.
CIS67 Foundations for Creating Web Pages Professor Al Fichera Rev. September 14, 2010—All HTML code brought to XHTML standards. Reference for CIS127 and.
Cascading Style Sheet Bayu Priyambadha, S.Kom. Definition Cascading Style Sheets (CSS) form the presentation layer of the user interface. –Structure (HTML)
Session 1 SESSION 1 Working with Dreamweaver 8.0.
Tutorial 7 Creating Forms. Objectives Session 7.1 – Create an HTML form – Insert fields for text – Add labels for form elements – Create radio buttons.
CSS = Cascading Style Sheet CSS consists of rules to display, style and decorate HTML elements Why CSS ? – Separate decoration from HTML markup (Ex :,,…)
Copyright © Terry Felke-Morris WEB DEVELOPMENT & DESIGN FOUNDATIONS WITH HTML5 Chapter 9 Key Concepts 1 Copyright © Terry Felke-Morris.
Week 9 - Form Basics Key Concepts 1. 1.Describe common uses of forms on web pages 2.Create forms on web pages using the form, input, textarea, and select.
SharePoint Branding "just not look like SharePoint!" Branding is the act of creating a specific image or identity that people recognize in relation to.
XHTML By Trevor Adams. Topics Covered XHTML eXtensible HyperText Mark-up Language The beginning – HTML Web Standards Concept and syntax Elements (tags)
Lecture 2 - HTML and CSS Review SFDV3011 – Advanced Web Development 1.
Web sites Design: Cascading Style Sheet (CSS) (Cont’d) Dimensions and Position of Elements –Width and Height Space –Table Cell Padding –Left and Top Position.
Lesson 03 // Cascading Style Sheets. CSS Stands for Cascading Style Sheets. We’ll be using a combination of Html and CSS to create websites. CSS is a.
Session I Chapter 1 - Introduction to Web Development
Daveandal.net Cascading Style Sheets 101 “How I learnt to love CSS and found my inner designer”
Svetlin Nakov Telerik Corporation
INTRODUCTION TO CSS. TOPICS TO BE DISCUSSED……….  Introduction Introduction  Features of CSS Features of CSS  Creating Style Sheet Creating Style Sheet.
Week 8 – Part 2 Page Layout Basics Key Concepts 1.
Copyright © Terry Felke-Morris WEB DEVELOPMENT & DESIGN FOUNDATIONS WITH HTML5 Chapter 5 Key Concepts 1 Copyright © Terry Felke-Morris.
Web Development & Design Foundations with HTML5 7th Edition
Web Technologies Lecture 2 HTML and CSS. HTML Hyper Text Markup Language – Describes web documents – Made up of nested HTML markup tags – Tags are the.
Copyright © 2003 Pearson Education, Inc. Slide 1-1 Created by Cheryl M. Hughes The Web Wizard’s Guide to XHTML by Cheryl M. Hughes.
Copyright © Osmosys O S M O S Y SO S M O S Y S D e p l o y i n g E x p e r i e n c e & E x p e r t i s e™ CSS Training.
HTML5 & CSS3 A Practical Guide. HTML5 is more than HTML5 HTML5 Spec CSS3 Spec Web Fonts JavaScript to tie it all together.
Cascading Style Sheets Primary readings Presentations Explain & review projects with class mates.
CONTROLLING Page layout
Chapter 1 Introduction to HTML, XHTML, and CSS HTML5 & CSS 7 th Edition.
HTML and Dreamweaver November 11th. Agenda Box Model Displaying and positioning elements – Padding – Margin – Float – Display – Position HTML Demo.
Cascading Style Sheet (CSS) SAMPLE IT133 Pengembangan Web.
Creating Image Based Rollovers with CSS Mike Takahashi Office of Instructional Development.
INT222 – Internet Fundamentals Week 8: Using New HTML features 1.
NAVIGATION USING HTML TO SET UP THE BASIC STRUCTURE OF A NAV BAR.
Laying out Elements with CSS
Implementing Responsive Design UNIT I.
Implementing Responsive Design
CSS and Box Model.
HTML5 Level I Session I Chapter 1 - Introduction to Web Development
Training & Development
CS3220 Web and Internet Programming CSS Basics
CS3220 Web and Internet Programming CSS Basics
Laying out Elements with CSS
Presentation transcript:

Building great standards based websites for the big wide world with ASP.NET 4 Tatham Oddie Senior Consultant Readify ASP.NET Damian Edwards Program Manager Microsoft (former ASP.NET

Determine your “done” definition up front Ours were: – XHTML compliance – WAVE test – Unit tested – Browser support: IE6, IE7, IE8, FF2, FF3, Sa3 – Non-JavaScript support Develop your own

XHTML is based on HTML 4.01 Adds XML compliance & extensibility XHTML 1.0 – Frameset – Transitional – Strict XHTML 1.1 ASP.NET is geared to serving XHTML

XHTML 1.1 is the latest & most strict However it deprecates commonly used elements & attributes – iframe – target Choose a base & switch when necessary HTML5 is backwards compatible so consider using it

ASP.NET & HTML

REACH

Browsers below the baseline need specific attention Browsers above the baseline “just work” HTML 5 XDR DOM Storage Selector API CSS 3 / extensions CSS 2.1 DOM 1.0 Level 2 PNG JavaScript XHTML 1.0, 1.1 CSS 1 HTML 4.01 HTML 3.2 Baseline IE8 Opera 9.5 Safari 3 Firefox 3 IE7 Firefox 2 IE6 Firefox 3.1 Progressive Enhancement Graceful Degradation Safari 2 Firefox 1 Chrome Safari 4 Firefox 3.6

Important to have a browser support baseline CSS layouts: load quicker, easier to maintain, best support for majority of users Progressively enhance from a standards compliant base Build non-JS functionality first, then layer JS on top

Reach

WAI – Web Accessibility Initiative – WCAG 1.0 & 2.0 WAI-ARIA WebAim.org – WAVE accessibility evaluation tool

Pop quiz… what HTML gets rendered? – Label control – Panel control – Enabled attribute Do you really need the server control?

Using multiple forms

Forms are fundamental to good websites Layout affects accessibility, stylability & maintainability Choose a consistent form layout model & stick to it

Customer Details First Name: Last Name:

Customer Details First Name: Last Name: fieldset { float: left; clear: both; } fieldset ol { list-style-type: none; margin: 0; padding: 15px; } fieldset ol li { clear: both; margin: 0 0 4px; } fieldset ol li label { display: block; width: 120px; float: left; } fieldset ol li.action { padding: px; }

Customer Details First Name: Last Name: fieldset { float: left; clear: both; } fieldset ol { list-style-type: none; margin: 0; padding: 15px; } fieldset ol li { clear: both; margin: 0 0 4px; } fieldset ol li label { display: block; width: 110px; float: left; margin-right: 10px; text-align: right; } fieldset ol li.action { padding: px; }

Customer Details First Name: Last Name: fieldset { float: left; clear: both; } fieldset ol { list-style-type: none; margin: 0; padding: 15px; } fieldset ol li { clear: both; margin: 0 0 4px; } fieldset ol li label { font-size: 0.8em; color: #444; display: block; } fieldset ol li input[type=text] { width: 200px; } fieldset ol li.action { margin-top: 10px; }

Customer Details First Name: Last Name: fieldset { float: left; clear: both; } fieldset ol { list-style-type: none; margin: 0; padding: 15px; } fieldset ol li { float: left; margin: 0 30px 0 0; } fieldset ol li label { display: block; float: left; margin-right: 10px; } fieldset ol li.action { margin: 0; }

Client Performance Use YSlow to highlight potential issues Minimize requests – Combine your CSS during build/deployment – Combine JS with ScriptManager – Use CSS sprites for background images GZIP compression

Why tests matter Types of tests – Unit test – Integration test – Functional test – Performance test

Additive Facilitates good architecture New features

Web Forms MVP

Web standards make accessibility, reach, quality & maintenance easier ASP.NET supports XHTML, but needs tweaking & developer awareness (HTML5 is coming) Determine your done criteria early & automate as much as possible Ensure quality by using testable patterns, DI, IOC & unit testing

Resources