SlideShare une entreprise Scribd logo
1  sur  28
Télécharger pour lire hors ligne
http://www.smh.com.au/it-pro/business-it/html5-or-native-app-that-is-the-question-for-app-
owners-20120907-25ig4.html
HTML5
• The latest version of HTML today for
the Modern Web.
• First published by WHATWG (Web
Hypertext Application Technology
Working Group) in 2007.
a living standard
• HTML5 is considered to be a living
standard.
• This is because WHATWG is a
community driven body, and the
process of defining that standard is
open.
• Some features, such as the <canvas>
tag, were introduced by vendors, than
adopted as part of the standard.
So what are the new features of HTML5?
the semantic layout
custom data attributes
new UI tags
intelligent form inputs
CSS3
canvas graphics
audio and video
drag and drop events
offline storage
geolocation
the semantic layout
• A new group of HTML tags allows you
to build your Web page using a
semantic layout.
• This means that logically grouped
sections have equally logical tags.
• e.g. Headers and footers are wrapped
in <header> and <footer> tags.
Sections and contents can be enclosed
in <section> and <article> tags.
custom data attributes
• Custom data attributes allow you to
store custom, arbitrary data inside your
HTML elements.
• This is incredibly useful if you need data
to be stored statefully within your
elements.
<img data-flickr-photo-id="7953435190" alt="Tacoma Hipsters"
src="http://farm4.staticflickr.com/
3173/2768042395_5208451c4e_o.jpg" />
• alt : Alternate, placeholder text of the
image.
• src : The URL of the image.
• data-flickr-photo-id : The data
attribute of the element, indicating the
Flickr ID of the image.
new UI tags
• HTML5 also introduces a few new user
interface (UI) tags.
• e.g., the <mark> tag for highlighting
text, <figure> and <figcaption>
for providing new details to images,
<meter> and <progress> to display
static meters and progress bars.
smarter forms
• Form inputs allow your users to
‘submit’ data to your site and post it
back to the server.
• HTML5 allows much more intelligent
form fields that restrict date entry to
specific input formats.
• For example, you can enforce numbers,
number ranges, dates, e-mail
addresses and URLs within form fields.
CSS3
• New styles such as gradients, box
shadows etc. without the use of images.
• Also a much more powerful way of
selecting individual attributes.
• You can also create transformations,
transitions and animations.
canvas graphics
• The <canvas> element, and the
Canvas API, can be used to
dynamically create graphics within the
browser.
• Originally designed to compete directly
with Adobe Flash.
• HTML5 also has an experimental
specification called WebGL, that allows
for 3D graphics within the Web browser.
audio and video
support
• Via the use of the <audio> and
<video> tags, allowing for media
playback within the browser without the
use of Flash.
drag and drop events
• The ability to respond to drag and drop
events in JavaScript allows for the
creation of desktop-like experiences :
“Web Apps” within the browser.
• e.g. In Vimeo, you can upload videos by
dragging files into the browser from
your desktop
offline storage
• For many years, cookies have been
used as a way to store information
within a user’s Web Browser.
• The Web Storage API is the HTML5
version of this, being simpler and more
powerful.
• WebSQL and IndexedDB allow for
database-style storage within the
browser.
offline detection /
synchronisation
• HTML5 allows for your website / Web
App to work offline.
• It does this by creating an offline copy
of your site and syncing it with the
online copy there’s an Internet
connection.
• Creates the illusion that your Web App
is always available.
geolocation
• You can use the browser’s geolocation
API to provide information and
guidance about a user’s physical
location.
• These can be tied into other services,
such as Google Maps, to provide
location-based Web content to you.
photos near you
using geo-location, and the Flickr and Google Maps APIs
web workers
• A way of providing multithreading
support in JavaScript.
• For example, a CPU intensive Web
Worker (such as one that applies
graphics filters and effects to images)
can be spawned, allowing the main
thread that controls the UI to be free
and responsive.
“HTML5 or native app?”
an examination of semantic elements
responsive web
design
Responsive Web Design, uses liquid layouts and
CSS3 media queries to adapt the layout to the
viewing environment.
This stylesheet gets ‘activated’ when the screen size is below
a certain width
<head>
<meta charset="utf-8">
<title>HTML5 or Native App?</title>
<link rel="stylesheet" media="all" href="styles.css" type="text/css" />
<link rel="stylesheet" media="screen and (max-width: 500px)" href="mobile.css"
type="text/css" />
<meta name = "viewport" content = "width=device-width, initial-scale=1.0, user-
scalable=no">
<!--[if lt IE 9]>
<script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
</head>
Add a new stylesheet, mobile.css
.wrap {
margin: 5px;
width: 100%;
}
hgroup {
padding-bottom: 20px;
border-bottom: 1px dotted #aaa;
margin-bottom: 20px;
}
hgroup h1 {
font-size: 32px;
}
hgroup h2 {
display: none;
}
aside {
display: none;
}
figure {
float: none;
margin-left: auto;
margin-right: auto;
}
A brief introduction on HTML5 and responsive layouts

