SlideShare uma empresa Scribd logo
1 de 28
Baixar para ler offline
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

Mais conteúdo relacionado

Mais procurados

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
 

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

Semelhante a A brief introduction on HTML5 and responsive layouts

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

Último

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 Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfThe Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfEnterprise Knowledge
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityPrincipled Technologies
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonAnna Loughnan Colquhoun
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationMichael W. Hawkins
 
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
 
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEarley Information Science
 
Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Allon Mureinik
 
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
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking MenDelhi Call girls
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationSafe Software
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slidevu2urc
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Enterprise Knowledge
 
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
 
Top 5 Benefits OF Using Muvi Live Paywall For Live Streams
Top 5 Benefits OF Using Muvi Live Paywall For Live StreamsTop 5 Benefits OF Using Muvi Live Paywall For Live Streams
Top 5 Benefits OF Using Muvi Live Paywall For Live StreamsRoshan Dwivedi
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024The Digital Insurer
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Miguel Araújo
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)Gabriella Davis
 
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxFactors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxKatpro Technologies
 
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
 

Último (20)

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 Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfThe Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024
 
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
 
Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 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
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...
 
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 ...
 
Top 5 Benefits OF Using Muvi Live Paywall For Live Streams
Top 5 Benefits OF Using Muvi Live Paywall For Live StreamsTop 5 Benefits OF Using Muvi Live Paywall For Live Streams
Top 5 Benefits OF Using Muvi Live Paywall For Live Streams
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxFactors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
 
Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101
 

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; }