SlideShare ist ein Scribd-Unternehmen logo
1 von 26
HTML 5 – Introduction
                    HTML5 is here, and the Web will never be the same




                                     Manoj Kumar
                                     Sr. Technical Consultant
                                     manoj.kumar@neudesic.com           29 Aug, 2011




The Trusted Technology Partner in Business Innovation
Products | Consulting Services | Managed Services
Agenda

    • HTML5 Features: Main features it has and how are we going to cover them
      in coming sessions

    • HTML5 Semantic Markup

    • HTML5 Audio and Video

    • Next session sneak peek


The Trusted Technology Partner in Business Innovation
Products | Consulting Services | Managed Services
What is exactly HTML5?

             – HTML5 = HTML + CSS + JavaScript

             – How developers use improved markup, richer style capabilities and new JavaScript APIs to
               make the most of new Web development features?

             – W3C: all 100-plus of these specifications under the moniker “HTML5”

             – A unifying concept for that change

             – So: HTML5 is about changes to HTML, CSS and JavaScript. Rather than worrying about all
               100-plus specifications


The Trusted Technology Partner in Business Innovation
Products | Consulting Services | Managed Services
Main Features
    • HTML5 Semantic & Markup, Forms 2.0
    • HTML5 Audio and Video Multimedia
    • HTML5 Canvas
    • Scalable Vector Graphics (SVG)
    • HTML5 FileSystem APIs, Geolocation, Speech Input
    • Web Storage, Microdata, Server-Sent Events
    • Web Workers, Web Sockets, Notifications
    • Cascading Style Sheets, Level 3 (CSS3): Media Queries,
      2D/3D transforms, Grid System, Web fonts etc.
    • ECMAScript5
The Trusted Technology Partner in Business Innovation
Products | Consulting Services | Managed Services
HTML5 Semantics & Markup




The Trusted Technology Partner in Business Innovation
Products | Consulting Services | Managed Services
HTML5 Semantics & Markup
    • Not as XHTML, HTML5 has lots of flexibility and would support the
      followings:
             –     Uppercase tag names.
             –     Quotes are optional for attributes.
             –     Attribute values are optional.
             –     Closing empty elements are optional.
    • Some rules for HTML5 were established:
             –     New features should be based on HTML, CSS, DOM, and JavaScript
             –     Reduce the need for external plugins (like Flash)
             –     Better error handling
             –     More markup to replace scripting
             –     HTML5 should be device independent
             –     The development process should be visible to the public

The Trusted Technology Partner in Business Innovation
Products | Consulting Services | Managed Services
Shorter Markups
    Old way                                                               HTML5 way

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"              <!DOCTYPE html>
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

    <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">   <html lang="en">


    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">   <meta charset="utf-8" />


    <link rel="stylesheet" href="style-original.css" type="text/css" />   <link rel="stylesheet" href="style-
                                                                          original.css" />

    <script type="text/javascript" src="scriptfile.js"></script>          <script src="scriptfile.js"></script>



The Trusted Technology Partner in Business Innovation
Products | Consulting Services | Managed Services
HTML5 Semantics
          – Elements, attributes, and attribute values in HTML : Have certain meanings (semantics).
            For example, the ol element represents an ordered list, and the lang attribute represents
            the language of the content.

          – Correct HTML5 markup allow it to be used in wide variety of context.

          – Simple example: Same Web page written by an author who only considered desktop
            computer Web browsers can be viewed by a small browser on a mobile phone.
            [Because HTML conveys meaning, rather than presentation]

          – Authors must not use elements, attributes, or attribute values for purposes other than
            their appropriate intended semantic purpose, as doing so prevents software from
            correctly processing the page.

The Trusted Technology Partner in Business Innovation
Products | Consulting Services | Managed Services
New Semantic Elements in HTML5
              HTML5 is not just about making existing markup shorter.

              <section> The section element represents a generic document or application section.
                          Examples: A Web site's home page could be split into sections for an introduction,
                                      news items, contact information.
                          <div> vs semantic elements (???)

              <nav>          Represents a section of a page that links to other pages or to parts within the page:
                                — only sections that consist of major navigation blocks In particular

              <article> A component of a page that consists of a self-contained composition in a document,
                        page, application, or site and that is intended to be independently reusable
                           Examples: Forum post, a magazine article, a user-submitted comment

              <aside> A section of a page that consists of content that is tangentially related to the content
                         Examples: pull quotes or sidebars, for advertising, for groups of nav elements

