PRO HTML5 PROGRAMMING POWERFUL APIS FOR RICHER INTERNET APPLICATION DEVELOPMENT.

Slides:



Advertisements
Similar presentations
Introduction to HTML5. History of HTML HTML first published HTML 2.0 HTML 3.2 HTML 4.01 XHTML 1.0 XHTML 2.0 HTML
Advertisements

Hypermedia systems Jakub Husár & Tomáš Jurík. Content XHTML 2.0 Definition Short history Differences between 1.0 and 2.0 Usage suitability Improvements.
HTML5, OVERVIEW AND NEW FEATURES PowerPoint by Mason O’Mara.
HTTP Request/Response Process 1.Enter URL ( in your browser’s address bar. 2.Your browser uses DNS to look up IP address of server.com.
HTML5 Haptics Standardization
 A markup language  Structures content on the internet  Commonly used by web browsers.
HTML 5. What is HTML5? HTML5 will be the new standard for HTML, XHTML, and the HTML DOM. The previous version of HTML came in The web has changed.
Tim Berners-Lee authors HTML in 1991, assisted by his colleagues at CERN,
HTML 5 Tutorial Chapter 1 Introduction. What is HTML5? HTML5 will be the new standard for HTML, XHTML, and the HTML DOM. The previous version of HTML.
Bartosz Kowalski Software Developer CERN. Presentation outline -HTML : introduction and history -HTML5 : -History and philosophy -New features -Structure.
Lecture 18. HTML5 and JavaScript Instructor: Jie Yang Department of Computer Science University of Massachusetts Lowell Exploring the Internet,
CS 415 N-Tier Application Development By Umair Ashraf July 16,2013 National University of Computer and Emerging Sciences Lecture # 12 HTML/ XHTML/ HTML5.
CNIT 133 Interactive Web Pags – JavaScript and AJAX Review HTML5.
Web Design Basic Concepts.
HTML 5 - First Look A Part of eTeam Knowledge Base By: Shehzad Ali 22-Sep-11.
HTML5. What is HTML5? HTML5 will be the new standard for HTML. HTML5 is the next generation of HTML. HTML5 is still a work in progress. However, the major.
Creating Web Pages with HTML
School of Computing and Information Systems CS 371 Web Application Programming HTML The language of the Web.
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.
HTML5 GAMING By Scott Benton. HTML5 New HTML Standard Previous Version of HTML, HTML 4.01, Released in 1999 Not an Official Standard Yet No Browsers Have.
HTML5 Accessibility Ted Drake, Yahoo! Accessibility Lab Slideshare.net/7mary4.
Principles of Web Design 6 th Edition Chapter 1 – HTML5.
SIG WEB January 31, 3PM. What is HTML5? What it is: Allows for better intergration of media consumption. A new open standard Provides new APIs.
Week 1.  Phillip Chee   Ext.1214 
Using Styles and Style Sheets for Design
Lesson 4: Using HTML5 Markup.  The distinguishing characteristics of HTML5 syntax  The new HTML5 sectioning elements  Adding support for HTML5 elements.
Introduction to HTML5. History of HTML HTML first published – Tim Berners-Lee HTML 2.0 HTML 3.2 HTML 4.01 XHTML 1.0 XHTML 2.0.
Copyright © Terry Felke-Morris WEB DEVELOPMENT & DESIGN FOUNDATIONS WITH HTML5 7 TH EDITION Chapter 2 Key Concepts 1 Copyright © Terry Felke-Morris.
HTML Advanced: HTML 5. Introduction to HTML 5 These slides are based on source material found at the w3schools.com website.
Presented By: Mahmoud Ghoz Internet Explorer 9 and HTML5 for Developers.
Copyright 2007, Information Builders. Slide 1 Understanding Basic HTML Amanda Regan Technical Director June, 2008.
Congratulations! You are part of a global community of thousands of web developers who attend Web Camps to keep their web development skills up-to-date.
HTML Structure & syntax. Introduction This presentation introduces the following: Doctype declaration HTML Tags, Elements and Attributes Sections of a.
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.
ECA 228 Internet/Intranet Design I Intro to Markup.
Session: 1. © Aptech Ltd. 2Introduction to the Web / Session 1  Explain the evolution of HTML  Explain the page structure used by HTML  List the drawbacks.
MTA EXAM HTML5 Application Development Fundamentals.
UPLOAD / DOWNLOAD april  HTML5 is just the next iteration of HTML  Previous version was technically HTML 4.01, which incorporated XHTML 1.0.
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.
HTML 5 The Future of Web Development. What is HTML5? “HTML5 is a specification of how the web’s core language, HTML, should be formatted and utilized.
Objective: To describe the evolution of the Internet and the Web. Explain the need for web standards. Describe universal design. Identify benefits of accessible.
Introduction of Presented by Neetu sharma MCA (8 th trim)
Web Design Principles 5 th Edition Chapter 3 Writing HTML for the Modern Web.
CSCI 3100 Tutorial 2 Web Development Tools 1 HTML 5 & CSS 3 1.
Web Programming HTML-5. HTML5 Overview HTML5 is the next major revision of the HTML standard superseding HTML 4.01, XHTML 1.0, and XHTML 1.1. HTML5 is.
MOBAS Tutorial 2010 Tutorial on Mobile Applications & Systems 권오현, 김기환.
Blended HTML and CSS Fundamentals 3 rd EDITION Tutorial 1 Using HTML to Create Web Pages.
Agenda * What is HTML5 -- Its history and motivation * HTML/XHTML as Human / Machine Readable Format * HTML and its related technologies * Brief summary.
XHTML. What Is XHTML? XHTML stands for EXtensible HyperText Markup Language XHTML is almost identical to HTML XHTML is stricter than HTML XHTML is HTML.
Chapter 2 Markup Language By : Madam Hazwani binti Rahmat
The HTML5 logo was introduced by W3C in 2010
HTML 5.
Web Standards Web Design – Sec 2-3
Introduction to HTML5.
PPT By:Gaurav Jaiswal Singsys Pte. Ltd.
HTML 5 Tutorial Chapter 1 Introduction.
Lecture 8. HTML. Author: Aleksey Semyonov
Introduction to HTML5.
Why use Web Standards?.
HTML 5 Training HTML 5 SYMANTICS [Notes to trainer:
Ground to Roof HTML/HTML5
Introduction to HTML5.
CIS 133 mashup Javascript, jQuery and XML
Creating a Basic Web Page using HTML
Introduction to HTML5.
Web Programming and Design
HTML CS 4640 Programming Languages for Web Applications
How to debug a website using IE F12 tools
Presentation transcript:

PRO HTML5 PROGRAMMING POWERFUL APIS FOR RICHER INTERNET APPLICATION DEVELOPMENT

CHAP 1. OVERVIEW OF HTML5

 HTML was first published as an Internet draft in  Version 2.0, 3.2, 4.0 occurred in the same year, and finally 4.01 in  HTML5 specification was created by Web Hypertext Application Working Group (WHATWG) in  W3C became involved with HTML again in 2006 and published first working draft in 2008, and XHTML 2 stopped in HISTORY OF HTML5

 HTML5 spec. is a working draft today (not final).  2012: candidate recommendation. (HTML5 will be complete )  2022: proposed recommendation.  IE6 does not support many of new features.  Microsoft promises to design that browser with increased HTML5 support. MYTH OF 2022

 Web Hypertext Application Technology Working Group (WHATWG)  Founded in 2004  Vendors: Apple, Mozilla, Google, Opera  World Wide Web Consortium (W3C)  Internet Engineering Task Force (IETF)  HTML5 defines a new WebSocket API that relies on a new WebSocket protocol. WHO IS DEVELOPING HTML5

 Compatibility  Utility - Separation of Presentation and Content  Most of presentational features of earlier versions of HTML are no longer supported (but will still work!).  Shortages of older versions of HTML  Poor accessibility  Unnecessary complexity (Harder to read code)  Large document size – slower loading pages  Interoperability - Simplify wherever possible  Native browser ability instead of complex JavaScript code  A new, simplified character set declaration  Powerful yet simple HTML5 APIs  Universal access:  Accessibility  Media independence  Support for all world languages: Ex: supports Ruby annotation CHARACTERISTICS OF HTML5

 Present problem of plugin  Cannot always be installed  Can be disabled or blocked (Ex: iPad does not ship with a Flash plugin)  Often blocked in controlled corporate environments  Users disable because of unwelcome advertising  A separate attack vector  Difficult to integrate with the rest of HTML document A PLUGIN – FREE PARADIGM

 Canvas (2D or 3D)  Channel messaging  Cross-document messaging  Geolocation  MathML  Microdata  Server-Sent Event  Scalable Vector Graphics (SVG)  WebSocket API and protocol  Web origin concept  Web Storage  Web SQL database  Web Workers  XMLHTTPRequest Level 2 HTML5 FEATURES

 DOCTYPE   Character set  NEW DOCTYE AND CHARACTER SET

Content TypeDescription EmbeddedImports other resources into the document, EX: audio, video, canvas, and iframe FlowElements used in the body of documents and applications, EX: form, h1, and small HeadingSection headers, EX: h1, h2, and hgroup InteractiveContent that users interact with, EX: audio or video controls, button, and textarea MetadataCommonly found in the head section— Set up the presentation or behavior of the rest of the document, EX: script, style, and title PhrasingText and text markup elements, EX: mark, kbd, sub, and sup SectioningElements that define sections in the document, EX: article, aside, and title NEW AND DEPRECATED ELEMENTS Deprecated Elements: Elements perform inline styling in favor of using CSS, Ex: big, center, font

 The sectioning content type is useful for search engine.  New sectioning HTML5 elements SEMANTIC MARKUP Sectioning Element Description headerHeader content (for a page or a section of the page) footerFooter content (for a page or a section of the page) sectionA section in a web page articleIndependent article content asideRelated content or pull quotes navNavigational aids

  Define the relationship between a document and an external resource  Placed at  Attributes HTML5 TAG - AttributeValueDescription hrefURLSpecifies the location of the linked document relAlternate/author/help/icon/licenc e/next/pingback/prefetch/prev/se arch/sidebar/stylesheet/tag Specifies the relationship between the current document and the linked document  Example:

 webkit and moz mean they are not W3C standard  webkit  Supported by Safari and Chrome  -webkit-box-shadow: 2px 2px 20px #888; (Shadow effect)  -webkit-transform: rotate(-45deg); (Rotate effect)  -webkit-transform: scale(0.5); (Change size)  -webkit-border-radius: 10px;  moz  Supported by Mozilla  -moz-box-shadow: 2px 2px 20px #888; (Shadow effect)  -moz-transform: rotate(-45deg); (Rotate effect)  -moz-border-radius: 10px;  W3C  border-radius: 10px; CSS3 – WEBKIT/MOZ

AN HTML5 PAGE WITH ALL THE NEW SEMANTIC MARKUP ELEMENTS Excerise: Listing 1-1, 1-2

SIMPLIFYING SECTION – DOM SELECTORS API FunctionExample getElementById() document.getElementById("foo"); getElementsByName() document.getElementsByName("foo"); getElementsByTagName() document.getElementsByTagName("input"); FunctionExampleResult querySelector()document.querySelector("inp ut.error") Return the first input field with a style class of “error” querySelectorAll()document.querySelectorAll("# results td") Return any table cells inside the element with id results HTML4 HTML5

EXCERISE Use querySelector() to find table cells which mouse hovered Use domNode.onclick to set onClick events Use domNode.innerHTML to set text in the tags Excerise: Listing 1-3

 JSON  A relatively new and increasing popular way to represent data  Data is represented as objects  In older browsers, a JavaScript library ( is necessary. Parsing and serializing are not always fast enough  Newer browsers have a native implementation of JSON  The canonical API for JSON has two functions, parse() and stringify()  DOM Level 3  DOM Levels are the versions of the specification for defining how the Document Object Model should work  Most browsers support standard APIs for events and elements, Internet Explorer differs.  IE9 will support DOM level 2 and 3 features. WINDOWS.JSON AND DOM LEVEL 3