269200 Web Programming Language Week 13 Ken Cosh HTML 5.

Slides:



Advertisements
Similar presentations
Bring Life to Your Web Pages with JavaScript and HTML5 Part 2 Ole Ildsgaard Hougaard -
Advertisements

1 HTML5 Audio and Video Credits: Dr. Jay Urbain
HTML5, OVERVIEW AND NEW FEATURES PowerPoint by Mason O’Mara.
New Tags, New Attributes, New JavaScript APIs, Forms, Validation, Audio, Video, SVG, Canvas Doncho Minkov Telerik Corporation
An Introduction Timmy Kokke | UNIT4 Internet Solutions | Expression Blend MVP / Webguy.
Lecture # 11 JavaScript Graphics. Scalable Vector Graphics (SVG) Scalable Vector Graphics (SVG), as the name implies, are - scalable (without pixelation):
HTML5 Haptics Standardization
SHAREPOINT PAKISTAN USER GROUP #1 SHAREPOINT COMMUNITY IN PAKISTAN AND ASIA HTML5 and SharePoint 2013.
Neal Stublen Why Use a Canvas?  Flexibility… Use of drawing primitives (lines, arcs, text) Direct access to element display pixels.
HTML 5 and CSS 3, Illustrated Complete Unit K: Incorporating Video and Audio.
Programming Club IIT Kanpur
HTML 5 Previous version: HTML4.01, 1999 Still work in progress, most browsers support some of it.
INF Web Design Using Multimedia on the Web Video - Part 1.
HTML 5 The next generation of web programming. WHERE IT ALL BEGAN.
Chapter 1 Understanding the Web Design Environment
Chapter 15 HTML 5 Video and Audio Intro to HTML5 1.
CHAPTER 21 INTRODUCING THE HTML 5 CANVAS. LEARNING OBJECTIVES How to create a canvas using the and tag pair How to test if a browser supports canvas operations.
Canvas, SVG, Workers Doncho Minkov Telerik Corporation
Audio and Video on the Web Sec 5-12 Part or all of this lesson was adapted from the University of Washington’s “Web Design & Development I” Course materials.
Chapter 1 Variables in the Web Design Environment.
Chapter 1 Variables in the Web Design Environment
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.
Relatore: Ing. Marco Porta Correlatore: Ing. Massimo Cellario Tesi di Laurea di: Andrea Marchetti Anno Accademico 2010/2011 UNIVERSITA’ DEGLI STUDI DI.
E0262 – MIS – Multimedia Storage Techniques SMIL – Synchronized Multimedia Integration Language.
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.
CS7026 – HTML5 Canvas. What is the element 2  HTML5 defines the element as “a resolution-dependent bitmap canvas which can be used for rendering graphs,
IT Engineering I Instructor: Rezvan Shiravi
Getting Started with Canvas IDIA Spring 2013 Bridget M. Blodgett.
HTML 5 Tutorial Chapter 5 Canvas. Canvas The tag is used to display graphics. The Canvas is a rectangular area we control each and every pixel of it.
HTML5 CANVAS. SAVING INFORMATION BETWEEN FUNCTION CALLS.
Session: 17. © Aptech Ltd. 2Canvas and JavaScript / Session 17  Describe Canvas in HTML5  Explain the procedure to draw lines  Explain the procedure.
Element. The element Used to dynamically draw graphics using javascript. Capable of drawing paths, circles, rectangles, text, and images.
Introduction to HTML. What is HTML?  Hyper Text Markup Language  Not a programming language but a markup language  Used for presentation and layout.
New Tags, New Attributes, New JavaScript APIs, Forms, Validation, Audio, Video, SVG, Canvas Doncho Minkov Telerik Corporation
Abigail morris.  Today I'm going to be explaining why the Internet relies on a number of protocols in order to function properly.  A protocol is simply.
Creating User Interfaces Recap HTML/HTML5 JavaScript features Homework: keep working on user observation studies. Review JavaScript.
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.
CS 174: Web Programming October 5 Class Meeting Department of Computer Science San Jose State University Fall 2015 Instructor: Ron Mak
How the Web Works Building a Website – Lesson 1. How People Access the Web Browsers People access websites using software called a web browser. To view.
HTML 5 Tutorial Chapter 3 Video. Video HTML 5.0 provides a standard for showing video. Using the element we can easily embed video within our web page.
Using Plug-Ins Adding Multimedia to an HTML Document.
Intro to the Canvas Canvas is an HTML5 element If you see this, your browser doesn't support the canvas Canvas is manipulated with javascript c = document.getElementById("mycanvas");
CHAPTER 15 HTML 5 VIDEO AND AUDIO Intro to HTML5 1.
CHAPTER 22 ADVANCED CANVAS PROGRAMMING. LEARNING OBJECTIVES How the HTML 5 canvas supports linear and radial gradients How to fill a shape with a pattern.
Week 2- Overview of the internet The construction of a webpage Four Key Elements – how the internet works Elements and Design concepts Introduction to.
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.
Can SAS Do Canvas? Creating Graphs Using HTML 5 Canvas Elements Edwin J. van Stein Astellas Pharma Global Development.
07 – HTML5 Canvas (1) Informatics Department Parahyangan Catholic University.
® ® copyright © 2013 Open Geospatial Consortium What HTML5 and REST mean to the Geo community Raj Singh, PhD Open Geospatial Consortium
What is HTML5? HTML5 will be the new standard for HTML. The previous version of HTML, HTML 4.01, came in The web has changed a lot since then. HTML5.
Lecture 9: Extra Features and Web Design Tarik Booker CS 120 California State University, Los Angeles.
HTML 5 (Part 1) – Start from SCRATCH. HTML 5 – Start from SCRATCH.
CHAP 2. CANVAS API.  Dynamically generate and render graphics, charts, images and animations  SVG (Scalable Vector Graphics) vs. Canvas  Bitmap canvas.
The HTML5 logo was introduced by W3C in 2010
Chapter 17 The Need for HTML 5.
Internet of the Past.
CMPE 280 Web UI Design and Development September 12 Class Meeting
HTML5 – The Saga Continues
CIIT-Human Computer Interaction-CSC456-Fall-2015-Mr
Chapter 4: HTML5 Media - <video> & <audio>
Web Programming Language
Application with Cross-Platform GUI
Web Systems & Technologies
The Canvas.
Progress <progress value="22" max="100"></progress>
Drawing Graphics in JavaScript
Simple Canvas Example Your browser doesn’t support canvases var canvas = document.getElementById("canvas1"); var context.
CSc 337 Lecture 21: Canvas.
Creating User Interfaces
CSc 337 Lecture 19: Canvas.
Presentation transcript:

Web Programming Language Week 13 Ken Cosh HTML 5

The latest new version of HTML New markup New Tags New APIs Initial Release:- 28 th October 2014 Flash

Browser Compatability In development for a decade, but still not 100% fully supported…

HTML5 Leap Forward in web design, layout & usability Graphics! Tidies up HTML’s evolution Geolocation handling Web Workers Local Storage Mobile

THE CANVAS!

The Canvas Originally for Safari Allows graphics to be drawn on webpage Simply an element on the webpage with width & height, with an ID, so Javascript can be used to draw graphics on it.

Canvas This is a canvas element, but your browser isn’t HTML5!

Canvas $(document).ready(function(){ canvas = $('#mycanvas')[0] context = canvas.getContext('2d') context.fillStyle = 'red' $(canvas).css("border", "1px solid black") context.beginPath() context.moveTo(160, 120) context.arc(160, 120, 70, 0, Math.PI * 2, false) context.closePath() context.fill() });

Filling Rectangles fillStyle() fillRect() clearRect() strokeRect()

Gradients? Mixing from colour to colour… context.createLinearGradient 4 parameters – x, y, width & height Diagonal? – easy! Multiple colours? – easy! Radial rather than Linear? – easy! context.createRadialGradient()

Canvas Filling with a pattern image = new Image() image.src = 'smile.png‘ pattern = context.createPattern(image, 'repeat') context.fillStyle = pattern

Text In case you need to place text into a canvas; context.strokeText(‘ISNE Rocks!’, 0, 0)

Lines lineCap butt, round, square lineJoin round, bevel, miter context.beginPath() context.moveTo() context.lineTo() context.stroke() context.closePath()

Images Complex Computer Graphics operations resize shadows compositing lighter darker transforms scale skew rotate

AUDIO & VIDEO

Audio & Video The web is not just about text & pictures No longer do we need to download and install a plugin player remember RealPlayer? FlashPlayer RealAudio

Codecs Codecs (enCODer/DECoder) HTML 5 supports several AAC MPS PCM Vorbis Different browsers support different codecs

HTML5 Audio & Video 2 new tags inside the tags you link to each of the different codecs you support

Geolocation

Where are you? Satellite data? GPS Data signals from known towers Fixed Wifi access points IP Address

Local Storage

Beyond Cookies Cookies are limited in size HTML5 allows access to a larger storage space (5-10MB depending on browser) remains through page loads, different visits & reboot

localStorage object localStorage.setItem(‘username’, ‘ken’) username = localStorage.getItem(‘username’) localStorage.removeItem(‘username’) localStorage.clear()

Web Workers

Webworkers Can work in the background When it finishes, it creates an event to send information back