The Trusted Technology Partner in Business Innovation
Products | Consulting Services | Managed Services
New Semantic Elements in HTML5
          <figure> and <figcaption> A unit of content, optionally with a caption, and that can be moved away
          from the main flow of the document without affecting the document’s meaning.
          <figure> vs <aside> : If the content is simply related and not essential, use <aside>.
          If the content is essential but its position in the flow of content isn’t important, use <figure>.

          <hgroup>Heading of a section. The element is used to group a set of h1–h6 elements when the heading
                  has multiple levels, such as subheadings, alternative titles, or taglines

          <header>The header element represents a group of introductory or navigational aids.

          <footer> The footer element represents a footer for its nearest ancestor sectioning content or
                      sectioning root element.

          <time> The time element represents either a time on a 24 hour clock, or a precise date

          <mark> The mark element represents a run of text in one document marked or highlighted for
                    reference purposes.

The Trusted Technology Partner in Business Innovation
Products | Consulting Services | Managed Services
Semantic Elements and div: How to select?




The Trusted Technology Partner in Business Innovation
Products | Consulting Services | Managed Services
New Semantic Elements in HTML5: Article
        Scenario:




                                                        HTML5:




The Trusted Technology Partner in Business Innovation
Products | Consulting Services | Managed Services
New Semantic Elements in HTML5: Dates and Times
                          Scenario:




The Trusted Technology Partner in Business Innovation
Products | Consulting Services | Managed Services
New Semantic Elements in HTML5: Navigation
 One of the most important parts of any web site is the navigation bar.
   Scenario:




Use cases:
- Motion is limited: a browser add-on allows you to jump to (or jump past) major navigation links
- Sight is limited: Using “screenreader” to go thru the document (screenreader to jump over
    the navigation bar and start reading the main content)
SO: Being able to determine navigation links programmatically is important

The Trusted Technology Partner in Business Innovation
Products | Consulting Services | Managed Services
New Semantic Elements in HTML5: Footer
 Scenario:




   HTML5:




   Contents: Its section such as who wrote it,
   links to related documents, copyright data, and the like.
   Fat footers: A rage these days


The Trusted Technology Partner in Business Innovation
Products | Consulting Services | Managed Services
HTML5 Markup – Other enhancements
             – Markup for applications: <datalist>, <progress>, <meter>, <details>, <summary>




             – Descriptive link relation:




The Trusted Technology Partner in Business Innovation
Products | Consulting Services | Managed Services
Semantics and Markup: Demo




The Trusted Technology Partner in Business Innovation
Products | Consulting Services | Managed Services
HTML5 - Web Forms 2.0 : New input types

    datetime                year, month, day, hour, minute, second, fractions of a second. Encoded- ISO 8601. time zone-UTC.

    datetime-local Same but with no time zone.
    date                    date (year, month, day)
    month                   date consisting of a year and a month
    week                    date consisting of a year and a week number
    time                    time (hour, minute, seconds, fractional seconds)
    number                  only numerical value. The step attribute specifies the precision, defaulting to 1

    range                   contain a value from a range of numbers
    email                   accepts only email value. Format - email@example.com
    url                     Should contain a URL address. Format- http://www.example.com or http://example.com


The Trusted Technology Partner in Business Innovation
Products | Consulting Services | Managed Services
HTML5 - Web Forms 2.0: Other enhancements
             – <output> element
             – Attribute (**attribute is supported by latest versions of Mozilla, Safari and Crome browsers only)
                 • placeholder:
                 • autofocus
                 • required
             – Custom Attributes
                 • A custom data attribute starts with data- and would be named based on your
                    requirement. Works with JavaScript APIs or CSS in similar way.



                       • Access:
                                – Dom: getAttribute("data-subject")
                                – Dataset: dataset.subject

The Trusted Technology Partner in Business Innovation
Products | Consulting Services | Managed Services
Web Form: Demo




The Trusted Technology Partner in Business Innovation
Products | Consulting Services | Managed Services
HTML5 Multimedia – Audio & Video




The Trusted Technology Partner in Business Innovation
Products | Consulting Services | Managed Services
HTML5 - Audio
             – No plugin (Even with plugin, not all browser has same plugin)
             – Audio formats:
                 • Ogg
                 • Mp3
                 • Wav
             – Example:




             – Attributes: autoplay, controls, loop, preload, src

             – Media Events (Audio+Video): abort, canplay, ended, error, loadeddata, loadstart, pause,
               play, progress, ratechange, seeked, seeking, suspend, volumechange, waiting

