SlideShare uma empresa Scribd logo
1 de 22
HTML5 
Bundelkhand Institute of Engineering & 
Technology, Jhansi 
Under the guidance of: 
Dr. Yash Pal Singh 
(Head of Department IT ) 
Presented by: 
Amit Choudhary 
1104313003 
Dept. of IT 
1
OVERVIEW 
 Introduction 
 History 
 New features in HTML5 
 Difference of HTML5 with HTML4 
 Web applications currently using HTML5 
 Browser Compatibility of HTML5 
02/22
INTRODUCTIO 
N 
 HTML5 is a markup language used for structuring and presenting 
content for the World Wide Web. 
 It is the fifth revision of the HTML standard (created in 1990 and 
standardized as HTML 4 as of 1997) 
 HTML5 is a cooperation between the World Wide Web Consortium (W3C) 
and the Web Hypertext Application Technology Working Group 
(WHATWG). 
 New features of HTML5 are based on HTML, CSS, DOM, and JavaScript 
3 
03/22
HISTORY OF HTML5 
• HTML 1.0 was developed in 1990 
• HTML 3.0 was developed in 1995 
• HTML 3.2 was completed by 1996 
• HTML 4 was developed in the year 1997 
• The Web Hypertext Application Technology Working Group 
(WHATWG) began work on the new standard in 2004 
• In 2006 W3C showed an interest in HTML5 and in 2007 they created a 
working group to work in HTML5 project. 
• HTML5 is still under development. 4 
04/22
NEW FEATURES IN 
HTML5 
 API's for multimedia by using video and audio tags 
 Drag and drop API 
 HTML canvas 2D context 
 HTML5 Geo location 
 New Input types 
 Web storage 
