HTML5. Language of the Modern Web. By: Mayur Agrawal. Copyright TIBCO Software Inc.

Similar documents
What is HTML5? The previous version of HTML came in The web has changed a lot since then.

16. HTML5, HTML Graphics, & HTML Media 웹프로그래밍 2016 년 1 학기 충남대학교컴퓨터공학과

Techno Expert Solutions An institute for specialized studies!

Introduction to HTML5

HTML5 - INTERVIEW QUESTIONS

Fundamentals of Website Development

CITS3403 Agile Web Development Semester 1, 2016

Chapter 13 HTML5 Functions

HTML5 MOCK TEST HTML5 MOCK TEST I

Everything you need to know to get you started. By Kevin DeRudder

footer, header, nav, section. search. ! Better Accessibility.! Cleaner Code. ! Smarter Storage.! Better Interactions.

CMPT 165 Notes on HTML5

Introduction to HTML5

HTML Forms. CITS3403 Agile Web Development. 2018, Semester 1

MODULE 2 HTML 5 FUNDAMENTALS. HyperText. > Douglas Engelbart ( )

HTML5: MULTIMEDIA. Multimedia. Multimedia Formats. Common Video Formats

HTML5 and CSS3: New Markup & Styles for the Emerging Web. Jason Clark Head of Digital Access & Web Services Montana State University Library

CPET 499/ITC 250 Web Systems. Topics

Introduction to HTML 5. Brad Neuberg Developer Programs, Google

/

HTML 5: Fact and Fiction Nathaniel T. Schutta

Top Trends in elearning. September 15 & 16, Is HTML5 Ready for elearning? Debbie Richards, Creative Interactive Ideas

Index LICENSED PRODUCT NOT FOR RESALE

8/19/2018. Web Development & Design Foundations with HTML5. Learning Objectives (1 of 2) Learning Objectives (2 of 2) Helper Applications & Plug-Ins

WA1925 Enterprise Web Development using HTML5 EVALUATION ONLY

Qiufeng Zhu Advanced User Interface Spring 2017

HTML5. HTML5 Introduction. Form Input Types. Semantic Elements. Form Attributes. Form Elements. Month Number Range Search Tel Url Time Week

Developer's HTML5. Cookbook. AAddison-Wesley. Chuck Hudson. Tom Leadbetter. Upper Saddle River, NJ Boston Indianapolis San Francisco

COPYRIGHTED MATERIAL. Defining HTML5. Lesson 1

New Media Production HTML5

WebKit ; FOR : DUMMIES. by Chris Minnick WILEY. John Wiley & Sons, Inc.

HTML CS 4640 Programming Languages for Web Applications

QUICK REFERENCE GUIDE

Varargs Training & Software Development Centre Private Limited, Module: HTML5, CSS3 & JavaScript

Computer Systems Department, University of Castilla-La Mancha Albacete, Spain

HTML5 are we there yet? Design for web content

HTML 5 and CSS 3, Illustrated Complete. Unit K: Incorporating Video and Audio

B. V. Patel Institute of Business Management, Computer and Information Technology, UTU. B. C. A (3 rd Semester) Teaching Schedule

Markup Language. Made up of elements Elements create a document tree

introduction to XHTML

Learn HTML5 in 5 Minutes!

HTML5 and Mobile: New Markup & Styles for the Mobile Web. Jason Clark Head of Digital Access & Web Services Montana State University Libraries

HTML5 for Java Developers. Sang Shin Founder and Chief Instructor JPassion.com

Chapter 1. Introducing HTML5. Objectives: Learn what HTML5 is about. Discover what HTML5 really is

Designing Reusable Web Components

Web System and Technologies (Objective + Subjective)

NEW WEBMASTER HTML & CSS FOR BEGINNERS COURSE SYNOPSIS

Chapter 1 Getting Started with HTML 5 1. Chapter 2 Introduction to New Elements in HTML 5 21

CS144 Notes: Web Standards

Scripting for Multimedia LECTURE 1: INTRODUCING HTML5

Lecture 2: Tools & Concepts

Visual HTML5. Human Information Interaction for Knowledge Extraction, Interaction, Utilization, Decision making HI-I-KEIUD

IGME-330. Rich Media Web Application Development I Week 1

COURSE OUTLINE MOC 20480: PROGRAMMING IN HTML5 WITH JAVASCRIPT AND CSS3

HTML Overview. With an emphasis on XHTML

HTML5 HTML & Fut ure o Web M edi dia Streami a est Work h op, ov 2010 Michael Dale Zohar Babin eve oper o Dev R l e t a i tions & C

HTML5, CSS3, JQUERY SYLLABUS

Technologies Web Côté client

INTRODUCTION TO HTML5! HTML5 Page Structure!

Webgurukul Web Designing Course

Next... Next... Handling the past What s next - standards and browsers What s next - applications and technology

