HTML 5
  Rohit Patel(04)
  Kunjan Patel(60)



                     ©Rohit patel
Topic To be Covered:
• Introduction
• Multimedia
• Graphics
• Applications
•Input types
• Structure and Semantics




                       ©Rohit patel
Introduction
 • What is HTML5?
      HTML5   is the new standard of HTML.
 • How Did HTML5 Get Started?
      HTML5   is a cooperation between the W3C and WHATWG.

 •Some rules for HTML5 were established:
     `

    New features should be based on HTML, CSS, DOM, and JavaScript.
    Reduce the need for external plug-in (like Flash).
    Better error handling.
    More markup to replace scripting.
    HTML5 should be device independent.
    The development process should be visible to the public.




                               ©Rohit patel
<!DOCTYPE>
  •The <!DOCTYPE> declaration must be the very first thing in your
  HTML document, before the <html> tag.

  •The <!DOCTYPE> declaration is not an HTML tag; it is an
  instruction to the web browser about what version of HTML the
  page is written in.

  HTML 5
  ex: <!DOCTYPE html>
  HTML 4.01
  ex: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
     "http://www.w3.org/TR/html4/strict.dtd">



                                 ©Rohit patel
HTML5 Multimedia
  •With HTML5, playing video and audio is easier than ever.

        • <video>
        • <audio>




                           ©Rohit patel
<video> & <audio>
 •Today, most videos are shown through a plug-in (like flash).
 However, different browsers may have different plug-ins.

 •HTML5 defines a new element which specifies a standard way to
 embed a video/movie on a web page: the <video> element.

 •Example

 •<video src=“movie.mp4” autoplay loop controls height=“300px”
 width=“300px” >

 •<audio src=“song.mp3” controls>




                            ©Rohit patel
©Rohit patel
Browser Supports(video Format)




Browser Supports(audio Format)




               ©Rohit patel
HTML5 Graphics
 With HTML5, drawing graphics is easier than
 ever:
    •Using the <canvas> element
    •Using inline SVG(Scalable Vector Graphics)
    •Using CSS3 2D/3D

<canvas>
 •The HTML5 <canvas> element is used to draw graphics, on the
 fly, via scripting (usually JavaScript).
 •example
 •The <canvas> element is only a container for graphics. You
 must use a script to actually draw the graphics.


                            ©Rohit patel
©Rohit patel
HTML5 Applications
 With HTML5, web application development is easier than
 ever.

  •Web Storage
  •App Cache
  •Web Worker




                         ©Rohit patel
• Web Storage
 • With HTML5, web pages can store data locally within the user's
 browser.
 • Earlier, this was done with cookies.
 • However, Web Storage is more secure and faster. The data is not
 included with every server request, but used ONLY when asked for.
 • The data is stored in key/value pairs, and a web page can only access
 data stored by itself.
 •There are two new objects for storing data on the client:
    localStorage - 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.

   sessionStorage - 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.
                                   ©Rohit patel
•App Cache
  • HTML5 introduces application cache, which means that a web
  application is cached, and accessible without an internet connection.

  Application cache gives an application three advantages:
  1. Offline browsing - users can use the application when they're offline
  2. Speed - cached resources load faster
  3. Reduced server load - the browser will only download
     updated/changed resources from the server
  •   To enable application cache, include the manifest attribute in the
      document's <html> tag,It’s simple text file.
  •   Example:
        <html manifest="demo.appcache">
         CACHE MANIFEST
         NETWORK
         FALLBACK


                                  ©Rohit patel
• Web Workers
 • A web worker is a JavaScript that runs in the
 background, independently of other scripts, without affecting the
 performance of the page.

 • When executing scripts in an HTML page, the page becomes
 unresponsive until the script is finished.

 • You can continue to do whatever you want: clicking, selecting
 things, etc., while the web worker runs in the background.

 • Web workers are supported in all major browsers, except Internet
 Explorer.




                                  ©Rohit patel
New Input Types
 • color
 • datetime
 • email
 • month
 • number
 • range
 • url




                  ©Rohit patel
• Input Type: color
  •Select a color from a color picker.
  • <input type="color" name="favcolor">
  •Example
• Input Type: datetime
  •Define a date and time control (with time zone).
  • <input type="datetime" name="bdaytime">
  •Example
• Input Type: email
  • Define a field for an e-mail address (will be automatically validated
  when submitted)
  • <input type="email" name="usremail">
  •Example

• Input Type: month
  • The month type allows the user to select a month and year.
  •<input type="month" name="bdaymonth">
  •Example
                                   ©Rohit patel
• Input Type: number
   • The number type is used for input fields that should contain
    numeric value.
   •You can also set restrictions on what numbers are accepted.
   • <input type="number" name="quantity" min="1" max="5">
   •Example
• Input Type: range
   • The range type is used for input fields that should contain a value
   from a range of numbers.
   •You can also set restrictions on what numbers are accepted.
   •<input type="range" name="points" min="1" max="10">
   •Example
• Input Type: url
 • The url type is used for input fields that should contain a URL
 address.
 •The value of the url field is automatically validated when the form is
 submitted.
 • <input type="url" name="homepage">
 •Example                             ©Rohit patel
<datalist>
 •The <datalist> element specifies a list of pre-defined options for an
 <input> element.
 •The <datalist> element is used to provide an "autocomplete" feature on
 <input> elements. Users will see a drop-down list of pre-defined options
 as they input data.
 •Example:

 <input list="browsers">

 <datalist id="browsers">
  <option value="Internet Explorer">
  <option value="Firefox">
  <option value="Chrome">
  <option value="Opera">
  <option value="Safari">
 </datalist>
                                 ©Rohit patel
<output>
 •The <output> element represents the result of a calculation (like one
 performed by a script).

 •Example:

 <form oninput="x.value=parseInt(a.value)+parseInt(b.value)">0
 <input type="range" name="a" value="50">100 +
 <input type="number" name="b" value="50">=
 <output name="x" for="a b"></output>
 </form>




                                  ©Rohit patel
•Structure and Semantics
               <div <header>
                    id="header">




              <div class="article">
                    <article>


 <div                                 <div
      <nav>   <div <section>
                   id="content">           <aside>
 id="nav">                            id="right">




               <div <footer>
                    id="footer">




                   ©Rohit patel
<progress> Tag
•Show completion progress of a taskProgress bars are widely used in
other applications Works with scripted applications.

•Useful for:
    •Indicate loading progress of an AJAX application
    •Show user progress through a series of forms
    •Making impatient users wait.

•Example:
Downloading progress:
<progress value="22" max="100"></progress>




                                   ©Rohit patel
<mark> Tag

•Marked or Highlighted text
•Indicates point of interest or relevance
Useful for:
    Highlighting relevant code in a code sample
    Highlighting search keywords in a document (e.g. in Google
    Cache)
•Example
  <p>This is a <mark>Mark</mark>tag example.</p>

          This is a Mark tag example.

                            ©Rohit patel
•HOW WELL DOES YOUR BROWSER SUPPORT HTML5?
                              Source: www.Html5test.com




              Where ,Score Out of 500
                   ©Rohit patel
THANKS

  ©Rohit patel

More Related Content

PPTX
HTML 5
PPTX
An introduction to DOM , JAVASCRIPT , JQUERY, AJAX and JSON
PDF
Web components
PPT
Xml http request
PDF
PPTX
Building AOL's High Performance, Enterprise Wide Mail Application With Silver...
PDF
MongoDB.local Berlin: Building a GraphQL API with MongoDB, Prisma and Typescript
PDF
MongoDB.local Berlin: App development in a Serverless World
HTML 5
An introduction to DOM , JAVASCRIPT , JQUERY, AJAX and JSON
Web components
Xml http request
Building AOL's High Performance, Enterprise Wide Mail Application With Silver...
MongoDB.local Berlin: Building a GraphQL API with MongoDB, Prisma and Typescript
MongoDB.local Berlin: App development in a Serverless World

What's hot (20)

PDF
Build Reusable Web Components using HTML5 Web cComponents
PPTX
HTML5 Gaming Payment Platforms
PPT
Easy javascript
PDF
Angular - Chapter 6 - Firebase Integration
PDF
Angular - Chapter 9 - Authentication and Authorization
PPTX
Building Real Time Applications with ASP.NET SignalR 2.0 by Rachel Appel
PDF
Offline strategies for HTML5 web applications - ConFoo13
PDF
Enterprise PHP Architecture through Design Patterns and Modularization (Midwe...
PPTX
Building Modern Websites with ASP.NET by Rachel Appel
PDF
Web Components Everywhere
PDF
JavaScript
PDF
Offline strategies for HTML5 web applications - pfCongres2012
PDF
Offline Strategies for HTML5 Web Applications - ipc13
PDF
Spca2014 js link and display templates hatch
PDF
SOA with Zend Framework
PPTX
e-suap - client technologies- english version
PDF
Introduction to JavaScript for APEX Developers - Module 3: Working with the D...
PPTX
01 startoff angularjs
PDF
The Time for Vanilla Web Components has Arrived
PDF
Rethinking Syncing at AltConf 2019
Build Reusable Web Components using HTML5 Web cComponents
HTML5 Gaming Payment Platforms
Easy javascript
Angular - Chapter 6 - Firebase Integration
Angular - Chapter 9 - Authentication and Authorization
Building Real Time Applications with ASP.NET SignalR 2.0 by Rachel Appel
Offline strategies for HTML5 web applications - ConFoo13
Enterprise PHP Architecture through Design Patterns and Modularization (Midwe...
Building Modern Websites with ASP.NET by Rachel Appel
Web Components Everywhere
JavaScript
Offline strategies for HTML5 web applications - pfCongres2012
Offline Strategies for HTML5 Web Applications - ipc13
Spca2014 js link and display templates hatch
SOA with Zend Framework
e-suap - client technologies- english version
Introduction to JavaScript for APEX Developers - Module 3: Working with the D...
01 startoff angularjs
The Time for Vanilla Web Components has Arrived
Rethinking Syncing at AltConf 2019
Ad

Viewers also liked (15)

PDF
The Attention Phenomenon You and Your Employees Don't Realize is Happening
DOCX
PDF
077813
PDF
Vipin Rajan Padipura Resume
PDF
Donnie lygonis utbildning 2 affrsplan
PDF
Filosofia
DOC
Resume_Arjun
PPT
Chpt 19 industrialization
DOCX
Dsl technology report
PPTX
Introductory grant workshop
PDF
[Présentation] La Vie Locale
PPTX
A seminar presentation on dsl
PPT
Training development382
PDF
[Etude] La Vie Locale : ré-enraciner la consommation pour des territoires plu...
PDF
[Infographie] Les Français, la consommation locale et le digital
The Attention Phenomenon You and Your Employees Don't Realize is Happening
077813
Vipin Rajan Padipura Resume
Donnie lygonis utbildning 2 affrsplan
Filosofia
Resume_Arjun
Chpt 19 industrialization
Dsl technology report
Introductory grant workshop
[Présentation] La Vie Locale
A seminar presentation on dsl
Training development382
[Etude] La Vie Locale : ré-enraciner la consommation pour des territoires plu...
[Infographie] Les Français, la consommation locale et le digital
Ad

Similar to Rohit&kunjan (20)

PPTX
PPT
HTML5 Presentation
PDF
HTML5 Refresher
PPSX
Introduction to Html5
PPTX
Html 5
ODP
Html5
PPT
Html5 Future of WEB
ODP
Html5
PPTX
Presentation about html5 css3
PPT
HTML5 Webinar - Mind Storm Software
PPTX
HTML5 introduction for beginners
PDF
Html5 workshop part 1
PDF
HTML5 New and Improved
ODP
Html5
PPTX
PDF
PDF
HTML5 and CSS3 refresher
PPT
HTML5: An Introduction To Next Generation Web Development
PPT
PDF
HTML5 Presentation
HTML5 Refresher
Introduction to Html5
Html 5
Html5
Html5 Future of WEB
Html5
Presentation about html5 css3
HTML5 Webinar - Mind Storm Software
HTML5 introduction for beginners
Html5 workshop part 1
HTML5 New and Improved
Html5
HTML5 and CSS3 refresher
HTML5: An Introduction To Next Generation Web Development

Recently uploaded (20)

PPTX
Benefits of Physical activity for teenagers.pptx
PDF
Microsoft Solutions Partner Drive Digital Transformation with D365.pdf
PPTX
Modernising the Digital Integration Hub
PPT
Module 1.ppt Iot fundamentals and Architecture
PDF
A comparative study of natural language inference in Swahili using monolingua...
PDF
Enhancing emotion recognition model for a student engagement use case through...
PDF
Hybrid model detection and classification of lung cancer
PDF
sustainability-14-14877-v2.pddhzftheheeeee
PPT
What is a Computer? Input Devices /output devices
PDF
CloudStack 4.21: First Look Webinar slides
PDF
Hybrid horned lizard optimization algorithm-aquila optimizer for DC motor
PDF
TrustArc Webinar - Click, Consent, Trust: Winning the Privacy Game
PPTX
Final SEM Unit 1 for mit wpu at pune .pptx
PPTX
Group 1 Presentation -Planning and Decision Making .pptx
PPTX
Tartificialntelligence_presentation.pptx
PPTX
O2C Customer Invoices to Receipt V15A.pptx
PDF
DP Operators-handbook-extract for the Mautical Institute
PDF
Transform Your ITIL® 4 & ITSM Strategy with AI in 2025.pdf
PDF
Taming the Chaos: How to Turn Unstructured Data into Decisions
DOCX
search engine optimization ppt fir known well about this
Benefits of Physical activity for teenagers.pptx
Microsoft Solutions Partner Drive Digital Transformation with D365.pdf
Modernising the Digital Integration Hub
Module 1.ppt Iot fundamentals and Architecture
A comparative study of natural language inference in Swahili using monolingua...
Enhancing emotion recognition model for a student engagement use case through...
Hybrid model detection and classification of lung cancer
sustainability-14-14877-v2.pddhzftheheeeee
What is a Computer? Input Devices /output devices
CloudStack 4.21: First Look Webinar slides
Hybrid horned lizard optimization algorithm-aquila optimizer for DC motor
TrustArc Webinar - Click, Consent, Trust: Winning the Privacy Game
Final SEM Unit 1 for mit wpu at pune .pptx
Group 1 Presentation -Planning and Decision Making .pptx
Tartificialntelligence_presentation.pptx
O2C Customer Invoices to Receipt V15A.pptx
DP Operators-handbook-extract for the Mautical Institute
Transform Your ITIL® 4 & ITSM Strategy with AI in 2025.pdf
Taming the Chaos: How to Turn Unstructured Data into Decisions
search engine optimization ppt fir known well about this

Rohit&kunjan

  • 1. HTML 5 Rohit Patel(04) Kunjan Patel(60) ©Rohit patel
  • 2. Topic To be Covered: • Introduction • Multimedia • Graphics • Applications •Input types • Structure and Semantics ©Rohit patel
  • 3. Introduction • What is HTML5?  HTML5 is the new standard of HTML. • How Did HTML5 Get Started?  HTML5 is a cooperation between the W3C and WHATWG. •Some rules for HTML5 were established: ` New features should be based on HTML, CSS, DOM, and JavaScript. Reduce the need for external plug-in (like Flash). Better error handling. More markup to replace scripting. HTML5 should be device independent. The development process should be visible to the public. ©Rohit patel
  • 4. <!DOCTYPE> •The <!DOCTYPE> declaration must be the very first thing in your HTML document, before the <html> tag. •The <!DOCTYPE> declaration is not an HTML tag; it is an instruction to the web browser about what version of HTML the page is written in. HTML 5 ex: <!DOCTYPE html> HTML 4.01 ex: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> ©Rohit patel
  • 5. HTML5 Multimedia •With HTML5, playing video and audio is easier than ever. • <video> • <audio> ©Rohit patel
  • 6. <video> & <audio> •Today, most videos are shown through a plug-in (like flash). However, different browsers may have different plug-ins. •HTML5 defines a new element which specifies a standard way to embed a video/movie on a web page: the <video> element. •Example •<video src=“movie.mp4” autoplay loop controls height=“300px” width=“300px” > •<audio src=“song.mp3” controls> ©Rohit patel
  • 8. Browser Supports(video Format) Browser Supports(audio Format) ©Rohit patel
  • 9. HTML5 Graphics With HTML5, drawing graphics is easier than ever: •Using the <canvas> element •Using inline SVG(Scalable Vector Graphics) •Using CSS3 2D/3D <canvas> •The HTML5 <canvas> element is used to draw graphics, on the fly, via scripting (usually JavaScript). •example •The <canvas> element is only a container for graphics. You must use a script to actually draw the graphics. ©Rohit patel
  • 11. HTML5 Applications With HTML5, web application development is easier than ever. •Web Storage •App Cache •Web Worker ©Rohit patel
  • 12. • Web Storage • With HTML5, web pages can store data locally within the user's browser. • Earlier, this was done with cookies. • However, Web Storage is more secure and faster. The data is not included with every server request, but used ONLY when asked for. • The data is stored in key/value pairs, and a web page can only access data stored by itself. •There are two new objects for storing data on the client: localStorage - 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. sessionStorage - 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. ©Rohit patel
  • 13. •App Cache • HTML5 introduces application cache, which means that a web application is cached, and accessible without an internet connection. Application cache gives an application three advantages: 1. Offline browsing - users can use the application when they're offline 2. Speed - cached resources load faster 3. Reduced server load - the browser will only download updated/changed resources from the server • To enable application cache, include the manifest attribute in the document's <html> tag,It’s simple text file. • Example: <html manifest="demo.appcache"> CACHE MANIFEST NETWORK FALLBACK ©Rohit patel
  • 14. • Web Workers • A web worker is a JavaScript that runs in the background, independently of other scripts, without affecting the performance of the page. • When executing scripts in an HTML page, the page becomes unresponsive until the script is finished. • You can continue to do whatever you want: clicking, selecting things, etc., while the web worker runs in the background. • Web workers are supported in all major browsers, except Internet Explorer. ©Rohit patel
  • 15. New Input Types • color • datetime • email • month • number • range • url ©Rohit patel
  • 16. • Input Type: color •Select a color from a color picker. • <input type="color" name="favcolor"> •Example • Input Type: datetime •Define a date and time control (with time zone). • <input type="datetime" name="bdaytime"> •Example • Input Type: email • Define a field for an e-mail address (will be automatically validated when submitted) • <input type="email" name="usremail"> •Example • Input Type: month • The month type allows the user to select a month and year. •<input type="month" name="bdaymonth"> •Example ©Rohit patel
  • 17. • Input Type: number • The number type is used for input fields that should contain numeric value. •You can also set restrictions on what numbers are accepted. • <input type="number" name="quantity" min="1" max="5"> •Example • Input Type: range • The range type is used for input fields that should contain a value from a range of numbers. •You can also set restrictions on what numbers are accepted. •<input type="range" name="points" min="1" max="10"> •Example • Input Type: url • The url type is used for input fields that should contain a URL address. •The value of the url field is automatically validated when the form is submitted. • <input type="url" name="homepage"> •Example ©Rohit patel
  • 18. <datalist> •The <datalist> element specifies a list of pre-defined options for an <input> element. •The <datalist> element is used to provide an "autocomplete" feature on <input> elements. Users will see a drop-down list of pre-defined options as they input data. •Example: <input list="browsers"> <datalist id="browsers"> <option value="Internet Explorer"> <option value="Firefox"> <option value="Chrome"> <option value="Opera"> <option value="Safari"> </datalist> ©Rohit patel
  • 19. <output> •The <output> element represents the result of a calculation (like one performed by a script). •Example: <form oninput="x.value=parseInt(a.value)+parseInt(b.value)">0 <input type="range" name="a" value="50">100 + <input type="number" name="b" value="50">= <output name="x" for="a b"></output> </form> ©Rohit patel
  • 20. •Structure and Semantics <div <header> id="header"> <div class="article"> <article> <div <div <nav> <div <section> id="content"> <aside> id="nav"> id="right"> <div <footer> id="footer"> ©Rohit patel
  • 21. <progress> Tag •Show completion progress of a taskProgress bars are widely used in other applications Works with scripted applications. •Useful for: •Indicate loading progress of an AJAX application •Show user progress through a series of forms •Making impatient users wait. •Example: Downloading progress: <progress value="22" max="100"></progress> ©Rohit patel
  • 22. <mark> Tag •Marked or Highlighted text •Indicates point of interest or relevance Useful for: Highlighting relevant code in a code sample Highlighting search keywords in a document (e.g. in Google Cache) •Example <p>This is a <mark>Mark</mark>tag example.</p> This is a Mark tag example. ©Rohit patel
  • 23. •HOW WELL DOES YOUR BROWSER SUPPORT HTML5? Source: www.Html5test.com Where ,Score Out of 500 ©Rohit patel
  • 24. THANKS ©Rohit patel

Editor's Notes