5 
05/22
New Semantic Elements 
• <section> 
• <nav> 
• <article> 
• <hgroup> 
• <aside> 
• <header> 
• <footer> 
• <legend> 
• <figure> 
6 
06/22
NEW INPUT TYPE 
Syntax: E-mail: <input type="email" name="usremail" /> 
•color (in hexadecimal like #FF8800) 
• date 
• datetime 
• email 
• month 
• number 
• range 
• search 
• tel 
• time 
•url 7 
07/22
Canvas 
• Dynamic and interactive graphics 
• Draw images using 2D drawing API 
• Lines, curves, shapes, fills, etc. 
<canvas width="300" height="225"></canvas> 
 You can display Text, Image, Gradient etc. 
 You can make games without using flash. 
8 
08/22
Video & Audio 
• <video> 
• Allows to embed a video on a web page - width, height, 
controls are the attributes. 
• Very useful feature in todays web scenario. 
• <source>,<track> are the tags which can be used along with 
<video>. 
• <audio> 
• Allows to embed a audio on a web page. 
• Text displayed between <audio> and </audio> will be shown 
as an error if browser does not support audio. 
• autoplay, controls, src, loop, preload ares some of its 
attributes. 
9 
09/22
Video 
<video width="320" height="240" controls="controls"><source 
src="movie.mp4" type="video/mp4" /></video> 
New Attributes 
•Autoplay 
•Controls (play,pause.seeking,volume,caption,track) 
•Height 
•Loop 
•Muted 
•Width 
•src 
10 
10/22
Drag and Drop 
• In HTML5 any element is draggable . 
• To make an element draggable, set the draggable attribute to true 
< img draggable=”true”/> 
• What to drag?- ondragstart attribute calls a function, drag(event) 
which has a method dataTransfer.setData() method sets the data type 
and the value of the dragged data. 
• Where to drag?-ondragover event tells about where to drop dragged 
element. 
• Do the drop: When the dragged data is dropped, a drop event 
occurs. drop(event) function we implement things which will occur 
on release of drag operation. 
11 
11/22
Progress bar 
• Useful for: 
• Indicate loading progress 
• Show user progress through a series of forms 
The <progress> tag represents the progress of a task. 
The <progress> tag is currently supported in Firefox, Opera, and Chrome. 
<progress value="22" max="100"></progress> 
Attributes:- 
1) max:- Specifies how much work the task requires in total.2) 
2) value:- Specifies how much of the task has been completed. 
12 
12/22
Place Holder 
• The placeholder attribute provides a hint that describes the 
expected value of an input field. 
• Note: The placeholder attribute works with the following <input> 
types: text, search, url, telephone, email, and password 
• The hint is displayed in the input field when it is empty, and 
disappears when the field gets focus: 
<input type=“text" name=“username" placeholder=“First name" /> 13 
13/22
Required Attribute 
14 
14/22
HTML5 Web Storage 
HTML5, web pages can store data locally within the users browser. 
Web Storage in HTML5 can be viewed as improvement over cookies. 
Provides 5-10 MB storage space compared to 4 KB in cookies. 
Web Storage is more secure and faster than cookies. 
Data is stored in key/value pairs, and a web page can only access 
data stored by itself. 
Web server can not access web storage data directly. Store large 
amounts of data, without affecting the websites performance. 
Two new objects for storing data on the client: 
(a) localStorage - stores data with no expiration date 
(b) sessionStorage - stores data for one session 
15 
15/22
localStorage & 
sessionStorage 
The localStorage object stores the data with no expiration date. The data 
will not be deleted when the browser is closed, and will be available the 
next day, week, or year. localStorage.setItem(myKey, myValue); 
var myVar = localStorage.getItem(myKey); 
The sessionStorage object is equal to the localStorage object, except that it 
stores the data for only one session. The data is deleted when the user closes 
the browser window. sessionStorage.setItem(myKey, myValue); 
var myVar = sessionStorage.getItem(myKey); 
16 
16/22
Geo-location 
Geo-location API is used to get the geographical position of a web 
site user. 
getCurrentPosition() method to get the users position. 
If the getCurrentPosition() method is successful, it returns a 
coordinates object to the function specified in the 
parameter(showPosition) 
showPosition() function gets the displays the Latitude and 
Longitude. 
watchPosition() - Returns the current position of the user. 
17 
17/22
Difference between 
HTML4 and HTML5 
HTML4 HTML5 
Elements like nav , header were not 
present. 
It brought new element for web 
structure like nav, header etc 
It was lack of rules of parsing so it is 
difficult to handle error. 
Strictly parsing rules introduced in 
html5 so handle the error. 
No multimedia supported without 
third party 
It inbuilt multimedia element in 
html5 like Audio , video, canvas 
It was not available It contains attributes like control 
menu, spell check etc. 
18 
18/22
Browser 
• All major bCrowoser msuppoprt HaTMtL5i.bility 
• Though no browser fully supports HTML5, most of the 
browsers keep releasing their new version to support 
various new features of HTML5. 
• Following Browsers supports HTML5. 
• We can check how much our browser supports HTML5 by 
visiting tofollowing link through our 
browser.http://www.html5test.com 
19 
19/22
Websites that are using 
HTML5 
 www.youtube.com 
 www.w3c.com 
 www.facebook.com 
 www.techzion.org 
 www.thewildernessdowntown.com 
 play.google.com/about/music/tour/ 
20 
20/22
Conclusion 
• HTML5 is still a work in progress 
• Only a handful of major brands, including Mozilla Firefox 
and Google Chrome currently support HTML5 elements. 
• Microsoft’s Internet Explorer is the most widely used 
browser and currently has the least amount of support for 
HTML5. 
• Reduce the use of external plugins (flash player). 
• HTML5 will replace the majority of native apps over the 
next 3 to 5years. 
• HTML5 allows offline storage . 
• HTML5 is Future of websites. 
21 
21/22
22 
22/22

Mais conteúdo relacionado

Mais procurados

Html5 tutorial for beginners
Html5 tutorial for beginnersHtml5 tutorial for beginners
Html5 tutorial for beginnersSingsys Pte Ltd
 
Delhi student's day
Delhi student's dayDelhi student's day
Delhi student's dayAnkur Mishra
 
Html 5 New Features
Html 5 New FeaturesHtml 5 New Features
Html 5 New FeaturesAta Ebrahimi
 
The Future of the Web: HTML5
The Future of the Web: HTML5The Future of the Web: HTML5
The Future of the Web: HTML5Derek Bender
 
HTML5: features with examples
HTML5: features with examplesHTML5: features with examples
HTML5: features with examplesAlfredo Torre
 
HTML5 Tags and Elements Tutorial
HTML5 Tags and Elements TutorialHTML5 Tags and Elements Tutorial
HTML5 Tags and Elements TutorialProdigyView
 
Webcomponents TLV October 2014
Webcomponents TLV October 2014Webcomponents TLV October 2014
Webcomponents TLV October 2014Dmitry Bakaleinik
 