20480C: Programming in HTML5 with JavaScript and CSS3. Course Code: 20480C; Duration: 5 days; Instructor-led. JavaScript code.

Lesson 5: Multimedia on the Web

Media, Tables and Links. Kanida Sinmai

Why HTML5? Why not XHTML2? Learning from history how to drive the future of the Web

CompuScholar, Inc. Alignment to Utah's Web Development I Standards

Index COPYRIGHTED MATERIAL. Symbols and Numerics. </a> element, 25

CHAPTER 2 MARKUP LANGUAGES: XHTML 1.0

Lesson 5: Multimedia on the Web

Certified HTML5 Developer VS-1029

HTML5 a clear & present danger

HTML5 in Action ROB CROWTHER JOE LENNON ASH BLUE GREG WANISH MANNING SHELTER ISLAND

PHP,HTML5, CSS3, JQUERY SYLLABUS

LECTURE 3. Web-Technology

UI Course HTML: (Html, CSS, JavaScript, JQuery, Bootstrap, AngularJS) Introduction. The World Wide Web (WWW) and history of HTML

PIC 40A. Lecture 4b: New elements in HTML5. Copyright 2011 Jukka Virtanen UCLA 1 04/09/14

Multimedia im Netz Online Multimedia Winter semester 2015/16

What is XHTML? XHTML is the language used to create and organize a web page:

HTML5 INTRODUCTION & SEMANTICS

Index. B2G. See Boot to Gecko (B2G) project Banner landmark, 32 Baranovskiy, D., 137 Boot to Gecko (B2G) project, 155 Browser vendors, 6, 12

Web Designing Course

COURSE 20480B: PROGRAMMING IN HTML5 WITH JAVASCRIPT AND CSS3

Static Webpage Development

Programming in HTML5 with JavaScript and CSS3