Contenu connexe

Tendances

Building productivity solutions with Microsoft Graph
Building productivity solutions with Microsoft GraphBuilding productivity solutions with Microsoft Graph
Building productivity solutions with Microsoft GraphWaldek Mastykarz
 
2012 12 best of spc - moving to the sp2013 app model
2012 12 best of spc - moving to the sp2013 app model2012 12 best of spc - moving to the sp2013 app model
2012 12 best of spc - moving to the sp2013 app modelbgerman
 
SharePoint Framework - Developer Preview
SharePoint Framework - Developer PreviewSharePoint Framework - Developer Preview
SharePoint Framework - Developer PreviewSean McLellan
 
Relearning SharePoint Development
Relearning SharePoint DevelopmentRelearning SharePoint Development
Relearning SharePoint Developmentbgerman
 
O365Con18 - Site Templates, Site Life Cycle Management and Modern SharePoint ...
O365Con18 - Site Templates, Site Life Cycle Management and Modern SharePoint ...O365Con18 - Site Templates, Site Life Cycle Management and Modern SharePoint ...
O365Con18 - Site Templates, Site Life Cycle Management and Modern SharePoint ...NCCOMMS
 
Forge - DevCon 2016: Collaborating with Design Data
Forge - DevCon 2016: Collaborating with Design DataForge - DevCon 2016: Collaborating with Design Data
Forge - DevCon 2016: Collaborating with Design DataAutodesk
 
Introduction to Office 365 PnP- Reusable solutions
Introduction to Office 365 PnP- Reusable solutionsIntroduction to Office 365 PnP- Reusable solutions
Introduction to Office 365 PnP- Reusable solutionsSPC Adriatics
 
Rencore Webinar: SharePoint Customizations - the most overlooked road block t...
Rencore Webinar: SharePoint Customizations - the most overlooked road block t...Rencore Webinar: SharePoint Customizations - the most overlooked road block t...
Rencore Webinar: SharePoint Customizations - the most overlooked road block t...Rencore
 
From Solutions to Apps - Moving to SP2013
From Solutions to Apps - Moving to SP2013From Solutions to Apps - Moving to SP2013
From Solutions to Apps - Moving to SP2013bgerman
 
Forge - DevCon 2016: Free your BIM data
Forge - DevCon 2016: Free your BIM dataForge - DevCon 2016: Free your BIM data
Forge - DevCon 2016: Free your BIM dataAutodesk
 
SharePoint Patterns & Practices - PnP Core and PnP PowerShell SIG - 7th of Oc...
SharePoint Patterns & Practices - PnP Core and PnP PowerShell SIG - 7th of Oc...SharePoint Patterns & Practices - PnP Core and PnP PowerShell SIG - 7th of Oc...
SharePoint Patterns & Practices - PnP Core and PnP PowerShell SIG - 7th of Oc...SharePoint Patterns and Practices
 
SharePoint Hosted Add-in with AngularJS and Bootstrap
SharePoint Hosted Add-in with AngularJS and BootstrapSharePoint Hosted Add-in with AngularJS and Bootstrap
SharePoint Hosted Add-in with AngularJS and BootstrapRoy Kim
 
