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

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

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.
MMDE5011 – INTERACTIVE MEDIA PRACTICE 1 WEEK 1: INTRODUCTION TO HTML5
Tutorial 6 Creating a Web Form
More CSS - Page layout + HTML5 new features Boriana Koleva Room: C54
Ch3: Introduction to HTML5 part 2 Dr. Abdullah Almutairi ISC 340 Fall 2014.
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.
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.
Bartosz Kowalski Software Developer CERN. Presentation outline -HTML : introduction and history -HTML5 : -History and philosophy -New features -Structure.
World Wide Web1 Applications World Wide Web. 2 Introduction What is hypertext model? Use of hypertext in World Wide Web (WWW) – HTML. WWW client-server.
CM143 - Web Week 2 Basic HTML. Links and Image Tags.
Lecture 18. HTML5 and JavaScript Instructor: Jie Yang Department of Computer Science University of Massachusetts Lowell Exploring the Internet,
Chapter 15 HTML 5 Video and Audio Intro to HTML5 1.
4.01B Authoring Languages and Web Authoring Software 4.01 Examine webpage development and design.
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
Mark Branom, Continuing Studies.  HTML5 overview – what’s new?  New HTML5 elements  New HTML5 features  Guided Demonstrations  Forms  Video  Geolocation.
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.
CPSC 594B: Software Engineering Project Lecture 1: Introduction to HTML5 Lecturer: Ayman Issa Office: ICT 555.
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.
Naveen Prabhu Quadwave Consulting Pvt.Ltd.. Agenda  HTML 5 – The Standards  Browsers and HTML5 support  HTML5 Learnability  Perspectives of Web Designer,
Building the User Interface by Using HTML5: Organization, Input, and Validation Lesson 3.
UNIT 8 DRAWING WITH THE HTML5 CANVAS ELEMENTS AND FORMS.
HTML (HyperText Markup Language)
Building the User Interface by Using HTML5: Text, Graphics, and Media Lesson 2.
.  Entertain  Inform  Educate  Blogs  Sell  Date  Gamble  Religion.
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.
>> Introduction to HTML: Tags. Hyper - is the opposite of linear Text – words / sentences / paragraphs Mark-up – Marking the text Language – It is a language.
HTML Advanced: HTML 5. Introduction to HTML 5 These slides are based on source material found at the w3schools.com website.
The New Elements © Main Menu Structure Media Canvas Form Click on one of the categories below to view information about the new HTML5 elements in.
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
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.
Graduate School of Library and Information Science LIS 753 Introduction to HTML 5 By: Yijun Gao Week Three.
UPLOAD / DOWNLOAD april  HTML5 is just the next iteration of HTML  Previous version was technically HTML 4.01, which incorporated XHTML 1.0.
CHAPTER 15 HTML 5 VIDEO AND AUDIO Intro to HTML5 1.
Web Design and Development. World Wide Web  World Wide Web (WWW or W3), collection of globally distributed text and multimedia documents and files 
4.01B Authoring Languages and Web Authoring Software 4.01 Examine webpage development and design.
Objective: To describe the evolution of the Internet and the Web. Explain the need for web standards. Describe universal design. Identify benefits of accessible.
HTML. HTML: What is it? – HTML stands for Hyper Text Markup Language – An HTML file is a text file containing small markup tags – The markup tags tell.
Let’s look what flash can do: OK, that wasn’t flash! That was HTML5.
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.
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.
Blended HTML and CSS Fundamentals 3 rd EDITION Tutorial 1 Using HTML to Create Web Pages.
Chapter 9 HTML 5 Video and Audio
HTML Advanced: HTML 5 With Adaptations by Dilvan Moreira.
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.
Chapter 4: Scalable Vector Graphics (SVG)
PPT By:Gaurav Jaiswal Singsys Pte. Ltd.
HTML 5 Tutorial Chapter 1 Introduction.
Application with Cross-Platform GUI
Introduction to XHTML.
IS333: MULTI-TIER APPLICATION DEVELOPMENT
Basic HTML and Embed Codes
HTML 5 Training HTML 5 SYMANTICS [Notes to trainer:
Ground to Roof HTML/HTML5
Creating a Basic Web Page using HTML
HTML5 - 2 Forms, Frames, Graphics.
Web Programming and Design
HTML CS 4640 Programming Languages for Web Applications
Presentation transcript:

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

 Introduction to HTML 5  Changed Old Tags  New Tags  Audio and Video Tags  Semantic Tags (,, …)  New Form Elements  Forms Validation  New Attributes  Canvas vs. SVG 2

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 4

 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 5

 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 6

What should we keep in mind with HTML5?

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

 Better layout structure: Semantic tags  =  =  

 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, date + time - time zone, datetime- local Providers a date picker interface. Input type for Addresses URL Input field for URL address Telephone Input type for Telephone number

 New type(s) AttributeDescriptionColor Specifies that its input element is a color-well control, for setting the element’s value to a string representing a simple color File Specifies that its input element represents a list of file items Search Has a pattern = pattern Specifies a regular expression against which a UA is meant to check the value of the control represented by its element

Live Demo

 Allows dynamic, scriptable rendering of 2D shapes and bitmap images  Low level, procedural model  Updates a bitmap  Does not have a built-in scene graph  Consists of a drawable region defined in HTML  Has height and width attributes  Accessible by JavaScript Code  Used for building graphs, animations, games, and image composition

 In HTML: 26 This is displayed if HTML5 Canvas is not supported. This is displayed if HTML5 Canvas is not supported.</canvas>  Access with JavaScript: var example = document.getElementById('example'); var context = example.getContext('2d'); context.fillStyle = "rgb(255,0,0)"; context.fillRect(30, 30, 50, 50);

 In HTML: 27 This is displayed if HTML5 Canvas is not supported. This is displayed if HTML5 Canvas is not supported.</canvas>  Access with JavaScript: var example = document.getElementById('example'); var context = example.getContext('2d'); context.fillStyle = "rgb(255,0,0)"; context.fillRect(30, 30, 50, 50);

 SVG stands for S calable V ector G raphics  A language for describing 2D-graphics  Graphical applications  Most of the web browsers can display SVG just like they can display PNG, GIF, and JPG  Internet Explorer users may have to install the Adobe SVG Viewer  HTML5 allows embeding SVG  Directly using...  Directly using... 28

29 <head> SVG SVG </head><body> HTML5 SVG Circle HTML5 SVG Circle <svg id="svgelem" height="200" <svg id="svgelem" height="200" xmlns=" xmlns=" <circle id="redcircle" cx="50" cy="50" r="50" <circle id="redcircle" cx="50" cy="50" r="50" fill="red" /> fill="red" /> </body></html>

30 <radialGradient id="gradient" cx="50%" cy="50%" <radialGradient id="gradient" cx="50%" cy="50%" r="50%" fx="50%" fy="50%"> r="50%" fx="50%" fy="50%"> <stop offset="0%" <stop offset="0%" style="stop-color:rgb(200,200,200);stop-opacity:0"/> style="stop-color:rgb(200,200,200);stop-opacity:0"/> <stop offset="100%" <stop offset="100%" style="stop-color:rgb(0,0,255);stop-opacity:1"/> style="stop-color:rgb(0,0,255);stop-opacity:1"/> <ellipse cx="100" cy="50" rx="100" ry="50" <ellipse cx="100" cy="50" rx="100" ry="50" style="fill:url(#gradient)" /> style="fill:url(#gradient)" /></svg>

Live Demo

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. 34

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

Questions?

1. Make the following Web Page.  Note that there should be validators for s and url ( and url are required fields) 2. Using the previously made Web Page, add functionality to check if the text in " " and "repeat " fields is equal. If not show warning message and reload the page 37

3. Using Canvas draw the following figures 4. Try doing the same using SVG  Hint: Use JavaScript 38

5. Build the following Web Page using HTML5 and CSS 2.1  Use "Lorem Ipsum" to fill with some sample Content  Try to make the page look OK when the window is resized 39