('cre Learning that works for Utah STRANDS AND STANDARDS WEB DEVELOPMENT 1

HTML is a mark-up language, in that it specifies the roles the different parts of the document are to play.

Bridges To Computing

Publishing Technology 101 A Journal Publishing Primer. Mike Hepp Director, Technology Strategy Dartmouth Journal Services

IDM 221. Web Design I. IDM 221: Web Authoring I 1

Basics of Web Technologies

WHAT S ALL THE FUSS ABOUT HTML5? Mark DuBois Nov. 12, 2010

Chapter 10: Understanding the Standards

HTML5 Evolution and Development. Matt Spencer UI & Browser Marketing Manager

Course 20480: Programming in HTML5 with JavaScript and CSS3

Webgurukul Web Development Course

Wireframe :: tistory wireframe tistory.

HTML5 for Publishers. An Introduction. Nellie McKesson Digital Development Manager, O Reilly Media, Inc. Delhi, India, 30/11/2013

Semantic Web Lecture Part 1. Prof. Do van Thanh

Design Project. i385f Special Topics in Information Architecture Instructor: Don Turnbull. Elias Tzoc

for Beginners COPYRIGHT NATIONAL SEMINARS TRAINING. ALL RIGHTS RESERVED.

Transcription:

HTML5 Language of the Modern Web By: Mayur Agrawal Copyright 2000-2015 TIBCO Software Inc.

Content Exploring prior standards Why HTML5? HTML5 vs HTML4 Key Features of HTML5 HTML5 and Technical Writing

Hypertext Markup Language (HTML) The language for building web pages.

Exploring Prior Standards Copyright 2000-2015 TIBCO Software Inc.

HTML Timeline Copyright 2000-2015 TIBCO Software Inc.

HTML Timeline HTML 2.0 Formalized the syntax and many of the rules that were already implemented.

HTML Timeline HTML 3.2 Largely ignored by browser manufacturers who began to implement their own design

HTML Timeline HTML 4.0 Standardized the syntax and structure of HTML became the standard for web authoring.

HTML Timeline XHTML 1.0 Designed to move HTML towards XML DTDs often caused it render as HTML

HTML Timeline The growth of the web High bandwidth connection Increased multimedia AJAX and Flash XHTML 2.0 work begins

HTML Timeline The rise of HTML5 2004: WHATWG begins work on XTML2.0 alternative 2007: W3C adopts WHATWG s work and renames to HTML5 2009: W3C does not renew XHTML 2.0 charter 2010: Driven by Apple and Google, HTML5 popularity grows 2014: W3C charts final recommendation

History is Boring Copyright 2000-2015 TIBCO Software Inc.

Current Browsers HTML5 Features Support 396 525 402 467 HTML5 Features Support (Total: 555) 526 0 200 400 600 Source: www.html5test.com

Why HTML5? Copyright 2000-2015 TIBCO Software Inc.

HTML5 is an Evolution, Not a Revolution XHTML 2.0 HTML 3.2 HTML 4.0 HTML5

Error Handling Previous version left it to user agent XHTML 2.0 draconian error handling Page stop rendering if error HTML5 features detailed algorithms for parsing errors

New Features New semantic elements and attributes Built-in APIs to assist in building web applications Added support for audio and video HTML5 reduces the need for plug-ins

HTML5 Specification is Much Larger HTML 4 XHTML 1.0 DOM level2 HTML5

DOCTYPE Simplified The DOCTYPE declaration defines the document type to be HTML Prior DOCTYPEs <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN "http://www.w3.org/tr/html4/strict.dtd"> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/tr/html4/loose.dtd"> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" "http://www.w3.org/tr/html4/frameset.dtd"> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/tr/xhtml1/dtd/xhtml1-strict.dtd"> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/tr/xhtml1/dtd/xhtml1-transitional.dtd">

DOCTYPE Simplified The DOCTYPE declaration defines the document type to be HTML HTML5 <!DOCTYPE HTML>

HTML5 Character Encoding To display an HTML page correctly, a web browser must know the character set (character encoding) to use. HTML 4 <meta http-equiv="content-type" content="text/html;charset=utf-8" />

HTML5 Character Encoding To display an HTML page correctly, a web browser must know the character set (character encoding) to use. HTML5 <meta charset= UTF-8" />

HTML5 New Elements Semantic Media article, aside, bdi, details, dialog, figcaption, figure, footer, header, main, mark, menuitem, meter, nav, progress, rp, rt, ruby, section, summary, time, wbr audio, embed, source, track, video Form datalist, keygen, output Graphics canvas, svg

Forms in HTML5 Web Forms 2.0 specification is integrated into HTML5 Date pickers, color pickers, numeric stepper controls added Input field types now include email, search, and url PUT and DELETE methods are now supported

Integrated APIs Offline Apps Editable Drag & Drop History

Associated APIs Geolocation Messaging

Key Features of HTML5 Copyright 2000-2015 TIBCO Software Inc.

Key Features Audio and Video

Video Prior Standards Online video played through 3 rd party plugin Flash was the industry standard for deploying online video Current Standards HTML5 video support provide another option

Benefits of Native Video Support Native video support means the elimination of 3 rd party plugin dependencies and cross-browser deployment scripts. <video src= myvideo.mp4 width= 320 height= 240 ></video>

Video Example <!DOCTYPE html> <html> <body> <video width="400"> <source src="mov_bbb.mp4" type="video/mp4"> <source src="mov_bbb.ogg" type="video/ogg"> Your browser does not support HTML5 video. </video> <p> Video courtesy of <a href="http://www.bigbuckbunny.org/" target="_blank">big Buck Bunny</a>. </p> </body> </html>

Video Example <!DOCTYPE html> <html> <body> <video width="400 controls> <source src="mov_bbb.mp4" type="video/mp4"> <source src="mov_bbb.ogg" type="video/ogg"> Your browser does not support HTML5 video. </video> <p> Video courtesy of <a href="http://www.bigbuckbunny.org/" target="_blank">big Buck Bunny</a>. </p> </body> </html>

Current HTML5 Video Issues Video codec is the compression software for digital videos Adoption is being slowed by browser codec support Current specification does not declare a standard video codec Unclear nature of patent and licensing is affecting browser support

Video Codecs H.264 (MP4) OGG Theora (Ogg) VP8 (WebM) Source: www.w3schools.com

Native YouTube Support No hassle of video conversion Supported on all browser type with HMTL5 support <iframe width="420" height="315" src="http://www.youtube.com/embed/xgsy3_czz8k?autoplay=1"> </iframe>

Native YouTube Support <!DOCTYPE html> <html> <body> <iframe width="420" height="345" src="https://www.youtube.com/embed/ye7vzlltp-4"> </iframe> </body> </html>

Audio Prior Standards Online audio played through 3 rd party plugin Flash was the industry standard for deploying online audio Current Standards HTML5 audio support provide another option

Benefits of Native Audio Support Native audio support means the elimination of 3 rd party plugin dependencies and cross-browser deployment scripts. <audio src= myaudio.mp3 ></audio>

Audio Example <!DOCTYPE html> <html> <body> <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> </body> </html>

Audio Codecs MP3 Wav Ogg Source: www.w3schools.com

Key Features Canvas Audio and Video

Canvas Container for graphics and uses script to draw the graphics The Canvas 2D API is used to draw within the canvas element Can draw colorful text with or without animation Can be animated as well as interactive Suited for graphic intensive games

Defining a Canvas Element <canvas id="mycanvas" width= 600" height= 695"> Your browser does not support canvas. Please upgrade to the latest version of Chrome, Firefox, or Safari. </canvas>

Defining a Canvas Element <canvas id="mycanvas" width= 600" height= 695"> Your browser does not support canvas. Please upgrade to the latest version of Chrome, Firefox, or Safari. </canvas> Sample drawing methods: beginpath(), fillrect(), fillstyle(), moveto(), lineto(), closepath()

Canvas Example <canvas id="myplot" width= 600" height= 600"> Placeholder content </canvas> 0 0 600 <script> var c = document.getelementbyid("myplot"); var ctx = c.getcontext("2d"); ctx.moveto(0,0); ctx.lineto(300,300); ctx.stroke(); </script> 300, 300 600

Canvas Example <canvas id="myplot" width= 600" height= 600 > Placeholder content </canvas> <script> var c = document.getelementbyid("myplot"); var ctx = c.getcontext("2d"); ctx.moveto(0,0); ctx.lineto(300,300); ctx.stroke(); </script>

Canvas Example 3D Autumn Demo using WebGL Canvas Video Blowup Demo Burnin Rubber Game

Key Features Offline Apps Canvas Audio and Video

Offline Web Application The web application is cached, and accessible without an internet connection Creates Application cache Uses cache manifest file to identify resources to cache or not cache

How it Works No Application Cached? Yes Load from Server

Advantages Offline browsing Speed Reduced server load

How to Cache A page is cached if it had manifest file specified in it or if it is directly mentioned in the manifest file

Specify Manifest File <!DOCTYPE HTML> <html manifest="demo.appcache"> <body> The content of the document... </body> </html>

In the Manifest File CACHE MANIFEST # 2012-02-21 v1.0.0 CACHE: /theme.css /logo.gif /main.js NETWORK: login.asp Explicit Section Files to be cached Online Whitelist Section Files to be fetched online FALLBACK: /html/ /offline.html Fallback Section - Fallback files if a file is inaccessible

Point to be Noted Browser shows the cached page even if the file is updated on server To update the cache, update the manifest file

Key Features Offline Apps Drag and Drop API Canvas Audio and Video

Drag and Drop API Grab an object and move it to different location HTML5 specification native API

How it Works 1. Define an element as draggable 2. Define a drop target for it ondragover ondrop draggable= true 3. Control interactions through the drag and drop API

Key Features Offline Apps Drag and Drop API Canvas Geolocation API Audio and Video

Geolocation API Allows to build location-aware applications Lets the user agent handle discovery More accurate and flexible than prior methods like IP lookup Geolocation interactions are opt-in Can display position on Google maps using Google Maps API

Using Geolocation navigator.geolocation global navigator object getcurrentposition() single-shot method to return location data watchposition() tracks location data over time

Using Geolocation timestamp contains the time stamp of the data call coords object that contains the geolocation data using the following: latitude longitude accuracy altitude altitudeaccuracy heading speed

Geolocation Example <!DOCTYPE html> <html> <body> <p>click the button to get your coordinates.</p> <button onclick="getlocation()">try It</button> <p id="demo"></p> <script> var x = document.getelementbyid("demo"); function getlocation() { if (navigator.geolocation) { navigator.geolocation.getcurrentposition(showposition); } else { x.innerhtml = "Geolocation is not supported by this browser."; } } function showposition(position) { x.innerhtml = "Latitude: " + position.coords.latitude + "<br>longitude: " + position.coords.longitude; } </script> </body> </html>

Key Features Offline Apps Drag and Drop API Canvas Geolocation API Audio and Video Responsive Web Design

Responsive Web Design The web page looks good and easy to use, regardless of the device Uses CSS and HTML to resize, hide, shrink, enlarge, or move the content HTML5 provides native support for responsive web design

Responsive Web Design Copyright 2000-2015 TIBCO Software Inc.

Responsive Web Design Copyright 2000-2015 TIBCO Software Inc.

Responsive Web Design Copyright 2000-2015 TIBCO Software Inc.

Responsive Web Design Copyright 2000-2015 TIBCO Software Inc.

Key Features Offline Apps Drag and Drop API Canvas Geolocation API Audio and Video Responsive Web Design

HTML5 and Technical Writing Copyright 2000-2015 TIBCO Software Inc.

Help Evolution Copyright 2000-2015 TIBCO Software Inc.

Why Multimedia Content is Good? Copyright 2000-2015 TIBCO Software Inc.

Help on All Devices Copyright 2000-2015 TIBCO Software Inc.

Help on All Devices Copyright 2000-2015 TIBCO Software Inc.

More Searchable Content Copyright 2000-2015 TIBCO Software Inc.

More Searchable Content Copyright 2000-2015 TIBCO Software Inc.

The Savior Copyright 2000-2015 TIBCO Software Inc.

Thank you! Mayur Agrawal magrawal@tibco.com +919158992284 Copyright 2000-2015 TIBCO Software Inc.

Thank you! Mayur Agrawal magrawal@tibco.com +919158992284 Copyright 2000-2015 TIBCO Software Inc.