Building dashboards with Visio Services
Building dashboards with Visio ServicesBuilding dashboards with Visio Services
Building dashboards with Visio ServicesAlan Richards
 
Forge - DevCon 2016: Cloud PDM Demystified – The Future of File Management
Forge - DevCon 2016: Cloud PDM Demystified – The Future of File ManagementForge - DevCon 2016: Cloud PDM Demystified – The Future of File Management
Forge - DevCon 2016: Cloud PDM Demystified – The Future of File ManagementAutodesk
 
Forge - DevCon 2016: Free your design data
Forge - DevCon 2016: Free your design dataForge - DevCon 2016: Free your design data
Forge - DevCon 2016: Free your design dataAutodesk
 
SPUnite17 SPFx Extensions
SPUnite17 SPFx ExtensionsSPUnite17 SPFx Extensions
SPUnite17 SPFx ExtensionsNCCOMMS
 
Connect 2014 - EXTJS in XPages: Modernizing IBM Notes Views Without Sacrifici...
Connect 2014 - EXTJS in XPages: Modernizing IBM Notes Views Without Sacrifici...Connect 2014 - EXTJS in XPages: Modernizing IBM Notes Views Without Sacrifici...
Connect 2014 - EXTJS in XPages: Modernizing IBM Notes Views Without Sacrifici...Mark Roden
 
SPCA2013 - Building Windows Client Applications for SharePoint 2013
SPCA2013 - Building Windows Client Applications for SharePoint 2013SPCA2013 - Building Windows Client Applications for SharePoint 2013
SPCA2013 - Building Windows Client Applications for SharePoint 2013NCCOMMS
 

Tendances (20)

Building productivity solutions with Microsoft Graph
Building productivity solutions with Microsoft GraphBuilding productivity solutions with Microsoft Graph
Building productivity solutions with Microsoft Graph
 
2012 12 best of spc - moving to the sp2013 app model
2012 12 best of spc - moving to the sp2013 app model2012 12 best of spc - moving to the sp2013 app model
2012 12 best of spc - moving to the sp2013 app model
 
SharePoint Framework - Developer Preview
SharePoint Framework - Developer PreviewSharePoint Framework - Developer Preview
SharePoint Framework - Developer Preview
 
Relearning SharePoint Development
Relearning SharePoint DevelopmentRelearning SharePoint Development
Relearning SharePoint Development
 
sell idea
sell ideasell idea
sell idea
 
O365Con18 - Site Templates, Site Life Cycle Management and Modern SharePoint ...
O365Con18 - Site Templates, Site Life Cycle Management and Modern SharePoint ...O365Con18 - Site Templates, Site Life Cycle Management and Modern SharePoint ...
O365Con18 - Site Templates, Site Life Cycle Management and Modern SharePoint ...
 
Forge - DevCon 2016: Collaborating with Design Data
Forge - DevCon 2016: Collaborating with Design DataForge - DevCon 2016: Collaborating with Design Data
Forge - DevCon 2016: Collaborating with Design Data
 
Introduction to Office 365 PnP- Reusable solutions
Introduction to Office 365 PnP- Reusable solutionsIntroduction to Office 365 PnP- Reusable solutions
Introduction to Office 365 PnP- Reusable solutions
 
Rencore Webinar: SharePoint Customizations - the most overlooked road block t...
Rencore Webinar: SharePoint Customizations - the most overlooked road block t...Rencore Webinar: SharePoint Customizations - the most overlooked road block t...
Rencore Webinar: SharePoint Customizations - the most overlooked road block t...
 
From Solutions to Apps - Moving to SP2013
From Solutions to Apps - Moving to SP2013From Solutions to Apps - Moving to SP2013
From Solutions to Apps - Moving to SP2013
 
Forge - DevCon 2016: Free your BIM data
Forge - DevCon 2016: Free your BIM dataForge - DevCon 2016: Free your BIM data
Forge - DevCon 2016: Free your BIM data
 
Create the Modern Workplace with the SharePoint Framework
Create the Modern Workplace with the SharePoint FrameworkCreate the Modern Workplace with the SharePoint Framework
Create the Modern Workplace with the SharePoint Framework
 