SharePoint 2010 Web Standards & Accessibility
SharePoint 2010 Web Standards & AccessibilitySharePoint 2010 Web Standards & Accessibility
SharePoint 2010 Web Standards & AccessibilityMavention
 
HTML (Hyper Text Markup Language)
HTML (Hyper Text Markup Language)HTML (Hyper Text Markup Language)
HTML (Hyper Text Markup Language)Asra Hameed
 
An Introduction to HTML5
An Introduction to HTML5An Introduction to HTML5
An Introduction to HTML5Steven Chipman
 
Introduction to HTML5
Introduction to HTML5Introduction to HTML5
Introduction to HTML5Gil Fink
 
Rawnet Lightning Talk - Web Components
Rawnet Lightning Talk - Web ComponentsRawnet Lightning Talk - Web Components
Rawnet Lightning Talk - Web ComponentsRawnet
 
Chapter 2 introduction to html5
Chapter 2 introduction to html5Chapter 2 introduction to html5
Chapter 2 introduction to html5nobel mujuji
 
Basics of css and xhtml
Basics of css and xhtmlBasics of css and xhtml
Basics of css and xhtmlsagaroceanic11
 
What are new added in HTML5?
What are new added in HTML5?What are new added in HTML5?
What are new added in HTML5?Chetu
 

Mais procurados (20)

Html5 tutorial for beginners
Html5 tutorial for beginnersHtml5 tutorial for beginners
Html5 tutorial for beginners
 
Html 5
Html 5Html 5
Html 5
 
Delhi student's day
Delhi student's dayDelhi student's day
Delhi student's day
 
Html 5 New Features
Html 5 New FeaturesHtml 5 New Features
Html 5 New Features
 
HTML5 & CSS3
HTML5 & CSS3 HTML5 & CSS3
HTML5 & CSS3
 
The Future of the Web: HTML5
The Future of the Web: HTML5The Future of the Web: HTML5
The Future of the Web: HTML5
 
HTML5: features with examples
HTML5: features with examplesHTML5: features with examples
HTML5: features with examples
 
HTML5 Tags and Elements Tutorial
HTML5 Tags and Elements TutorialHTML5 Tags and Elements Tutorial
HTML5 Tags and Elements Tutorial
 
Webcomponents TLV October 2014
Webcomponents TLV October 2014Webcomponents TLV October 2014
Webcomponents TLV October 2014
 
Html5 tags
Html5 tagsHtml5 tags
Html5 tags
 
SharePoint 2010 Web Standards & Accessibility
SharePoint 2010 Web Standards & AccessibilitySharePoint 2010 Web Standards & Accessibility
SharePoint 2010 Web Standards & Accessibility
 
HTML (Hyper Text Markup Language)
HTML (Hyper Text Markup Language)HTML (Hyper Text Markup Language)
HTML (Hyper Text Markup Language)
 
HTML ppt
HTML pptHTML ppt
HTML ppt
 
An Introduction to HTML5
An Introduction to HTML5An Introduction to HTML5
An Introduction to HTML5
 
Introduction to HTML5
Introduction to HTML5Introduction to HTML5
Introduction to HTML5
 
Rawnet Lightning Talk - Web Components
Rawnet Lightning Talk - Web ComponentsRawnet Lightning Talk - Web Components
Rawnet Lightning Talk - Web Components
 
Chapter 2 introduction to html5
Chapter 2 introduction to html5Chapter 2 introduction to html5
Chapter 2 introduction to html5
 
Basics of css and xhtml
Basics of css and xhtmlBasics of css and xhtml
Basics of css and xhtml
 
HTML5 - Quick Guide
HTML5 - Quick GuideHTML5 - Quick Guide
HTML5 - Quick Guide
 
What are new added in HTML5?
What are new added in HTML5?What are new added in HTML5?
What are new added in HTML5?
 

Semelhante a Html5 Future of WEB

Semelhante a Html5 Future of WEB (20)

Html5 n css3
Html5 n css3Html5 n css3
Html5 n css3
 
HTML5: An Introduction To Next Generation Web Development
HTML5: An Introduction To Next Generation Web DevelopmentHTML5: An Introduction To Next Generation Web Development
HTML5: An Introduction To Next Generation Web Development
 
Html5
Html5Html5
Html5
 
Html5
Html5Html5
Html5
 
Html5 phillycc
Html5 phillyccHtml5 phillycc
Html5 phillycc
 
Html5
Html5Html5
Html5
 