The Trusted Technology Partner in Business Innovation
Products | Consulting Services | Managed Services
HTML5 - Video
             – No plugin required
             – Video Formats
                 • Ogg : Ogg files with Theora video codec and Vorbis audio codec
                 • MPEG4 : MPEG 4 files with H.264 video codec and AAC audio codec
                 • WebM : WebM files with VP8 video codec and Vorbis audio codec
             – Example:




             – Attributes: audio, autoplay, controls, loop, poster, preload, src

             – Video Support:


The Trusted Technology Partner in Business Innovation
Products | Consulting Services | Managed Services
Audio & Video: Demo




The Trusted Technology Partner in Business Innovation
Products | Consulting Services | Managed Services
HTML5 – Video codec support in browsers




The Trusted Technology Partner in Business Innovation
Products | Consulting Services | Managed Services
Thank You
                                                         Manoj Kumar
                                                         manoj.kumar@neudesic.com




The Trusted Technology Partner in Business Innovation
Products | Consulting Services | Managed Services

Weitere ähnliche Inhalte

Was ist angesagt?

8 - Productividad en la Nube con BPOS - SharePoint Online, por Luis Du Solier
8 - Productividad en la Nube con BPOS - SharePoint Online, por Luis Du Solier8 - Productividad en la Nube con BPOS - SharePoint Online, por Luis Du Solier
8 - Productividad en la Nube con BPOS - SharePoint Online, por Luis Du SolierLuis Du Solier
 
ECS19 - Matthew McDermott - How to Run a Search Project in SharePoint
ECS19 - Matthew McDermott - How to Run a Search Project in SharePointECS19 - Matthew McDermott - How to Run a Search Project in SharePoint
ECS19 - Matthew McDermott - How to Run a Search Project in SharePointEuropean Collaboration Summit
 
A Simpleton's Guide to Business Intelligence in SharePoint 2010
A Simpleton's Guide to Business Intelligence in SharePoint 2010A Simpleton's Guide to Business Intelligence in SharePoint 2010
A Simpleton's Guide to Business Intelligence in SharePoint 2010Chris McNulty
 
Concurrency SharePoint Summit 2015
Concurrency SharePoint Summit 2015Concurrency SharePoint Summit 2015
Concurrency SharePoint Summit 2015Drew Madelung
 
4 - Silverlight y SharePoint, por Rodrigo Diaz y Mauricio Angulo
4 - Silverlight y SharePoint, por Rodrigo Diaz y Mauricio Angulo4 - Silverlight y SharePoint, por Rodrigo Diaz y Mauricio Angulo
4 - Silverlight y SharePoint, por Rodrigo Diaz y Mauricio AnguloLuis Du Solier
 
Share point development services case study
Share point development services case studyShare point development services case study
Share point development services case studyNandita Nityanandam
 
Business Intelligence in SharePoint 2013
Business Intelligence in SharePoint 2013Business Intelligence in SharePoint 2013
Business Intelligence in SharePoint 2013Jason Himmelstein
 
Learn why Microsoft Power BI is an Undisputed Market Leader?
Learn why Microsoft Power BI is an Undisputed Market Leader?Learn why Microsoft Power BI is an Undisputed Market Leader?
Learn why Microsoft Power BI is an Undisputed Market Leader?Visual_BI
 

Was ist angesagt? (9)

8 - Productividad en la Nube con BPOS - SharePoint Online, por Luis Du Solier
8 - Productividad en la Nube con BPOS - SharePoint Online, por Luis Du Solier8 - Productividad en la Nube con BPOS - SharePoint Online, por Luis Du Solier
8 - Productividad en la Nube con BPOS - SharePoint Online, por Luis Du Solier
 
Business Intelligence in SharePoint
Business Intelligence in SharePointBusiness Intelligence in SharePoint
Business Intelligence in SharePoint
 
ECS19 - Matthew McDermott - How to Run a Search Project in SharePoint
ECS19 - Matthew McDermott - How to Run a Search Project in SharePointECS19 - Matthew McDermott - How to Run a Search Project in SharePoint
ECS19 - Matthew McDermott - How to Run a Search Project in SharePoint
 
A Simpleton's Guide to Business Intelligence in SharePoint 2010
A Simpleton's Guide to Business Intelligence in SharePoint 2010A Simpleton's Guide to Business Intelligence in SharePoint 2010
A Simpleton's Guide to Business Intelligence in SharePoint 2010
 