SharePoint Patterns & Practices - PnP Core and PnP PowerShell SIG - 7th of Oc...
SharePoint Patterns & Practices - PnP Core and PnP PowerShell SIG - 7th of Oc...SharePoint Patterns & Practices - PnP Core and PnP PowerShell SIG - 7th of Oc...
SharePoint Patterns & Practices - PnP Core and PnP PowerShell SIG - 7th of Oc...
 
SharePoint Hosted Add-in with AngularJS and Bootstrap
SharePoint Hosted Add-in with AngularJS and BootstrapSharePoint Hosted Add-in with AngularJS and Bootstrap
SharePoint Hosted Add-in with AngularJS and Bootstrap
 
Building dashboards with Visio Services
Building dashboards with Visio ServicesBuilding dashboards with Visio Services
Building dashboards with Visio Services
 
Forge - DevCon 2016: Cloud PDM Demystified – The Future of File Management
Forge - DevCon 2016: Cloud PDM Demystified – The Future of File ManagementForge - DevCon 2016: Cloud PDM Demystified – The Future of File Management
Forge - DevCon 2016: Cloud PDM Demystified – The Future of File Management
 
Forge - DevCon 2016: Free your design data
Forge - DevCon 2016: Free your design dataForge - DevCon 2016: Free your design data
Forge - DevCon 2016: Free your design data
 
SPUnite17 SPFx Extensions
SPUnite17 SPFx ExtensionsSPUnite17 SPFx Extensions
SPUnite17 SPFx Extensions
 
Connect 2014 - EXTJS in XPages: Modernizing IBM Notes Views Without Sacrifici...
Connect 2014 - EXTJS in XPages: Modernizing IBM Notes Views Without Sacrifici...Connect 2014 - EXTJS in XPages: Modernizing IBM Notes Views Without Sacrifici...
Connect 2014 - EXTJS in XPages: Modernizing IBM Notes Views Without Sacrifici...
 
SPCA2013 - Building Windows Client Applications for SharePoint 2013
SPCA2013 - Building Windows Client Applications for SharePoint 2013SPCA2013 - Building Windows Client Applications for SharePoint 2013
SPCA2013 - Building Windows Client Applications for SharePoint 2013
 

Similaire à A brief introduction on HTML5 and responsive layouts

Similaire à A brief introduction on HTML5 and responsive layouts (20)

[2015/2016] HTML5 and CSS3 Refresher
[2015/2016] HTML5 and CSS3 Refresher[2015/2016] HTML5 and CSS3 Refresher
[2015/2016] HTML5 and CSS3 Refresher
 
HTML5 and CSS3 refresher
HTML5 and CSS3 refresherHTML5 and CSS3 refresher
HTML5 and CSS3 refresher
 
HTML5 Refresher
HTML5 RefresherHTML5 Refresher
HTML5 Refresher
 
HTML5 & CSS3 refresher for mobile apps
HTML5 & CSS3 refresher for mobile appsHTML5 & CSS3 refresher for mobile apps
HTML5 & CSS3 refresher for mobile apps
 
Transforming the web into a real application platform
Transforming the web into a real application platformTransforming the web into a real application platform
Transforming the web into a real application platform
 
Html5 phillycc
Html5 phillyccHtml5 phillycc
Html5 phillycc
 
HTML5 introduction for beginners
HTML5 introduction for beginnersHTML5 introduction for beginners
HTML5 introduction for beginners
 
Html5
Html5Html5
Html5
 
Html5
Html5Html5
Html5
 
Html5
Html5Html5
Html5
 
Html5 Future of WEB
Html5 Future of WEBHtml5 Future of WEB
Html5 Future of WEB
 
Html5
Html5Html5
Html5
 
HTML5 on Mobile(For Designer)
HTML5 on Mobile(For Designer)HTML5 on Mobile(For Designer)
HTML5 on Mobile(For Designer)
 
Html5
Html5Html5
Html5
 