HTML 5
HTML 5HTML 5
HTML 5
 
Html5
Html5Html5
Html5
 
HTML5 Presentation
HTML5 PresentationHTML5 Presentation
HTML5 Presentation
 
Rohit&kunjan
Rohit&kunjanRohit&kunjan
Rohit&kunjan
 
Html 5
Html 5Html 5
Html 5
 
HTML5
HTML5HTML5
HTML5
 
What is HTML 5?
What is HTML 5?What is HTML 5?
What is HTML 5?
 
HTML5 Refresher
HTML5 RefresherHTML5 Refresher
HTML5 Refresher
 
A brief introduction on HTML5 and responsive layouts
A brief introduction on HTML5 and responsive layoutsA brief introduction on HTML5 and responsive layouts
A brief introduction on HTML5 and responsive layouts
 
Html5
Html5Html5
Html5
 
Html5
Html5Html5
Html5
 
HTML 5 Complete Reference
HTML 5 Complete ReferenceHTML 5 Complete Reference
HTML 5 Complete Reference
 
HTML5 introduction for beginners
HTML5 introduction for beginnersHTML5 introduction for beginners
HTML5 introduction for beginners
 
HTML 5
HTML 5HTML 5
HTML 5
 

Último

Indian Dairy Industry Present Status and.ppt
Indian Dairy Industry Present Status and.pptIndian Dairy Industry Present Status and.ppt
Indian Dairy Industry Present Status and.pptMadan Karki
 
Mine Environment II Lab_MI10448MI__________.pptx
Mine Environment II Lab_MI10448MI__________.pptxMine Environment II Lab_MI10448MI__________.pptx
Mine Environment II Lab_MI10448MI__________.pptxRomil Mishra
 
complete construction, environmental and economics information of biomass com...
complete construction, environmental and economics information of biomass com...complete construction, environmental and economics information of biomass com...
complete construction, environmental and economics information of biomass com...asadnawaz62
 
Python Programming for basic beginners.pptx
Python Programming for basic beginners.pptxPython Programming for basic beginners.pptx
Python Programming for basic beginners.pptxmohitesoham12
 
System Simulation and Modelling with types and Event Scheduling
System Simulation and Modelling with types and Event SchedulingSystem Simulation and Modelling with types and Event Scheduling
System Simulation and Modelling with types and Event SchedulingBootNeck1
 
home automation using Arduino by Aditya Prasad
home automation using Arduino by Aditya Prasadhome automation using Arduino by Aditya Prasad
home automation using Arduino by Aditya Prasadaditya806802
 
Autonomous emergency braking system (aeb) ppt.ppt
Autonomous emergency braking system (aeb) ppt.pptAutonomous emergency braking system (aeb) ppt.ppt
Autonomous emergency braking system (aeb) ppt.pptbibisarnayak0
 
Software and Systems Engineering Standards: Verification and Validation of Sy...
Software and Systems Engineering Standards: Verification and Validation of Sy...Software and Systems Engineering Standards: Verification and Validation of Sy...
Software and Systems Engineering Standards: Verification and Validation of Sy...VICTOR MAESTRE RAMIREZ
 
Crushers to screens in aggregate production
Crushers to screens in aggregate productionCrushers to screens in aggregate production
Crushers to screens in aggregate productionChinnuNinan
 
"Exploring the Essential Functions and Design Considerations of Spillways in ...
"Exploring the Essential Functions and Design Considerations of Spillways in ..."Exploring the Essential Functions and Design Considerations of Spillways in ...
"Exploring the Essential Functions and Design Considerations of Spillways in ...Erbil Polytechnic University
 
Internet of things -Arshdeep Bahga .pptx
Internet of things -Arshdeep Bahga .pptxInternet of things -Arshdeep Bahga .pptx
Internet of things -Arshdeep Bahga .pptxVelmuruganTECE
 
Comparative study of High-rise Building Using ETABS,SAP200 and SAFE., SAFE an...
Comparative study of High-rise Building Using ETABS,SAP200 and SAFE., SAFE an...Comparative study of High-rise Building Using ETABS,SAP200 and SAFE., SAFE an...
Comparative study of High-rise Building Using ETABS,SAP200 and SAFE., SAFE an...Erbil Polytechnic University
 
US Department of Education FAFSA Week of Action
US Department of Education FAFSA Week of ActionUS Department of Education FAFSA Week of Action
US Department of Education FAFSA Week of ActionMebane Rash
 