Concurrency SharePoint Summit 2015
Concurrency SharePoint Summit 2015Concurrency SharePoint Summit 2015
Concurrency SharePoint Summit 2015
 
4 - Silverlight y SharePoint, por Rodrigo Diaz y Mauricio Angulo
4 - Silverlight y SharePoint, por Rodrigo Diaz y Mauricio Angulo4 - Silverlight y SharePoint, por Rodrigo Diaz y Mauricio Angulo
4 - Silverlight y SharePoint, por Rodrigo Diaz y Mauricio Angulo
 
Share point development services case study
Share point development services case studyShare point development services case study
Share point development services case study
 
Business Intelligence in SharePoint 2013
Business Intelligence in SharePoint 2013Business Intelligence in SharePoint 2013
Business Intelligence in SharePoint 2013
 
Learn why Microsoft Power BI is an Undisputed Market Leader?
Learn why Microsoft Power BI is an Undisputed Market Leader?Learn why Microsoft Power BI is an Undisputed Market Leader?
Learn why Microsoft Power BI is an Undisputed Market Leader?
 

Ähnlich wie Html5 Introduction

Ähnlich wie Html5 Introduction (20)

Html5
Html5Html5
Html5
 
Html5
Html5Html5
Html5
 
web designing course bangalore
web designing course bangaloreweb designing course bangalore
web designing course bangalore
 
Html 5
Html 5Html 5
Html 5
 
WebSphere Portal Business Overview
WebSphere Portal Business OverviewWebSphere Portal Business Overview
WebSphere Portal Business Overview
 
Web services2014
Web services2014Web services2014
Web services2014
 
Wa html5-pdf
Wa html5-pdfWa html5-pdf
Wa html5-pdf
 
Wa html5-pdf
Wa html5-pdfWa html5-pdf
Wa html5-pdf
 
What Is the Use Of HTML.pptx
What Is the Use Of HTML.pptxWhat Is the Use Of HTML.pptx
What Is the Use Of HTML.pptx
 
Wa html5-pdf
Wa html5-pdfWa html5-pdf
Wa html5-pdf
 
Wa html5-pdf
Wa html5-pdfWa html5-pdf
Wa html5-pdf
 
Web designing course bangalore
Web designing course bangaloreWeb designing course bangalore
Web designing course bangalore
 
Ibt Soa Babson Talk V8
Ibt Soa Babson Talk V8Ibt Soa Babson Talk V8
Ibt Soa Babson Talk V8
 
Web Development Course - HTML5 & CSS3 by RSOLUTIONS
Web Development Course - HTML5 & CSS3 by RSOLUTIONSWeb Development Course - HTML5 & CSS3 by RSOLUTIONS
Web Development Course - HTML5 & CSS3 by RSOLUTIONS
 
Html5 tutorial
Html5 tutorialHtml5 tutorial
Html5 tutorial
 
Html5 - Tutorial
Html5 - TutorialHtml5 - Tutorial
Html5 - Tutorial
 
Html5 deciphered - designing concepts part 1
Html5 deciphered - designing concepts part 1Html5 deciphered - designing concepts part 1
Html5 deciphered - designing concepts part 1
 
Software Development Trends 2010-2011
Software Development Trends 2010-2011Software Development Trends 2010-2011
Software Development Trends 2010-2011
 
Html5
Html5Html5
Html5
 
Getting started with html5
Getting started with html5Getting started with html5
Getting started with html5
 

Mehr von Manoj Kumar

Cloud Computing – Jump start cloud development with Microsoft Azure (Part-2)
Cloud Computing – Jump start cloud development with Microsoft Azure (Part-2)Cloud Computing – Jump start cloud development with Microsoft Azure (Part-2)
Cloud Computing – Jump start cloud development with Microsoft Azure (Part-2)Manoj Kumar
 
Cloud Computing – Opportunities, Definitions, Options, and Risks (Part-1)
Cloud Computing – Opportunities, Definitions, Options, and Risks (Part-1)Cloud Computing – Opportunities, Definitions, Options, and Risks (Part-1)
Cloud Computing – Opportunities, Definitions, Options, and Risks (Part-1)Manoj Kumar
 
BizTalk Orchestration Fundamentals
BizTalk Orchestration FundamentalsBizTalk Orchestration Fundamentals
BizTalk Orchestration FundamentalsManoj Kumar
 
