New Tags, New Attributes, New JavaScript APIs, Forms, Validation, Audio, Video, SVG, Canvas Doncho Minkov Telerik Corporation www.telerik.com.

Slides:



Advertisements
Similar presentations
WEB DESIGN TABLES, PAGE LAYOUT AND FORMS. Page Layout Page Layout is an important part of web design Why do you think your page layout is important?
Advertisements

What is HTML5…?. ”…removes the need for plugins” ”…can handle multimedia directly” ”…enables rich, interactive clients” ”…enables advanced visual designs”
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.
Presenter: James Huang Date: Sept. 26,  Introduction  Basics  Lists  Links  Forms  CSS 2.
More CSS - Page layout + HTML5 new features Boriana Koleva Room: C54
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.
HTML 5 Previous version: HTML4.01, 1999 Still work in progress, most browsers support some of it.
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.
Transitioning to HTML5 and CSS3 Patrick Carey, Cengage Learning Author.
HTML 5 The next generation of web programming. WHERE IT ALL BEGAN.
HTML Advanced: HTML 5. Welcome This slideshow presentation is designed to introduce you to HTML 5. It is the third of three HTML workshops available at.
Chapter 16 Dynamic HTML and Animation The Web Warrior Guide to Web Design Technologies.
Interface Design 2 Week 10. Interface Design 2 :: Week 10 :: Calendar.
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,
Chapter 2 Introduction to HTML5 Internet & World Wide Web How to Program, 5/e Copyright © Pearson, Inc All Rights Reserved.
Chapter 14 Introduction to HTML
CS 415 N-Tier Application Development By Umair Ashraf July 16,2013 National University of Computer and Emerging Sciences Lecture # 12 HTML/ XHTML/ HTML5.
TUTORIAL 8: Enhancing a Web Site with Advanced CSS
Canvas, SVG, Workers Doncho Minkov Telerik Corporation
Web Programming Language Week 13 Ken Cosh HTML 5.
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.
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.
Naveen Prabhu Quadwave Consulting Pvt.Ltd.. Agenda  HTML 5 – The Standards  Browsers and HTML5 support  HTML5 Learnability  Perspectives of Web Designer,
IT Engineering I Instructor: Rezvan Shiravi
HTML5 Accessibility Ted Drake, Yahoo! Accessibility Lab Slideshare.net/7mary4.
Building the User Interface by Using HTML5: Organization, Input, and Validation Lesson 3.
Working with Cascading Style Sheets. Introducing Cascading Style Sheets Style sheets are files or forms that describe the layout and appearance of a document.
UNIT 8 DRAWING WITH THE HTML5 CANVAS ELEMENTS AND FORMS.
New Tags, New Attributes, New JavaScript APIs, Forms, Validation, Audio, Video, SVG, Canvas Doncho Minkov Telerik Corporation Technical.
Chapter 1 XHTML: Part I The Web Warrior Guide to Web Design Technologies.
HTML Advanced: HTML 5. Introduction to HTML 5 These slides are based on source material found at the w3schools.com website.
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.
Introduction to HTML. What is HTML?  Hyper Text Markup Language  Not a programming language but a markup language  Used for presentation and layout.
Lecture 2 - HTML and CSS Review SFDV3011 – Advanced Web Development 1.
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.
UPLOAD / DOWNLOAD april  HTML5 is just the next iteration of HTML  Previous version was technically HTML 4.01, which incorporated XHTML 1.0.
COP 3813 Intro to Internet Computing Prof. Roy Levow Lecture 1.
Let’s look what flash can do: OK, that wasn’t flash! That was HTML5.
07 – HTML5 Canvas (1) Informatics Department Parahyangan Catholic University.
2.4. Choose and configure HTML5 tags to organize content and forms Choose and configure HTML5 tags for input and validation. Building the User Interface.
Web Design Principles 5 th Edition Chapter 3 Writing HTML for the Modern Web.
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.
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 9 HTML 5 Video and Audio
The HTML5 logo was introduced by W3C in 2010
HTML CS 4640 Programming Languages for Web Applications
HTML 5.
© 2016 Pearson Education, Inc., Hoboken, NJ. All rights reserved.
© 2016 Pearson Education, Inc., Hoboken, NJ. All rights reserved.
Introduction to HTML5.
PPT By:Gaurav Jaiswal Singsys Pte. Ltd.
HTML 5 Tutorial Chapter 1 Introduction.
Web Programming Language
Application with Cross-Platform GUI
Building beautiful and interactive apps with HTML5 & CSS3
HTML 5 Training HTML 5 SYMANTICS [Notes to trainer:
Ground to Roof HTML/HTML5
HTML5 and Designing a Rich Internet Experience
Creating a Basic Web Page using HTML
HTML5 - 2 Forms, Frames, Graphics.
Web Programming and Design
HTML CS 4640 Programming Languages for Web Applications
HTML5 and Designing a Rich Internet Experience
Presentation transcript:

New Tags, New Attributes, New JavaScript APIs, Forms, Validation, Audio, Video, SVG, Canvas Doncho Minkov Telerik Corporation

 Introduction to HTML 5  Changed Old Tags  New Tags  Audio and Video Tags  New Structural Tags (,, …)  New Form Elements  Forms Validation  New Attributes 2

 New CSS Styles  New JavaScript APIs  Working with SVG and Canvas 3

What the … is HTML 5?

 HTML5 – the next major revision of the HTML  Currently under development  Far away from final version  Developed under the HTML 5 working group of the World Wide Web Consortium (W3C) in 2007  First Public Working Draft of the specification  January 22, 2008  Parts of HTML5 are being implemented in browsers before the whole specification is ready 5

 1991 – HTML first mentioned – Tim Berners-Lee – HTML tags  1993 – HTML (first public version, published at IETF)  1993 – HTML 2 draft  1995 – HTML 2 – W3C  1995 – HTML 3 draft  1997 – HTML 3.2 – “Wilbur”  1997 – HTML 4 – ”Cougar” – CSS  1999 – HTML 4.01 (final)  2000 – XHTML draft  2001 – XHTML (final)  2008 – HTML5 / XHTML5 draft  2011 – feature complete HTML5  2022 – HTML5 – final specification 6

 Latest version is HTML5  Aimed to have all of the power of native applications  Run on any platform (Windows, Linux, iPhone, Android, etc.)  New features should be based on HTML, CSS, DOM and JavaScript  Reduce the need for external plugins  Better error handling  More markup to replace scripting 7

What a Designer Should Know?

 Doctype tag:  HTML tag:  Meta tag:  Link tag:

 Better layout structure: new structural elements   <header> <footer> <nav><aside><section> <header> <article> <footer>

 Elements like header and footer are not meant to be only at the top and bottom of the page  Header and footer of each document section  Not very different from tag but are more semantically well defined in the document structure

<body> HTML 5 Presentation HTML 5 Presentation New Layout Structure New Layout Structure </header> <ul> Lecture Lecture </ul> Demos </ul> Trainers Trainers </ul> </nav>

First Paragraph First Paragraph </header> Some text Some text <aside> more info more info </aside> <footer> Done by Doncho Minkov, (c) 2011, Telerik Academy Done by Doncho Minkov, (c) 2011, Telerik Academy </footer></body>

Live Demo

   For external content, like text from a news-article, blog, forum, or any other external source    For content aside from (but related to) the content it is placed in    For describing details about a document, or parts of a document    A caption, or summary, inside the details element

   For text that should be highlighted    For a section of navigation    For a section in a document (e.g. chapters, headers, footers)    Word break. For defining an appropriate place to break a long word or sentence  Other tags ,,,, etc.

 Media Tags    Attributes: autoplay, controls, loop, src    Attributes: autoplay, controls, loop, height, width, src Audio tag is not supported Audio tag is not supported</audio>

Live Demo

   Defines embedded content, such as a plug-in  Attributes  src="url", type="type"

 New attributes AttributeDescriptionAutocomplete ON / OFF. In case of “ on ”, the browser stores the value, auto fill when the user visits the same form next time Autofocus Autofocus. Input field is focused on page load Required Required. Mandates input field value for the form submit action Dragabble True / false indicates if the element is dragabble or not

 New type(s) AttributeDescriptionNumber/Range Restricts users to enter only numbers. Additional attributes min, max and step and value can convert the input to a slider control or a spin box date, month, week, time, date + time, and date + time - time zone Providers a date picker interface. Input type for Addresses URL Input field for URL address Telephone Input type for Telephone number

Live Demo

What a programmer must know?

 UI APIs  Canvas  Drag and Drop  Offline Applications  Local Storage  Extension to HTMLDocument

 Canvas  Dynamic, Scriptable rendering of 2D images  Uses JavaScript to draw  Resolution-dependent bitmap  Can draw text as well This text is displayed if your browser does not support This text is displayed if your browser does not support HTML5 Canvas. HTML5 Canvas.</canvas> var example = document.getElementById('ExampleCanvas'); var context = example.getContext('2d'); context.fillStyle = "rgb(255,0,0)"; context.fillRect(30, 30, 50, 50);

 fillStyle  Sets the drawing color  Default fillStyle is solid black  but you can set it to whatever you like  fillRect(x, y, width, height)  Draws a rectangle  Filled with the current fillStyle

 strokeStyle  Sets the stroke color  strokeRect(x, y, width, height)  Draws an rectangle with the current strokeStyle  strokeRect doesn’t fill in the middle  It just draws the edges  clearRect(x, y, width, height) clears the pixels in the specified rectangle

 What is a Path?  Something that is about to be drawn  It is not drawn yet context.beginPath(); context.moveTo(0, 40); context.lineTo(240, 40); context.moveTo(260, 40); context.lineTo(500, 40); context.moveTo(495, 35); context.lineTo(500, 40); context.lineTo(495, 45);

Live Demo

 Drag and Drop  attribute draggable="true"  Events: dragstart, dragstop

 Offline Applications  Cache manifest file  Every page of your web application needs a manifest attribute  Points to the cache manifest for the entire application  Manifest file should contain Content-Type header ( text/cache-manifest )  Forcible cache update  applicationCache.updated()

 Local Storage  Store data locally  Similar to cookies, but can store much larger amount of data  Same Origin Restrictions  localStorage.setItem(key, value)  localStorage.getItem(key)  SQL Storage  Easier access to SQL Storage

openDatabase('documents', '1.0', 'Local document storage', 5*1024*1024, 'Local document storage', 5*1024*1024, function (db) {db.changeVersion('', '1.0', function (db) {db.changeVersion('', '1.0', function (t) { function (t) { t.executeSql('CREATE TABLE docIds (id, name)'); t.executeSql('CREATE TABLE docIds (id, name)'); }, }, error); error); }); }); function saveState(text){ localStorage["localStorageDemo"] = text; localStorage["localStorageDemo"] = text;} function restoreState(){ return localStorage["localStorageDemo"]; return localStorage["localStorageDemo"];}  Local Storage  SQL Web

 HTML DOM Extensions:  getElementsByClassName()  innerHTML  hasFocus  getSelection()

36

 New selectors (usable in JavaScript also)  Web Fonts  Text wrapping/overflow  Columns  Opacity, Gradients, Rounded Corners, Shadows  Transitions, Transforms, Animations

What is the Advantage to the End User?

 Provides a very rich user experience without Plug-ins  RIA replacement?  Better Performance  Leverages GPU for better graphical experience

 HTML5 is not a thing someone can detect  It consists of many elements that can be detected ,, etc.  The HTML5 specification defines how tags interact with JavaScript  Through the Document Object Model (DOM)  HTML5 doesn’t just define a tag  There is also a corresponding DOM API for video objects in the DOM  You can use this API to detect support for different video formats, etc. 40

 HTML 5 Rocks – Examples, Demos, Tutorials   HTML 5 Demos   Internet Explorer 9 Test Drive for HTML 5   Apple Safari HTML 5 Showcases 

Questions?