SlideShare uma empresa Scribd logo
1 de 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

Mais conteúdo relacionado

Mais procurados

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
 

Mais procurados (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?
 

Semelhante a Html5 Introduction

Semelhante a 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
 

Mais de 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
 

Mais de 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
 

Último

New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024BookNet Canada
 
Take control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test SuiteTake control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test SuiteDianaGray10
 
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptxUse of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptxLoriGlavin3
 
"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii SoldatenkoFwdays
 
TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024Lonnie McRorey
 
SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024Lorenzo Miniero
 
DSPy a system for AI to Write Prompts and Do Fine Tuning
DSPy a system for AI to Write Prompts and Do Fine TuningDSPy a system for AI to Write Prompts and Do Fine Tuning
DSPy a system for AI to Write Prompts and Do Fine TuningLars Bell
 
What is DBT - The Ultimate Data Build Tool.pdf
What is DBT - The Ultimate Data Build Tool.pdfWhat is DBT - The Ultimate Data Build Tool.pdf
What is DBT - The Ultimate Data Build Tool.pdfMounikaPolabathina
 
SAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptxSAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptxNavinnSomaal
 
Unraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfUnraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfAlex Barbosa Coqueiro
 
Developer Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQLDeveloper Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQLScyllaDB
 
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptxMerck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptxLoriGlavin3
 
Advanced Computer Architecture – An Introduction
Advanced Computer Architecture – An IntroductionAdvanced Computer Architecture – An Introduction
Advanced Computer Architecture – An IntroductionDilum Bandara
 
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024BookNet Canada
 
DevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsDevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsSergiu Bodiu
 
Commit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easyCommit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easyAlfredo García Lavilla
 
unit 4 immunoblotting technique complete.pptx
unit 4 immunoblotting technique complete.pptxunit 4 immunoblotting technique complete.pptx
unit 4 immunoblotting technique complete.pptxBkGupta21
 
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024BookNet Canada
 
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptx
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptxPasskey Providers and Enabling Portability: FIDO Paris Seminar.pptx
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptxLoriGlavin3
 

Último (20)

New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
 
Take control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test SuiteTake control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test Suite
 
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptxUse of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
 
"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko
 
TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024
 
SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024
 
DSPy a system for AI to Write Prompts and Do Fine Tuning
DSPy a system for AI to Write Prompts and Do Fine TuningDSPy a system for AI to Write Prompts and Do Fine Tuning
DSPy a system for AI to Write Prompts and Do Fine Tuning
 
What is DBT - The Ultimate Data Build Tool.pdf
What is DBT - The Ultimate Data Build Tool.pdfWhat is DBT - The Ultimate Data Build Tool.pdf
What is DBT - The Ultimate Data Build Tool.pdf
 
SAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptxSAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptx
 
DMCC Future of Trade Web3 - Special Edition
DMCC Future of Trade Web3 - Special EditionDMCC Future of Trade Web3 - Special Edition
DMCC Future of Trade Web3 - Special Edition
 
Unraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfUnraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdf
 
Developer Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQLDeveloper Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQL
 
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptxMerck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptx
 
Advanced Computer Architecture – An Introduction
Advanced Computer Architecture – An IntroductionAdvanced Computer Architecture – An Introduction
Advanced Computer Architecture – An Introduction
 
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
 
DevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsDevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platforms
 
Commit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easyCommit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easy
 
unit 4 immunoblotting technique complete.pptx
unit 4 immunoblotting technique complete.pptxunit 4 immunoblotting technique complete.pptx
unit 4 immunoblotting technique complete.pptx
 
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
 
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptx
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptxPasskey Providers and Enabling Portability: FIDO Paris Seminar.pptx
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptx
 

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