BizTalk Messaging Fundamentals
BizTalk  Messaging FundamentalsBizTalk  Messaging Fundamentals
BizTalk Messaging FundamentalsManoj Kumar
 
BizTalk Fundamentals
BizTalk  FundamentalsBizTalk  Fundamentals
BizTalk FundamentalsManoj Kumar
 
Structural Design pattern - Adapter
Structural Design pattern - AdapterStructural Design pattern - Adapter
Structural Design pattern - AdapterManoj Kumar
 
Introduction to ASP.Net Mvc3 with Razor
Introduction to ASP.Net Mvc3 with RazorIntroduction to ASP.Net Mvc3 with Razor
Introduction to ASP.Net Mvc3 with RazorManoj Kumar
 
Server vs Client in real life and in programming world
Server vs Client in real life and in programming worldServer vs Client in real life and in programming world
Server vs Client in real life and in programming worldManoj Kumar
 
N-Tier Application Architecture
N-Tier Application ArchitectureN-Tier Application Architecture
N-Tier Application ArchitectureManoj Kumar
 

Mehr von Manoj Kumar (9)

Cloud Computing – Jump start cloud development with Microsoft Azure (Part-2)
Cloud Computing – Jump start cloud development with Microsoft Azure (Part-2)Cloud Computing – Jump start cloud development with Microsoft Azure (Part-2)
Cloud Computing – Jump start cloud development with Microsoft Azure (Part-2)
 
Cloud Computing – Opportunities, Definitions, Options, and Risks (Part-1)
Cloud Computing – Opportunities, Definitions, Options, and Risks (Part-1)Cloud Computing – Opportunities, Definitions, Options, and Risks (Part-1)
Cloud Computing – Opportunities, Definitions, Options, and Risks (Part-1)
 
BizTalk Orchestration Fundamentals
BizTalk Orchestration FundamentalsBizTalk Orchestration Fundamentals
BizTalk Orchestration Fundamentals
 
BizTalk Messaging Fundamentals
BizTalk  Messaging FundamentalsBizTalk  Messaging Fundamentals
BizTalk Messaging Fundamentals
 
BizTalk Fundamentals
BizTalk  FundamentalsBizTalk  Fundamentals
BizTalk Fundamentals
 
Structural Design pattern - Adapter
Structural Design pattern - AdapterStructural Design pattern - Adapter
Structural Design pattern - Adapter
 
Introduction to ASP.Net Mvc3 with Razor
Introduction to ASP.Net Mvc3 with RazorIntroduction to ASP.Net Mvc3 with Razor
Introduction to ASP.Net Mvc3 with Razor
 
Server vs Client in real life and in programming world
Server vs Client in real life and in programming worldServer vs Client in real life and in programming world
Server vs Client in real life and in programming world
 
N-Tier Application Architecture
N-Tier Application ArchitectureN-Tier Application Architecture
N-Tier Application Architecture
 

Kürzlich hochgeladen

WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure serviceWhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure servicePooja Nehwal
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationRadu Cotescu
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationRidwan Fadjar
 
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Igalia
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxMalak Abu Hammad
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024The Digital Insurer
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking MenDelhi Call girls
 
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersEnhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersThousandEyes
 
Maximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptxMaximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptxOnBoard
 
A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024Results
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsEnterprise Knowledge
 
Understanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitectureUnderstanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitecturePixlogix Infotech
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptxHampshireHUG
 
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationMichael W. Hawkins
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerThousandEyes
 
Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101Paola De la Torre
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsMaria Levchenko
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking MenDelhi Call girls
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdfhans926745
 

Kürzlich hochgeladen (20)

WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure serviceWhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 Presentation
 
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptx
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men
 
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersEnhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
 
Maximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptxMaximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptx
 
A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
 
Understanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitectureUnderstanding the Laravel MVC Architecture
Understanding the Laravel MVC Architecture
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
 
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf
 

