Week 6.  Browser DOCTYPE switching What it means for you  – now is the time  CSS3 Web design for the 21 st Century.

Slides:



Advertisements
Similar presentations
HTML Basics Customizing your site using the basics of HTML.
Advertisements

Introduction to HTML & CSS
Gdes2000 Graphic Design for Internet & Multimedia An Introduction to Dreamweaver CS5 + Adding Text Overview of palettes and DW working environment. Creation.
Iframes & Images Using HTML.
Slide 1. Murach's HTML5 and CSS3, C6 Slide 2 Layout Control is a critical issue in any website/pages design. Traditionally and conveniently (but not satisfactorily)
Ideas to Layout Beginning web layout using Cascading Style Sheets (CSS). Basic ideas, practices, tools and resources for designing a tableless web site.
XHTML Basics.
Introduction to CSS.
Web Pages and Style Sheets Bert Wachsmuth. HTML versus XHTML XHTML is a stricter version of HTML: HTML + stricter rules = XHTML. XHTML Rule violations:
Intro to CSS3 Vishal Kurup. Cascading Style Sheets Developed to enable the separation of document content from document presentation Initial release in.
The future of CSS. What can CSS3 do? CSS3 is completely backwards compatible, so no need to change existing designs. Browsers will always support CSS2.
Week 3.  – now is the time.
Week 7 Web Typography. 2 Understanding Type Design Principles.
MWD1001 – Website Production Web Browsers Week 11.
Chapter 2 Introduction to HTML5 Internet & World Wide Web How to Program, 5/e Copyright © Pearson, Inc All Rights Reserved.
INF Web Design HTML5 and CSS3. HTML 5 and CSS 3 to the rescue? HTML 5 Specifically designed for web applications on all platforms HTML 5 will update.
Computer Sciences Department
Creating a Web Page HTML, FrontPage, Word, Composer.
 Using Microsoft Expression Web you can: › Create Web pages and Web sites › Set what you site will look like as you design it › Add text, images, multimedia.
TECH2018 Multimedia and the Internet More about CSS and Page Layouts.
Week 5 HTML5 and Video + Web Fonts. Video and HTML5 Until now, there has not been a standard for showing a video/movie on a web page. In the past most.
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.
HTML Essentials Frames and Frame Tags. Introduction A frame used to be an effective design tool Utilized space effectively by subdividing screen One idea:
CSS Dvijesh Bhatt.
CSS Typography, Fonts, Spacing, Borders, Backgrounds, Opacity
Chapter 7 Web Typography Principles of Web Design, 4 th Edition.
HTML5, part II – design Štěpán Developer Evangelist Microsoft, Czech Republic.
Adobe Dreamweaver CS5 Introduction Web Site Development and Adobe Dreamweaver CS5.
Neal Stublen Font Limitations  Browsers can only display the fonts installed on the device Arial, Verdana, Times, Georgia  Custom.
WRT235: Writing in Electronic Environments CSS Backgrounds, colors, fonts.
By Tuyet Le & Madhura Pitale. Seating Chart with CSS3.
INTRODUCTION TO HTML5 Styling with CSS3. Round Border Corners  You can modify any element that supports the border property and render rounded borders.
Amber Annett David Bell October 13 th, What will happen What is this business about personal web pages? Designated location of your own web page.
Web Programming: Client/Server Applications Server sends the web pages to the client. –built into Visual Studio for development purposes Client displays.
1 What is CSS?  CSS stands for Cascading Style Sheets  Styles define how to display HTML elements  Styles are normally stored in Style Sheets  Styles.
Ins & Outs of. CSS3 is Modular Can we use it now?
ITCS373: Internet Technology Week 3: Introduction to CSS Dr. Faisal Al-Qaed.
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.
Class three: CSS review, backgrounds, font formatting, the box model.
Copyright © Terry Felke-Morris WEB DEVELOPMENT & DESIGN FOUNDATIONS WITH HTML5 Chapter 4 Key Concepts 1 Copyright © Terry Felke-Morris.
 Word doc for you to download › Link at the beginning of class › 10 Questions › Answers to be added inline  Post to Sakai when completed › No resubmits.