Research Methodology for Engineering pdf
Research Methodology for Engineering pdfResearch Methodology for Engineering pdf
Research Methodology for Engineering pdfCaalaaAbdulkerim
 
Energy Awareness training ppt for manufacturing process.pptx
Energy Awareness training ppt for manufacturing process.pptxEnergy Awareness training ppt for manufacturing process.pptx
Energy Awareness training ppt for manufacturing process.pptxsiddharthjain2303
 
Unit7-DC_Motors nkkjnsdkfnfcdfknfdgfggfg
Unit7-DC_Motors nkkjnsdkfnfcdfknfdgfggfgUnit7-DC_Motors nkkjnsdkfnfcdfknfdgfggfg
Unit7-DC_Motors nkkjnsdkfnfcdfknfdgfggfgsaravananr517913
 
Main Memory Management in Operating System
Main Memory Management in Operating SystemMain Memory Management in Operating System
Main Memory Management in Operating SystemRashmi Bhat
 
Work Experience-Dalton Park.pptxfvvvvvvv
Work Experience-Dalton Park.pptxfvvvvvvvWork Experience-Dalton Park.pptxfvvvvvvv
Work Experience-Dalton Park.pptxfvvvvvvvLewisJB
 
Cooling Tower SERD pH drop issue (11 April 2024) .pptx
Cooling Tower SERD pH drop issue (11 April 2024) .pptxCooling Tower SERD pH drop issue (11 April 2024) .pptx
Cooling Tower SERD pH drop issue (11 April 2024) .pptxmamansuratman0253
 
List of Accredited Concrete Batching Plant.pdf
List of Accredited Concrete Batching Plant.pdfList of Accredited Concrete Batching Plant.pdf
List of Accredited Concrete Batching Plant.pdfisabel213075
 

Último (20)

Indian Dairy Industry Present Status and.ppt
Indian Dairy Industry Present Status and.pptIndian Dairy Industry Present Status and.ppt
Indian Dairy Industry Present Status and.ppt
 
Mine Environment II Lab_MI10448MI__________.pptx
Mine Environment II Lab_MI10448MI__________.pptxMine Environment II Lab_MI10448MI__________.pptx
Mine Environment II Lab_MI10448MI__________.pptx
 
complete construction, environmental and economics information of biomass com...
complete construction, environmental and economics information of biomass com...complete construction, environmental and economics information of biomass com...
complete construction, environmental and economics information of biomass com...
 
Python Programming for basic beginners.pptx
Python Programming for basic beginners.pptxPython Programming for basic beginners.pptx
Python Programming for basic beginners.pptx
 
System Simulation and Modelling with types and Event Scheduling
System Simulation and Modelling with types and Event SchedulingSystem Simulation and Modelling with types and Event Scheduling
System Simulation and Modelling with types and Event Scheduling
 
home automation using Arduino by Aditya Prasad
home automation using Arduino by Aditya Prasadhome automation using Arduino by Aditya Prasad
home automation using Arduino by Aditya Prasad
 
Autonomous emergency braking system (aeb) ppt.ppt
Autonomous emergency braking system (aeb) ppt.pptAutonomous emergency braking system (aeb) ppt.ppt
Autonomous emergency braking system (aeb) ppt.ppt
 
Software and Systems Engineering Standards: Verification and Validation of Sy...
Software and Systems Engineering Standards: Verification and Validation of Sy...Software and Systems Engineering Standards: Verification and Validation of Sy...
Software and Systems Engineering Standards: Verification and Validation of Sy...
 
Crushers to screens in aggregate production
Crushers to screens in aggregate productionCrushers to screens in aggregate production
Crushers to screens in aggregate production
 
"Exploring the Essential Functions and Design Considerations of Spillways in ...
"Exploring the Essential Functions and Design Considerations of Spillways in ..."Exploring the Essential Functions and Design Considerations of Spillways in ...
"Exploring the Essential Functions and Design Considerations of Spillways in ...
 
Internet of things -Arshdeep Bahga .pptx
Internet of things -Arshdeep Bahga .pptxInternet of things -Arshdeep Bahga .pptx
Internet of things -Arshdeep Bahga .pptx
 
Comparative study of High-rise Building Using ETABS,SAP200 and SAFE., SAFE an...
Comparative study of High-rise Building Using ETABS,SAP200 and SAFE., SAFE an...Comparative study of High-rise Building Using ETABS,SAP200 and SAFE., SAFE an...
Comparative study of High-rise Building Using ETABS,SAP200 and SAFE., SAFE an...
 