Html5 Introduction

  • 1. HTML 5 – Introduction HTML5 is here, and the Web will never be the same Manoj Kumar Sr. Technical Consultant manoj.kumar@neudesic.com 29 Aug, 2011 The Trusted Technology Partner in Business Innovation Products | Consulting Services | Managed Services
  • 2. Agenda • HTML5 Features: Main features it has and how are we going to cover them in coming sessions • HTML5 Semantic Markup • HTML5 Audio and Video • Next session sneak peek The Trusted Technology Partner in Business Innovation Products | Consulting Services | Managed Services
  • 3. What is exactly HTML5? – HTML5 = HTML + CSS + JavaScript – How developers use improved markup, richer style capabilities and new JavaScript APIs to make the most of new Web development features? – W3C: all 100-plus of these specifications under the moniker “HTML5” – A unifying concept for that change – So: HTML5 is about changes to HTML, CSS and JavaScript. Rather than worrying about all 100-plus specifications The Trusted Technology Partner in Business Innovation Products | Consulting Services | Managed Services
  • 4. Main Features • HTML5 Semantic & Markup, Forms 2.0 • HTML5 Audio and Video Multimedia • HTML5 Canvas • Scalable Vector Graphics (SVG) • HTML5 FileSystem APIs, Geolocation, Speech Input • Web Storage, Microdata, Server-Sent Events • Web Workers, Web Sockets, Notifications • Cascading Style Sheets, Level 3 (CSS3): Media Queries, 2D/3D transforms, Grid System, Web fonts etc. • ECMAScript5 The Trusted Technology Partner in Business Innovation Products | Consulting Services | Managed Services
  • 5. HTML5 Semantics & Markup The Trusted Technology Partner in Business Innovation Products | Consulting Services | Managed Services
  • 6. HTML5 Semantics & Markup • Not as XHTML, HTML5 has lots of flexibility and would support the followings: – Uppercase tag names. – Quotes are optional for attributes. – Attribute values are optional. – Closing empty elements are optional. • Some rules for HTML5 were established: – New features should be based on HTML, CSS, DOM, and JavaScript – Reduce the need for external plugins (like Flash) – Better error handling – More markup to replace scripting – HTML5 should be device independent – The development process should be visible to the public The Trusted Technology Partner in Business Innovation Products | Consulting Services | Managed Services
  • 7. Shorter Markups Old way HTML5 way <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" <!DOCTYPE html> "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"> <html lang="en"> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <meta charset="utf-8" /> <link rel="stylesheet" href="style-original.css" type="text/css" /> <link rel="stylesheet" href="style- original.css" /> <script type="text/javascript" src="scriptfile.js"></script> <script src="scriptfile.js"></script> The Trusted Technology Partner in Business Innovation Products | Consulting Services | Managed Services
  • 8. HTML5 Semantics – Elements, attributes, and attribute values in HTML : Have certain meanings (semantics). For example, the ol element represents an ordered list, and the lang attribute represents the language of the content. – Correct HTML5 markup allow it to be used in wide variety of context. – Simple example: Same Web page written by an author who only considered desktop computer Web browsers can be viewed by a small browser on a mobile phone. [Because HTML conveys meaning, rather than presentation] – Authors must not use elements, attributes, or attribute values for purposes other than their appropriate intended semantic purpose, as doing so prevents software from correctly processing the page. The Trusted Technology Partner in Business Innovation Products | Consulting Services | Managed Services
  • 9. New Semantic Elements in HTML5 HTML5 is not just about making existing markup shorter. <section> The section element represents a generic document or application section. Examples: A Web site's home page could be split into sections for an introduction, news items, contact information. <div> vs semantic elements (???) <nav> Represents a section of a page that links to other pages or to parts within the page: — only sections that consist of major navigation blocks In particular <article> A component of a page that consists of a self-contained composition in a document, page, application, or site and that is intended to be independently reusable Examples: Forum post, a magazine article, a user-submitted comment <aside> A section of a page that consists of content that is tangentially related to the content Examples: pull quotes or sidebars, for advertising, for groups of nav elements The Trusted Technology Partner in Business Innovation Products | Consulting Services | Managed Services
  • 10. New Semantic Elements in HTML5 <figure> and <figcaption> A unit of content, optionally with a caption, and that can be moved away from the main flow of the document without affecting the document’s meaning. <figure> vs <aside> : If the content is simply related and not essential, use <aside>. If the content is essential but its position in the flow of content isn’t important, use <figure>. <hgroup>Heading of a section. The element is used to group a set of h1–h6 elements when the heading has multiple levels, such as subheadings, alternative titles, or taglines <header>The header element represents a group of introductory or navigational aids. <footer> The footer element represents a footer for its nearest ancestor sectioning content or sectioning root element. <time> The time element represents either a time on a 24 hour clock, or a precise date <mark> The mark element represents a run of text in one document marked or highlighted for reference purposes. The Trusted Technology Partner in Business Innovation Products | Consulting Services | Managed Services
  • 11. Semantic Elements and div: How to select? The Trusted Technology Partner in Business Innovation Products | Consulting Services | Managed Services
  • 12. New Semantic Elements in HTML5: Article Scenario: HTML5: The Trusted Technology Partner in Business Innovation Products | Consulting Services | Managed Services
  • 13. New Semantic Elements in HTML5: Dates and Times Scenario: The Trusted Technology Partner in Business Innovation Products | Consulting Services | Managed Services
  • 14. New Semantic Elements in HTML5: Navigation One of the most important parts of any web site is the navigation bar. Scenario: Use cases: - Motion is limited: a browser add-on allows you to jump to (or jump past) major navigation links - Sight is limited: Using “screenreader” to go thru the document (screenreader to jump over the navigation bar and start reading the main content) SO: Being able to determine navigation links programmatically is important The Trusted Technology Partner in Business Innovation Products | Consulting Services | Managed Services
  • 15. New Semantic Elements in HTML5: Footer Scenario: HTML5: Contents: Its section such as who wrote it, links to related documents, copyright data, and the like. Fat footers: A rage these days The Trusted Technology Partner in Business Innovation Products | Consulting Services | Managed Services
  • 16. HTML5 Markup – Other enhancements – Markup for applications: <datalist>, <progress>, <meter>, <details>, <summary> – Descriptive link relation: The Trusted Technology Partner in Business Innovation Products | Consulting Services | Managed Services
  • 17. Semantics and Markup: Demo The Trusted Technology Partner in Business Innovation Products | Consulting Services | Managed Services
  • 18. HTML5 - Web Forms 2.0 : New input types datetime year, month, day, hour, minute, second, fractions of a second. Encoded- ISO 8601. time zone-UTC. datetime-local Same but with no time zone. date date (year, month, day) month date consisting of a year and a month week date consisting of a year and a week number time time (hour, minute, seconds, fractional seconds) number only numerical value. The step attribute specifies the precision, defaulting to 1 range contain a value from a range of numbers email accepts only email value. Format - email@example.com url Should contain a URL address. Format- http://www.example.com or http://example.com The Trusted Technology Partner in Business Innovation Products | Consulting Services | Managed Services
  • 19. HTML5 - Web Forms 2.0: Other enhancements – <output> element – Attribute (**attribute is supported by latest versions of Mozilla, Safari and Crome browsers only) • placeholder: • autofocus • required – Custom Attributes • A custom data attribute starts with data- and would be named based on your requirement. Works with JavaScript APIs or CSS in similar way. • Access: – Dom: getAttribute("data-subject") – Dataset: dataset.subject The Trusted Technology Partner in Business Innovation Products | Consulting Services | Managed Services
  • 20. Web Form: Demo The Trusted Technology Partner in Business Innovation Products | Consulting Services | Managed Services
  • 21. HTML5 Multimedia – Audio & Video The Trusted Technology Partner in Business Innovation Products | Consulting Services | Managed Services
  • 22. HTML5 - Audio – No plugin (Even with plugin, not all browser has same plugin) – Audio formats: • Ogg • Mp3 • Wav – Example: – Attributes: autoplay, controls, loop, preload, src – Media Events (Audio+Video): abort, canplay, ended, error, loadeddata, loadstart, pause, play, progress, ratechange, seeked, seeking, suspend, volumechange, waiting The Trusted Technology Partner in Business Innovation Products | Consulting Services | Managed Services
  • 23. HTML5 - Video – No plugin required – Video Formats • Ogg : Ogg files with Theora video codec and Vorbis audio codec • MPEG4 : MPEG 4 files with H.264 video codec and AAC audio codec • WebM : WebM files with VP8 video codec and Vorbis audio codec – Example: – Attributes: audio, autoplay, controls, loop, poster, preload, src – Video Support: The Trusted Technology Partner in Business Innovation Products | Consulting Services | Managed Services
  • 24. Audio & Video: Demo The Trusted Technology Partner in Business Innovation Products | Consulting Services | Managed Services
  • 25. HTML5 – Video codec support in browsers The Trusted Technology Partner in Business Innovation Products | Consulting Services | Managed Services
  • 26. Thank You Manoj Kumar manoj.kumar@neudesic.com The Trusted Technology Partner in Business Innovation Products | Consulting Services | Managed Services