WELCOME TO THE NEXT GENERATION OF WEB DESIGN Thomas Lewis Principal Technical Evangelist | asimplepixel.tumblr.com SESSION CODE: WEB102.
Tutorial 5 Working with Tables and Columns
Tutorial 5 Working with Tables and Columns
Doncho Minkov Telerik Web Design Course html5course.telerik.com Technical Trainer
XHTML By Trevor Adams. Topics Covered XHTML eXtensible HyperText Mark-up Language The beginning – HTML Web Standards Concept and syntax Elements (tags)
Unit I Applying Advanced Styling CSS. CSS3 can style many aspects that in the past required integration of images New features are not supported by all.
Web Site Design: Layout Fall Basic Concepts Basic Web Design Concepts – Proximity – Alignment – Repetition – Contrast
Web Foundations TUESDAY, OCTOBER 29, 2013 LECTURE 20: EMBEDDING WEB FONTS.
Svetlin Nakov Telerik Corporation
UPLOAD / DOWNLOAD april  HTML5 is just the next iteration of HTML  Previous version was technically HTML 4.01, which incorporated XHTML 1.0.
LEARN THE QUICK AND EASY WAY! VISUAL QUICKSTART GUIDE HTML and CSS 8th Edition Chapter 14: Enhancements and Effects with CSS3.
INT222 - Internet Fundamentals Shi, Yue (Sunny) Office: T2095 SENECA COLLEGE.
CSS3   
HTML5 & CSS3 A Practical Guide. HTML5 is more than HTML5 HTML5 Spec CSS3 Spec Web Fonts JavaScript to tie it all together.
Fonts. Choosing Fonts How text looks on our web pages is a major component of the overall appearance of our site. We need to choose our text fonts carefully,
Standards and Compliance. A Brief History of HTML HTML through 1991  Hypertext enabled pages but presentation was lacking HTML 
Web Design (15) CSS Opacity, Link Colours & Background Images.
PERSPECTIVES: TUTORIAL 4 CREATING PAGE LAYOUTS WITH CSS.
Internet & World Wide Web How to Program, 5/e Copyright © Pearson, Inc All Rights Reserved.
RMLL 2010 HTML 5 and CSS 3 insights Libre Software Meeting Bordeaux - wednesday 7th july 2010 Francis Draillard, "Premiers pas en CSS et XHTML" - Eyrolles.
The HTML5 logo was introduced by W3C in 2010
HTML5 Application Development Fundamentals
SEEM4570 Tutorial 3: CSS + CSS3.0
Understand basic HTML and CSS terminology, concepts, and basic operations. Objective 3.01.
Progressive Enhancement Using CSS 3
Presentation transcript:

Week 6

 Browser DOCTYPE switching What it means for you  – now is the time  CSS3 Web design for the 21 st Century

 Browser checks document for presence of DOCTYPE element  Complete strict DOCTYPE switches browser to Standards Mode  Complete transitional DOCTYPE switches browser to Almost Standards Mode  Incomplete, malformed or missing DOCTYPE switches browser to Quirks Mode

 Starting with IE 5 Mac, web browsers can display web pages in Standards Mode or Quirks Mode  Latest browser have added an Almost Standards Mode  Purpose: allow web browsers to display web pages designed with CSS practices from the non-Standards era without “breaking” them for the visitor t

 Browsers violate current CSS standards of formatting so as not break pages designed in the early 1990s  Internet Explorer 6, 7, 8 and 9 Quirks mode is basically IE 5.5 rendering mode Uses IE 5.5 Box Model  Other browsers use a variation on Almost Standards mode

 Browsers try to give the correct CSS specification as currently implement by the browser  Each browser may have different levels of implementation so Standards mode is never a single target  HTML5 calls this “no Quirks Mode”

 Firefox, Safari, Chrome, Opera (since 7.5), IE8 and IE9 have a mode that uses traditional vertical table cell sizing rather than a more rigorous CSS 2.1 implementation  Mac IE 5, Windows IE 6 and 7, Opera prior to 7.5 and Konqueror don’t have Almost Standards Mode since they never sized vertical table cells to the specification rigorously (their Standards Mode is similar to Almost Standards Mode of newer browsers)

 IE7 Mode IE8 and IE9 have a mode that is mostly a frozen copy of the mode that was the Standards mode in IE7. Other browsers do not have a mode like this, and this mode is not specified by HTML5.  IE8 Standards Mode IE9 has a mode that is mostly a frozen copy of the mode that was the Standards mode in IE8. Other browsers do not have a mode like this, and this mode is not specified by HTML5.  IE8 Almost Standards Mode IE9 has a mode that is mostly a frozen copy of the mode that was the Almost Standards mode in IE8. Other browsers do not have a mode like this, and this mode is not specified by HTML5.

 IE8 has 4 IE Rendering modes IE 5.5 quirks mode IE 7 standards mode IE 8 almost standards mode IE 8 standards mode  IE9 has 7 IE Rendering modes (the 4 above plus 3 new modes) IE 9 almost standards mode IE 9 standards mode XML mode

 Microsoft Internet Explorer 8 and 9 will use this element to switch to IE Rendering modes in addition to normal DOCTYPE switching  Normal DOCTYPE switching will be the default fall-back when there is no X-UA- Compatible header or element, Microsoft compatibility black-list or user enabled Compatibility View

CSS property allows you to embed fonts in web pages  Fonts are hosted on a web server and downloaded to the visitors computer  Must have proper license to do this  Some licenses are free  Not all fonts have a web font license Always check

@font-face { font-family: "Calibri"; src: url(" ri.ttf") format ("truetype"); } h1 { font-family: "Calibri", sans-serif; }

 Internet Explorer (all versions): EOT  Safari (3.2+): TTF / OTF  iPhone (3.1) SVG  Chrome (all versions): SVG (TTF/OTF added 25th Jan 2010)  Firefox (3.5+): TTF/OTF (.WOFF added 3.6)  Opera (10+) TTF/OTF

@font-face { font-family: 'Graublau Web'; src: url('GraublauWeb.eot?') format('eot'), url('GraublauWeb.woff') format('woff'), url('GraublauWeb.ttf') format('truetype'); } { font-family: 'Graublau Web'; src: url('GraublauWeb.eot'); src: local('☺'), url('GraublauWeb.woff') format('woff'), url('GraublauWeb.ttf') format('truetype'); }

 Fonts-SXSW/ 

 Still evolving specification  Specifications developed as modules that are separate and independent of each other  Allows for implementation by browsers when ready without waiting for other modules or for the finalized spec

 Use CSS3 for non-critical parts of the site design CriticalNon-critical BrandingInteraction UsabilityVisual Rewards AccessibilityFeedback LayoutMovement

PropertyExample border-radius.foo { border-radius: 10px; } text-shadow p { text-shadow: 1px 1px 2px #999; } box-shadow.foo { box-shadow: 1px 1px 2px #999; } opacity.foo { opacity: 0.5; /*.foo will be 50% transparent */ } Multiple background images body { background: url(image1.png) no-repeat top left, url(image2.png) repeat-x bottom left, url(image3.png) repeat-y top right; }

. foo { color: rgba(0, 0, 0, 0.75); /* black at 75% opacity */ }  Allows for opacity in text colour

 Experimental support for a CSS3 module can be supported by using vendor prefixes  e.g. :.foo { -webkit-border-radius: 10px; -moz-border-radius: 10px; border-radius: 10px; }

BrowserPrefix WebKit -webkit- Mozilla -moz- Opera -o- Konqueror -khtml- Microsoft -ms- Chrome -chrome-