Introduction to HTML5/CSS3 In Drupal 7
Introduction to HTML5/CSS3 In Drupal 7Introduction to HTML5/CSS3 In Drupal 7
Introduction to HTML5/CSS3 In Drupal 7
 
Building a Better Web with HTML5 and CSS3
Building a Better Web with HTML5 and CSS3Building a Better Web with HTML5 and CSS3
Building a Better Web with HTML5 and CSS3
 
Prueba ppt
Prueba pptPrueba ppt
Prueba ppt
 
Html5v1
Html5v1Html5v1
Html5v1
 
Html5
Html5Html5
Html5
 
Training presentation.pptx
Training presentation.pptxTraining presentation.pptx
Training presentation.pptx
 

Dernier

Zeshan Sattar- Assessing the skill requirements and industry expectations for...
Zeshan Sattar- Assessing the skill requirements and industry expectations for...Zeshan Sattar- Assessing the skill requirements and industry expectations for...
Zeshan Sattar- Assessing the skill requirements and industry expectations for...itnewsafrica
 
Unleashing Real-time Insights with ClickHouse_ Navigating the Landscape in 20...
Unleashing Real-time Insights with ClickHouse_ Navigating the Landscape in 20...Unleashing Real-time Insights with ClickHouse_ Navigating the Landscape in 20...
Unleashing Real-time Insights with ClickHouse_ Navigating the Landscape in 20...Alkin Tezuysal
 
QCon London: Mastering long-running processes in modern architectures
QCon London: Mastering long-running processes in modern architecturesQCon London: Mastering long-running processes in modern architectures
QCon London: Mastering long-running processes in modern architecturesBernd Ruecker
 
Generative AI - Gitex v1Generative AI - Gitex v1.pptx
Generative AI - Gitex v1Generative AI - Gitex v1.pptxGenerative AI - Gitex v1Generative AI - Gitex v1.pptx
Generative AI - Gitex v1Generative AI - Gitex v1.pptxfnnc6jmgwh
 
React Native vs Ionic - The Best Mobile App Framework
React Native vs Ionic - The Best Mobile App FrameworkReact Native vs Ionic - The Best Mobile App Framework
React Native vs Ionic - The Best Mobile App FrameworkPixlogix Infotech
 
Transcript: New from BookNet Canada for 2024: BNC SalesData and LibraryData -...
Transcript: New from BookNet Canada for 2024: BNC SalesData and LibraryData -...Transcript: New from BookNet Canada for 2024: BNC SalesData and LibraryData -...
Transcript: New from BookNet Canada for 2024: BNC SalesData and LibraryData -...BookNet Canada
 
A Deep Dive on Passkeys: FIDO Paris Seminar.pptx
A Deep Dive on Passkeys: FIDO Paris Seminar.pptxA Deep Dive on Passkeys: FIDO Paris Seminar.pptx
A Deep Dive on Passkeys: FIDO Paris Seminar.pptxLoriGlavin3
 
All These Sophisticated Attacks, Can We Really Detect Them - PDF
All These Sophisticated Attacks, Can We Really Detect Them - PDFAll These Sophisticated Attacks, Can We Really Detect Them - PDF
All These Sophisticated Attacks, Can We Really Detect Them - PDFMichael Gough
 
Glenn Lazarus- Why Your Observability Strategy Needs Security Observability
Glenn Lazarus- Why Your Observability Strategy Needs Security ObservabilityGlenn Lazarus- Why Your Observability Strategy Needs Security Observability
Glenn Lazarus- Why Your Observability Strategy Needs Security Observabilityitnewsafrica
 
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
 
Top 10 Hubspot Development Companies in 2024
Top 10 Hubspot Development Companies in 2024Top 10 Hubspot Development Companies in 2024
Top 10 Hubspot Development Companies in 2024TopCSSGallery
 
Microsoft 365 Copilot: How to boost your productivity with AI – Part one: Ado...
Microsoft 365 Copilot: How to boost your productivity with AI – Part one: Ado...Microsoft 365 Copilot: How to boost your productivity with AI – Part one: Ado...
Microsoft 365 Copilot: How to boost your productivity with AI – Part one: Ado...Nikki Chapple
 