US Department of Education FAFSA Week of Action
US Department of Education FAFSA Week of ActionUS Department of Education FAFSA Week of Action
US Department of Education FAFSA Week of Action
 
Research Methodology for Engineering pdf
Research Methodology for Engineering pdfResearch Methodology for Engineering pdf
Research Methodology for Engineering pdf
 
Energy Awareness training ppt for manufacturing process.pptx
Energy Awareness training ppt for manufacturing process.pptxEnergy Awareness training ppt for manufacturing process.pptx
Energy Awareness training ppt for manufacturing process.pptx
 
Unit7-DC_Motors nkkjnsdkfnfcdfknfdgfggfg
Unit7-DC_Motors nkkjnsdkfnfcdfknfdgfggfgUnit7-DC_Motors nkkjnsdkfnfcdfknfdgfggfg
Unit7-DC_Motors nkkjnsdkfnfcdfknfdgfggfg
 
Main Memory Management in Operating System
Main Memory Management in Operating SystemMain Memory Management in Operating System
Main Memory Management in Operating System
 
Work Experience-Dalton Park.pptxfvvvvvvv
Work Experience-Dalton Park.pptxfvvvvvvvWork Experience-Dalton Park.pptxfvvvvvvv
Work Experience-Dalton Park.pptxfvvvvvvv
 
Cooling Tower SERD pH drop issue (11 April 2024) .pptx
Cooling Tower SERD pH drop issue (11 April 2024) .pptxCooling Tower SERD pH drop issue (11 April 2024) .pptx
Cooling Tower SERD pH drop issue (11 April 2024) .pptx
 
List of Accredited Concrete Batching Plant.pdf
List of Accredited Concrete Batching Plant.pdfList of Accredited Concrete Batching Plant.pdf
List of Accredited Concrete Batching Plant.pdf
 

