HTML5 And CSS3

2y ago
96 Views
3 Downloads
1.08 MB
39 Pages
Last View : 1m ago
Last Download : 3m ago
Upload by : Jewel Payne
Transcription

HTML5 and CSS3

Web Browser Fetches/displays documents from web servers Mosaic 1993 or There are standards, but wide variation in features

Desktop Browser Market Sharehttp://www.w3schools.com/browsers/browsers stats.asp

HTML5: New Features Semantic elements and MarkupsAudio and video supportCanvasDrag and dropLocal data storageOffline applicationsServer eventsGeolocation

Semantic elementsA semantic element clearly describes itsmeaning to both the browser and the developer.Examples of non-semantic elements: div and span - Tells nothing about its content.Examples of semantic elements: form , table , and img - Clearly defines its content.

Semantic elements: some other header section aside figcaption details mark nav article figure footer summary time

Semantic Element example & -1

Audio & VideoAudio audio controls source src "horse.ogg" type "audio/ogg" source src "horse.mp3" type "audio/mpeg" Your browser does not support the audio element. /audio Video video width "320" height "240" controls source src "movie.mp4" type "video/mp4" source src "movie.ogg" type "video/ogg" Your browser does not support the video tag. /video Output: http://jsfiddle.net/mashiyat/g4hMX/

Canvas canvas element is used to draw graphics, onthe fly, via scripting (usually JavaScript). only a container for graphics. You must use a scriptto actually draw the graphics.

Drag and dropDrag and drop means when you "grab" an objectand drag it to a different location. In HTML5, drag and drop is part of the standard,and any element can be draggable.Demo: http://slides.html5rocks.com/#native-drag-and-drop

Web Storagefor local data storage & Offline appUsing HTML5 we can store data locally within theuser's browser. Earlier, this was done with cookies. However, WebStorage is more secure and faster. The data is not included with every server request,but used ONLY when asked for. It is also possible to storelarge amounts of data, without affecting the website'sperformance. The data is stored in name/value pairs, and a web pagecan only access data stored by itself. Unlike cookies, the storage limit is far larger (at least5MB) and information is never transferred.Demo: http://slides.html5rocks.com/#web-storage