So einfach geht modernes Roaming fuer Notes und Nomad.pdf
So einfach geht modernes Roaming fuer Notes und Nomad.pdfSo einfach geht modernes Roaming fuer Notes und Nomad.pdf
So einfach geht modernes Roaming fuer Notes und Nomad.pdfpanagenda
 
Genislab builds better products and faster go-to-market with Lean project man...
Genislab builds better products and faster go-to-market with Lean project man...Genislab builds better products and faster go-to-market with Lean project man...
Genislab builds better products and faster go-to-market with Lean project man...Farhan Tariq
 
A Glance At The Java Performance Toolbox
A Glance At The Java Performance ToolboxA Glance At The Java Performance Toolbox
A Glance At The Java Performance ToolboxAna-Maria Mihalceanu
 
Varsha Sewlal- Cyber Attacks on Critical Critical Infrastructure
Varsha Sewlal- Cyber Attacks on Critical Critical InfrastructureVarsha Sewlal- Cyber Attacks on Critical Critical Infrastructure
Varsha Sewlal- Cyber Attacks on Critical Critical Infrastructureitnewsafrica
 
Potential of AI (Generative AI) in Business: Learnings and Insights
Potential of AI (Generative AI) in Business: Learnings and InsightsPotential of AI (Generative AI) in Business: Learnings and Insights
Potential of AI (Generative AI) in Business: Learnings and InsightsRavi Sanghani
 
Testing tools and AI - ideas what to try with some tool examples
Testing tools and AI - ideas what to try with some tool examplesTesting tools and AI - ideas what to try with some tool examples
Testing tools and AI - ideas what to try with some tool examplesKari Kakkonen
 