Html5 Future of WEB

  • 1. HTML5 Bundelkhand Institute of Engineering & Technology, Jhansi Under the guidance of: Dr. Yash Pal Singh (Head of Department IT ) Presented by: Amit Choudhary 1104313003 Dept. of IT 1
  • 2. OVERVIEW  Introduction  History  New features in HTML5  Difference of HTML5 with HTML4  Web applications currently using HTML5  Browser Compatibility of HTML5 02/22
  • 3. INTRODUCTIO N  HTML5 is a markup language used for structuring and presenting content for the World Wide Web.  It is the fifth revision of the HTML standard (created in 1990 and standardized as HTML 4 as of 1997)  HTML5 is a cooperation between the World Wide Web Consortium (W3C) and the Web Hypertext Application Technology Working Group (WHATWG).  New features of HTML5 are based on HTML, CSS, DOM, and JavaScript 3 03/22
  • 4. HISTORY OF HTML5 • HTML 1.0 was developed in 1990 • HTML 3.0 was developed in 1995 • HTML 3.2 was completed by 1996 • HTML 4 was developed in the year 1997 • The Web Hypertext Application Technology Working Group (WHATWG) began work on the new standard in 2004 • In 2006 W3C showed an interest in HTML5 and in 2007 they created a working group to work in HTML5 project. • HTML5 is still under development. 4 04/22
  • 5. NEW FEATURES IN HTML5  API's for multimedia by using video and audio tags  Drag and drop API  HTML canvas 2D context  HTML5 Geo location  New Input types  Web storage 5 05/22
  • 6. New Semantic Elements • <section> • <nav> • <article> • <hgroup> • <aside> • <header> • <footer> • <legend> • <figure> 6 06/22
  • 7. NEW INPUT TYPE Syntax: E-mail: <input type="email" name="usremail" /> •color (in hexadecimal like #FF8800) • date • datetime • email • month • number • range • search • tel • time •url 7 07/22
  • 8. Canvas • Dynamic and interactive graphics • Draw images using 2D drawing API • Lines, curves, shapes, fills, etc. <canvas width="300" height="225"></canvas>  You can display Text, Image, Gradient etc.  You can make games without using flash. 8 08/22
  • 9. Video & Audio • <video> • Allows to embed a video on a web page - width, height, controls are the attributes. • Very useful feature in todays web scenario. • <source>,<track> are the tags which can be used along with <video>. • <audio> • Allows to embed a audio on a web page. • Text displayed between <audio> and </audio> will be shown as an error if browser does not support audio. • autoplay, controls, src, loop, preload ares some of its attributes. 9 09/22
  • 10. Video <video width="320" height="240" controls="controls"><source src="movie.mp4" type="video/mp4" /></video> New Attributes •Autoplay •Controls (play,pause.seeking,volume,caption,track) •Height •Loop •Muted •Width •src 10 10/22
  • 11. Drag and Drop • In HTML5 any element is draggable . • To make an element draggable, set the draggable attribute to true < img draggable=”true”/> • What to drag?- ondragstart attribute calls a function, drag(event) which has a method dataTransfer.setData() method sets the data type and the value of the dragged data. • Where to drag?-ondragover event tells about where to drop dragged element. • Do the drop: When the dragged data is dropped, a drop event occurs. drop(event) function we implement things which will occur on release of drag operation. 11 11/22
  • 12. Progress bar • Useful for: • Indicate loading progress • Show user progress through a series of forms The <progress> tag represents the progress of a task. The <progress> tag is currently supported in Firefox, Opera, and Chrome. <progress value="22" max="100"></progress> Attributes:- 1) max:- Specifies how much work the task requires in total.2) 2) value:- Specifies how much of the task has been completed. 12 12/22
  • 13. Place Holder • The placeholder attribute provides a hint that describes the expected value of an input field. • Note: The placeholder attribute works with the following <input> types: text, search, url, telephone, email, and password • The hint is displayed in the input field when it is empty, and disappears when the field gets focus: <input type=“text" name=“username" placeholder=“First name" /> 13 13/22
  • 15. HTML5 Web Storage HTML5, web pages can store data locally within the users browser. Web Storage in HTML5 can be viewed as improvement over cookies. Provides 5-10 MB storage space compared to 4 KB in cookies. Web Storage is more secure and faster than cookies. Data is stored in key/value pairs, and a web page can only access data stored by itself. Web server can not access web storage data directly. Store large amounts of data, without affecting the websites performance. Two new objects for storing data on the client: (a) localStorage - stores data with no expiration date (b) sessionStorage - stores data for one session 15 15/22
  • 16. localStorage & sessionStorage The localStorage object stores the data with no expiration date. The data will not be deleted when the browser is closed, and will be available the next day, week, or year. localStorage.setItem(myKey, myValue); var myVar = localStorage.getItem(myKey); The sessionStorage object is equal to the localStorage object, except that it stores the data for only one session. The data is deleted when the user closes the browser window. sessionStorage.setItem(myKey, myValue); var myVar = sessionStorage.getItem(myKey); 16 16/22
  • 17. Geo-location Geo-location API is used to get the geographical position of a web site user. getCurrentPosition() method to get the users position. If the getCurrentPosition() method is successful, it returns a coordinates object to the function specified in the parameter(showPosition) showPosition() function gets the displays the Latitude and Longitude. watchPosition() - Returns the current position of the user. 17 17/22
  • 18. Difference between HTML4 and HTML5 HTML4 HTML5 Elements like nav , header were not present. It brought new element for web structure like nav, header etc It was lack of rules of parsing so it is difficult to handle error. Strictly parsing rules introduced in html5 so handle the error. No multimedia supported without third party It inbuilt multimedia element in html5 like Audio , video, canvas It was not available It contains attributes like control menu, spell check etc. 18 18/22
  • 19. Browser • All major bCrowoser msuppoprt HaTMtL5i.bility • Though no browser fully supports HTML5, most of the browsers keep releasing their new version to support various new features of HTML5. • Following Browsers supports HTML5. • We can check how much our browser supports HTML5 by visiting tofollowing link through our browser.http://www.html5test.com 19 19/22
  • 20. Websites that are using HTML5  www.youtube.com  www.w3c.com  www.facebook.com  www.techzion.org  www.thewildernessdowntown.com  play.google.com/about/music/tour/ 20 20/22
  • 21. Conclusion • HTML5 is still a work in progress • Only a handful of major brands, including Mozilla Firefox and Google Chrome currently support HTML5 elements. • Microsoft’s Internet Explorer is the most widely used browser and currently has the least amount of support for HTML5. • Reduce the use of external plugins (flash player). • HTML5 will replace the majority of native apps over the next 3 to 5years. • HTML5 allows offline storage . • HTML5 is Future of websites. 21 21/22