Web Storagefor local data storage & Offline appUse web store wisely!Before using web storage, check browser support forlocalStorage and sessionStorage:if(typeof(Storage) ! "undefined") {// Code for localStorage/sessionStorage.} else {// Sorry! No Web Storage support.}

Server eventsA server-sent event is when a web page automatically getsupdates from a server.Before, the web page would have to ask if any updateswere available. With server-sent events, the updates comeautomatically.Examples: Facebook/Twitter updates, stock price updates,news feeds, sport results, etc.

GeolocationThe HTML5 Geolocation API is used to getthe geographical position of a user.Since this can compromise user privacy,the position is not available unless the userapproves it.Demo: http://slides.html5rocks.com/#geolocation

CSS3http://www.w3schools.com/css/css3 intro.asphttp://slides.html5rocks.com/#css3-title

CSS3 (Vendor prefix)The CSS browser prefixes are:Android: -webkitChrome: -webkitFirefox: -mozInternet Explorer: -msiOS: -webkitOpera: -oSafari: -webkit-

CSS3 (Vendor prefix is temporary)Just a few years ago, to set a roundedcorner on a box you had to write:-moz-border-radius: 10px 5px;-webkit-border-top-left-radius: 10px;-webkit-border-top-right-radius: 5px;-webkit-border-bottom-right-radius: 10px;-webkit-border-bottom-left-radius: 5px;border-radius: 10px 5px;But now you really only need thestandards version:border-radius: 10px 5px;

References1. http://www.w3schools.com/2. http://slides.html5rocks.com/3. http://www.cs.toronto.edu/ delara/courses/csc309/4. http://uoft.fabspaces.cc/5. http://jquery.com/6. fixes.htm

Social Coding

The Cathedral and the BazaarEric S. RaymondCathedral model:Source code is available with eachsoftware release, but code developedbetween releases is restricted to the codedevelopers.

The Cathedral and the BazaarEric S. RaymondBazaar model:Code is developed over the Internet inview of the public.

The Bazaar Release early. Release often More transparent, users as codevelopers Greater visibility of bugs, lots of testers Recognize good ideas (from others) More scrutiny, and experimentationpossible.

Development is Collaborative

Development is Collaborative

Development is Collaborative

Development is Collaborative

Version Control System (VCS)CVS, SVN, Git, Mercurial, Dropbox(!), etc.

Version Control System (VCS)Local Version Control saves changes to files in adatabase.Centralized Version Control saves changes toa shared serverDistributed Version Control allows for easiersharing of files then LVC and also eliminatesproblems that could occur if access to the serveris lost under a CVC system.

Distributed Version ControlDVC clients have a complete backup of the fileson their computer. If the server is lost the clientjust waits to regain contact and then uploadschanges.-- Each client has a complete history of allchanges stored locally.-- The client can also access all changes madeto the files historically with a simple command.-- Git monitors all file change, constantly.

DVCDistributed systems like Mercurial andGit are newer and are graduallyreplacing centralized systems like CVSand Subversion.

Git Created in 2005 Designed for speed Support for many parallel branches Distributed, promotes local work Able to handle large projects

Git (Create a new commit- com/mashiyat/CSC309.gitgitpush- ‐uoriginmaster

Git (pushing existing shiyat/CSC309.gitgitpush- ‐uoriginhotfix

File status lifecycle in Git

GitForfreeprivaterepohttps://bitbucket.org/

Social Coding (Real Time)Forrealtimecollaborationhttps://c9.io/

Task Tracking e/issuesOther Free alternativehttps://Freedcamp.com

Organizing your tasks and thoughtsTrello v aaDf1RqeLfo#t 15Online Task Managerhttps://www.online-task-manager.com/-- Trello is weak in tracking timeestimations.

Referenceshttp://en.wikipedia.org/wiki/The Cathedral and the l/

Web Storage for local data storage & Offline app Using HTML5 we can store data locally within the user's browser. Earlier, this was done with

Related Documents:

[HTML5 강좌 및 동영상 목록] [HTML5 동상 강좌] 1. HTML 5 개요 [HTML5 동상 강좌] 2. HTML4 vs HTML5 (1) [HTML5 동상 강좌] 3. HTML4 vs HTML5 (2) [HTML5 동상 강좌] 4. Sementic Element (1) [HTML5 동상 강좌] 5. Sementic Element (2) [HTML5 동상 강좌] 6. Strong Web Form [HTML5 동상 강좌] 7. Rich Text Edit API [HTML5 동상 강좌] 8. Video Element [HTML5 동상 강좌] 9.

Beginning HTML5 and CSS3 Beginning HTML5 and CSS3 is your practical, step-by-step introduction to the fea-tures and elements of HTML5. This book will help you take advantage of all the leaner, cleaner, and more efficient code offered by HTML5 and show you how to work with the new structural integrity and styling flexibility of CSS3—which .

Recommends which HTML5 and CSS3 features are ready to use and which fallback to use when appropriate. Wikipedia "Comparison of Layout Engines (HTML5)" Charts show HTML5 support by the major browser lay-out engines. HTML5 Readiness An interesting visualization of growing support for HTML5 and CSS3 from 2008 to present. Validating HTML5 Documents

HTML5 Canvas Sergio Luján Mora . 2 HTML5 & CSS3 Content Canvas Canvas reference HTML5 & CSS3 CANVAS . 3 HTML5 & CSS3 Canvas The canvas element provides an API for two-dimensional drawing—lines, fills, images, text, and so on The canvas is only a container for graphics, a

Formation HTML5 / CSS3 l’informatique. 2 1 - Introduction Pourquoi HTML5 et SS3 ? ompatiilité ave les navigateurs Prinipales différen es entre HTML5 et ses prédéesseurs Installation logiielle 2 - Les bases du HTML5/CSS3 Délaration de type de doument (DTD) Syntaxes HTML et XHTML Jeux de aratères

Module 0 : Adoptez des bases solides HTML5 et CSS3 15 cours en vidéos pour apprendre toutes les bases des langages HTML5 et CSS3 : Chapitre 1. Comment créer une page HTML5 Chapitre 2. La technique pour mettre en forme rapidem

HTML5 things we can use today CSS3 purpose CSS3 things we can use today. New syntax: better semantics. HTML5 doctype !DOCTYPE html Typical blog structure. HTML5 blog structure. Unambiguous & machine readable time datetime "2010-06-27" 27 June 2010 /time time datetime "2010-06-27"

Introducing HTML5 Games Discovering new features in HTML5 Offline applications . Discovering new features in CSS3 CSS3 animation . The benefit of creating HTML5 games Breaking the boundary of usual browser games . What others are playing with HTML5 Coca-Cola's Ahh campaign . Asteroid-styled bookmarklet .