Email Marketing Automation for Bonterra Impact Management (fka Social Solutio...
Email Marketing Automation for Bonterra Impact Management (fka Social Solutio...Email Marketing Automation for Bonterra Impact Management (fka Social Solutio...
Email Marketing Automation for Bonterra Impact Management (fka Social Solutio...Jeffrey Haguewood
 
A Journey Into the Emotions of Software Developers
A Journey Into the Emotions of Software DevelopersA Journey Into the Emotions of Software Developers
A Journey Into the Emotions of Software DevelopersNicole Novielli
 

Dernier (20)

Zeshan Sattar- Assessing the skill requirements and industry expectations for...
Zeshan Sattar- Assessing the skill requirements and industry expectations for...Zeshan Sattar- Assessing the skill requirements and industry expectations for...
Zeshan Sattar- Assessing the skill requirements and industry expectations for...
 
Unleashing Real-time Insights with ClickHouse_ Navigating the Landscape in 20...
Unleashing Real-time Insights with ClickHouse_ Navigating the Landscape in 20...Unleashing Real-time Insights with ClickHouse_ Navigating the Landscape in 20...
Unleashing Real-time Insights with ClickHouse_ Navigating the Landscape in 20...
 
QCon London: Mastering long-running processes in modern architectures
QCon London: Mastering long-running processes in modern architecturesQCon London: Mastering long-running processes in modern architectures
QCon London: Mastering long-running processes in modern architectures
 
Generative AI - Gitex v1Generative AI - Gitex v1.pptx
Generative AI - Gitex v1Generative AI - Gitex v1.pptxGenerative AI - Gitex v1Generative AI - Gitex v1.pptx
Generative AI - Gitex v1Generative AI - Gitex v1.pptx
 
React Native vs Ionic - The Best Mobile App Framework
React Native vs Ionic - The Best Mobile App FrameworkReact Native vs Ionic - The Best Mobile App Framework
React Native vs Ionic - The Best Mobile App Framework
 
Transcript: New from BookNet Canada for 2024: BNC SalesData and LibraryData -...
Transcript: New from BookNet Canada for 2024: BNC SalesData and LibraryData -...Transcript: New from BookNet Canada for 2024: BNC SalesData and LibraryData -...
Transcript: New from BookNet Canada for 2024: BNC SalesData and LibraryData -...
 
A Deep Dive on Passkeys: FIDO Paris Seminar.pptx
A Deep Dive on Passkeys: FIDO Paris Seminar.pptxA Deep Dive on Passkeys: FIDO Paris Seminar.pptx
A Deep Dive on Passkeys: FIDO Paris Seminar.pptx
 
All These Sophisticated Attacks, Can We Really Detect Them - PDF
All These Sophisticated Attacks, Can We Really Detect Them - PDFAll These Sophisticated Attacks, Can We Really Detect Them - PDF
All These Sophisticated Attacks, Can We Really Detect Them - PDF
 
Glenn Lazarus- Why Your Observability Strategy Needs Security Observability
Glenn Lazarus- Why Your Observability Strategy Needs Security ObservabilityGlenn Lazarus- Why Your Observability Strategy Needs Security Observability
Glenn Lazarus- Why Your Observability Strategy Needs Security Observability
 
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
 
Top 10 Hubspot Development Companies in 2024
Top 10 Hubspot Development Companies in 2024Top 10 Hubspot Development Companies in 2024
Top 10 Hubspot Development Companies in 2024
 
Microsoft 365 Copilot: How to boost your productivity with AI – Part one: Ado...
Microsoft 365 Copilot: How to boost your productivity with AI – Part one: Ado...Microsoft 365 Copilot: How to boost your productivity with AI – Part one: Ado...
Microsoft 365 Copilot: How to boost your productivity with AI – Part one: Ado...
 
So einfach geht modernes Roaming fuer Notes und Nomad.pdf
So einfach geht modernes Roaming fuer Notes und Nomad.pdfSo einfach geht modernes Roaming fuer Notes und Nomad.pdf
So einfach geht modernes Roaming fuer Notes und Nomad.pdf
 
Genislab builds better products and faster go-to-market with Lean project man...
Genislab builds better products and faster go-to-market with Lean project man...Genislab builds better products and faster go-to-market with Lean project man...
Genislab builds better products and faster go-to-market with Lean project man...
 
A Glance At The Java Performance Toolbox
A Glance At The Java Performance ToolboxA Glance At The Java Performance Toolbox
A Glance At The Java Performance Toolbox
 
Varsha Sewlal- Cyber Attacks on Critical Critical Infrastructure
Varsha Sewlal- Cyber Attacks on Critical Critical InfrastructureVarsha Sewlal- Cyber Attacks on Critical Critical Infrastructure
Varsha Sewlal- Cyber Attacks on Critical Critical Infrastructure
 
Potential of AI (Generative AI) in Business: Learnings and Insights
Potential of AI (Generative AI) in Business: Learnings and InsightsPotential of AI (Generative AI) in Business: Learnings and Insights
Potential of AI (Generative AI) in Business: Learnings and Insights
 
Testing tools and AI - ideas what to try with some tool examples
Testing tools and AI - ideas what to try with some tool examplesTesting tools and AI - ideas what to try with some tool examples
Testing tools and AI - ideas what to try with some tool examples
 
Email Marketing Automation for Bonterra Impact Management (fka Social Solutio...
Email Marketing Automation for Bonterra Impact Management (fka Social Solutio...Email Marketing Automation for Bonterra Impact Management (fka Social Solutio...
Email Marketing Automation for Bonterra Impact Management (fka Social Solutio...
 
A Journey Into the Emotions of Software Developers
A Journey Into the Emotions of Software DevelopersA Journey Into the Emotions of Software Developers
A Journey Into the Emotions of Software Developers
 

A brief introduction on HTML5 and responsive layouts

  • 1.
  • 3. HTML5 • The latest version of HTML today for the Modern Web. • First published by WHATWG (Web Hypertext Application Technology Working Group) in 2007.
  • 4. a living standard • HTML5 is considered to be a living standard. • This is because WHATWG is a community driven body, and the process of defining that standard is open. • Some features, such as the <canvas> tag, were introduced by vendors, than adopted as part of the standard.
  • 5. So what are the new features of HTML5?
  • 6. the semantic layout custom data attributes new UI tags intelligent form inputs CSS3 canvas graphics audio and video drag and drop events offline storage geolocation
  • 7. the semantic layout • A new group of HTML tags allows you to build your Web page using a semantic layout. • This means that logically grouped sections have equally logical tags. • e.g. Headers and footers are wrapped in <header> and <footer> tags. Sections and contents can be enclosed in <section> and <article> tags.
  • 8. custom data attributes • Custom data attributes allow you to store custom, arbitrary data inside your HTML elements. • This is incredibly useful if you need data to be stored statefully within your elements.
  • 9. <img data-flickr-photo-id="7953435190" alt="Tacoma Hipsters" src="http://farm4.staticflickr.com/ 3173/2768042395_5208451c4e_o.jpg" /> • alt : Alternate, placeholder text of the image. • src : The URL of the image. • data-flickr-photo-id : The data attribute of the element, indicating the Flickr ID of the image.
  • 10. new UI tags • HTML5 also introduces a few new user interface (UI) tags. • e.g., the <mark> tag for highlighting text, <figure> and <figcaption> for providing new details to images, <meter> and <progress> to display static meters and progress bars.
  • 11. smarter forms • Form inputs allow your users to ‘submit’ data to your site and post it back to the server. • HTML5 allows much more intelligent form fields that restrict date entry to specific input formats. • For example, you can enforce numbers, number ranges, dates, e-mail addresses and URLs within form fields.
  • 12. CSS3 • New styles such as gradients, box shadows etc. without the use of images. • Also a much more powerful way of selecting individual attributes. • You can also create transformations, transitions and animations.
  • 13. canvas graphics • The <canvas> element, and the Canvas API, can be used to dynamically create graphics within the browser. • Originally designed to compete directly with Adobe Flash. • HTML5 also has an experimental specification called WebGL, that allows for 3D graphics within the Web browser.
  • 14. audio and video support • Via the use of the <audio> and <video> tags, allowing for media playback within the browser without the use of Flash.
  • 15. drag and drop events • The ability to respond to drag and drop events in JavaScript allows for the creation of desktop-like experiences : “Web Apps” within the browser. • e.g. In Vimeo, you can upload videos by dragging files into the browser from your desktop
  • 16.
  • 17. offline storage • For many years, cookies have been used as a way to store information within a user’s Web Browser. • The Web Storage API is the HTML5 version of this, being simpler and more powerful. • WebSQL and IndexedDB allow for database-style storage within the browser.
  • 18. offline detection / synchronisation • HTML5 allows for your website / Web App to work offline. • It does this by creating an offline copy of your site and syncing it with the online copy there’s an Internet connection. • Creates the illusion that your Web App is always available.
  • 19. geolocation • You can use the browser’s geolocation API to provide information and guidance about a user’s physical location. • These can be tied into other services, such as Google Maps, to provide location-based Web content to you.
  • 20. photos near you using geo-location, and the Flickr and Google Maps APIs
  • 21. web workers • A way of providing multithreading support in JavaScript. • For example, a CPU intensive Web Worker (such as one that applies graphics filters and effects to images) can be spawned, allowing the main thread that controls the UI to be free and responsive.
  • 22. “HTML5 or native app?” an examination of semantic elements
  • 23.
  • 24.
  • 25. responsive web design Responsive Web Design, uses liquid layouts and CSS3 media queries to adapt the layout to the viewing environment.
  • 26. This stylesheet gets ‘activated’ when the screen size is below a certain width <head> <meta charset="utf-8"> <title>HTML5 or Native App?</title> <link rel="stylesheet" media="all" href="styles.css" type="text/css" /> <link rel="stylesheet" media="screen and (max-width: 500px)" href="mobile.css" type="text/css" /> <meta name = "viewport" content = "width=device-width, initial-scale=1.0, user- scalable=no"> <!--[if lt IE 9]> <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script> <![endif]--> </head> Add a new stylesheet, mobile.css
  • 27. .wrap { margin: 5px; width: 100%; } hgroup { padding-bottom: 20px; border-bottom: 1px dotted #aaa; margin-bottom: 20px; } hgroup h1 { font-size: 32px; } hgroup h2 { display: none; } aside { display: none; } figure { float: none; margin-left: auto; margin-right: auto; }