SlideShare a Scribd company logo
Web & Mobile Developer
Towers Watson Inc.
2
 What is HTML5
 Features
 Adoption
 Is HTML5 ready Now?
 Changes from previous HTMLs
     What’s added
     What’s deprecated
   Exercise

3
HTML5 is is a language for structuring and presenting
content for the World Wide Web, a core technology of
the Internet. It is the fifth revision of the HTML standard
(originally created in 1990 and most recently
standardized as HTML4 in 1997[1]) and as of August
2011[update] is still under development. Its core aims
have been to improve the language with support for the
latest multimedia while keeping it easily readable by
humans and consistently understood by computers and
devices (web browsers, parsers etc.). HTML5 is
intended to subsume not only HTML4, but XHTML1 and
DOM2HTML (particularly JavaScript) as well.




4
The biggest names in the Industry
 Disney
 Research In Motion
 Google
 Apple
 Microsoft




5
Yes and No.
HTML5 is now ready for use by developers
provided they use fallbacks since the
specification for HTML5 is not yet finalized.
According to the W3C, HTML5 is still in
Draft. So expect changes to happen
anytime. The expected completion is 2022
or later. Although many parts of the
specifications are already stable and may
be implemented.

6
   Markup
     Forms
     Multimedia
     Graphics
   New APIs
       Graphics
       Media Playback
       GeoLocation
       Web Sockets
       Web Workers
   Error Handling


7
Like any other evolving technologies. HTML5 also
deprecates some outdated tags such as:
basefont
big
center      Attributes:
font
             • align
s           • link, vlink, alink, and text attributes on the body tag
strike      • bgcolor
tt          • height and width
U           • scrolling on the iframe element
frame       • valign
frameset • hspace and vspace
             • cellpadding, cellspacing, and border on table
noframes



8
<header> - Defines a header region of a page or
section.
<footer> - Defines a footer region of a page or
section.
<nav> - Defines a navigation region of a page or
section.
<section> - Defines a logical region of a page or
a grouping of content.
<article> - Defines an article or complete piece of
content.
<aside> - Defines secondary or related content.

9
New Input Tags
<input type=“range”>
<input type=“number”>
<input type=“date”>
<input type=“email”>
<input type=“url”>
<input type=“color”>
<input type=“Search”>

10
<input type="range" min="0" max="10"
name="priority" value="0" id="priority" >




11
<input type="number" name="estimated_hours"
min="0" max="1000“ id="estimated_hours" >




12
 <input type="date" name="start_date"
  id="start_date"
 value="2010-12-01" >




13
<input type="email" name="email" id="email">




14
<input type="url" name="url" id="url">




15
<input type="color" name="project_color"
id="project_color">




16
<input type=“search” name=“textsearch”
id=“searchfield” >




17
<input type="range" min="0" max="10"
name="priority" value="0" id="priority" >




18
Multimedia has become an integral part of
our internet usage thus, HTML5 added
support for both Video and Audio
 <Video>
 <Audio>




19
Support for MP3, AAC, OGG
<audio id="drums" controls>
   <source src="sounds/ogg/drums.ogg"
type="audio/ogg">
   <source src="sounds/mp3/drums.mp3"
type="audio/mpeg">
   <a href="sounds/mp3/drums.mp3">Download
drums.mp3</a>
</audio>


20
Support for MP4, OGV, WebM format
<video controls>
   <source src="video/h264/01_blur.mp4">
   <source src="video/theora/01_blur.ogv">
   <source src="video/webm/01_blur.webm">
   <p>Your browser does not support the video
tag.</p>
</video>


21
Supports creation of vector based graphics
through the use of javascript
<canvas id="myCanvas">your browser does not support the canvas tag </canvas>
<script type="text/javascript">
var canvas=document.getElementById('myCanvas');
var ctx=canvas.getContext('2d');
ctx.fillStyle='#FF0000';
ctx.fillRect(0,0,80,100);
</script>




22
23
 New DOM Selectors
 Audio and Video
 Using the Canvas
 Knowing your Location
 Web Sockets
 No minimum system requirements
 Easier to code
 Faster execution/response
 Extends the ability
 The completeness of HTML5
 getElementById()
 getElementsByTagName()
 getElementsByClassName()
 querySelector()
 querySelectorAll()
Wait, there’s no light and
there’s no flash! How’s our
party?
   Media Functions
     Play()
     Pause()
     Load()
   Media Properties
     Volume
     Duration
     Muted
     Paused
     Loop
   Events
     Play
     Pause
     Abort
     Ended
     Progress
   Drawing in the canvas
     Preparing your workspace
     Creating a simple path
      ○ beginPath();
      ○ lineTo();
      ○ moveTo();
      ○ Stroke();
   Drawing simples shapes
     Circle
      ○ Arc();
     Square
      ○ fillRect();
   Web workers
     separate JS processes() running in separate
        threads,
       executes concurrently,
       doesn’t block the UI,
       allow you to extract up to the last drop of
        juice from a multicore CPU,
       can be dedicated (single tab) or shared
        among tabs/windows,
Workers1.js



MainProc.js   Workers2.js



              Workers3.js
   Put it to work
     new Worker();
     onmessage();
     postmessage();
   Using Geolocation
     Remember: Always ask for permission!
     I have no GPS!
      ○ IPAddress
      ○ WiFi
      ○ Cellphone
   Hey! Mr. Navigator…
     coords.latitude
     coords.longitude
     getCurrentPosition()
   Communicate in a whole new way
     TCP over the Web
     2-way communication for the Internet
      ○ Use a client browser that implements the
        WebSocket protocol.
      ○ Write code in a webpage that creates a client
        websocket.
      ○ Write code on a web server that responds to a
        client request through a websocket
   Tuning in
     URL
     websocket()
     open(), onopen
     close(), onclose
     onmessage()
     postmessage()
   Consider older browsers
     Detect Browser
     Detect Feature availability
Basic html5 and javascript

More Related Content

Viewers also liked

Html5 - Novas Tags na Prática!
Html5 - Novas Tags na Prática!Html5 - Novas Tags na Prática!
Html5 - Novas Tags na Prática!
Rômulo Reis de Oliveira
 
Html5 Basics
Html5 BasicsHtml5 Basics
Html5 Basics
Pankaj Bajaj
 
Introduction to html
Introduction to htmlIntroduction to html
Introduction to htmlvikasgaur31
 
Up to Speed on HTML 5 and CSS 3
Up to Speed on HTML 5 and CSS 3Up to Speed on HTML 5 and CSS 3
Up to Speed on HTML 5 and CSS 3
M. Jackson Wilkinson
 
Энергофлекс Супер
Энергофлекс СуперЭнергофлекс Супер
Энергофлекс Супер
Al Maks
 
沒有所謂的end user:一個open source project網站的改版計畫
沒有所謂的end user:一個open source project網站的改版計畫沒有所謂的end user:一個open source project網站的改版計畫
沒有所謂的end user:一個open source project網站的改版計畫
Wan Jen Huang
 
ADR mechanisms 3
ADR mechanisms 3ADR mechanisms 3
ADR mechanisms 3
consumerenergy
 
Dallas partner meeting_8.07.12
Dallas partner meeting_8.07.12Dallas partner meeting_8.07.12
Dallas partner meeting_8.07.12bscisteam
 
Human resource tool kit
Human resource tool kitHuman resource tool kit
Human resource tool kit
ETIANG' CYRIL
 
Karteeks Portfolio 2016 -IDENTITY
Karteeks Portfolio 2016 -IDENTITYKarteeks Portfolio 2016 -IDENTITY
Karteeks Portfolio 2016 -IDENTITY
Karteek Spaced
 
Font and title testing
Font and title testingFont and title testing
Font and title testingnctcmedia12
 
Consumers Italy presentation
Consumers Italy presentationConsumers Italy presentation
Consumers Italy presentation
consumerenergy
 
Research & Planning of Similar Products
Research & Planning of Similar ProductsResearch & Planning of Similar Products
Research & Planning of Similar Products
nctcmedia12
 
Memenangkan Pasar ibu
Memenangkan Pasar ibuMemenangkan Pasar ibu
Memenangkan Pasar ibu
Dieaz Nasution
 
Automation to Reduce Operating Costs
Automation to Reduce Operating CostsAutomation to Reduce Operating Costs
Automation to Reduce Operating CostsKalido
 
Consumer complaints committee m.alajoe
Consumer complaints committee m.alajoeConsumer complaints committee m.alajoe
Consumer complaints committee m.alajoe
consumerenergy
 
Управление имиджем и репутацией Алтайского края на территории Большого Алтая
Управление имиджем и репутацией Алтайского края на территории Большого АлтаяУправление имиджем и репутацией Алтайского края на территории Большого Алтая
Управление имиджем и репутацией Алтайского края на территории Большого Алтая
prasu1995
 

Viewers also liked (20)

Html5 - Novas Tags na Prática!
Html5 - Novas Tags na Prática!Html5 - Novas Tags na Prática!
Html5 - Novas Tags na Prática!
 
Html5 Basics
Html5 BasicsHtml5 Basics
Html5 Basics
 
HTML5 Basic
HTML5 BasicHTML5 Basic
HTML5 Basic
 
Introduction to html
Introduction to htmlIntroduction to html
Introduction to html
 
Up to Speed on HTML 5 and CSS 3
Up to Speed on HTML 5 and CSS 3Up to Speed on HTML 5 and CSS 3
Up to Speed on HTML 5 and CSS 3
 
Энергофлекс Супер
Энергофлекс СуперЭнергофлекс Супер
Энергофлекс Супер
 
沒有所謂的end user:一個open source project網站的改版計畫
沒有所謂的end user:一個open source project網站的改版計畫沒有所謂的end user:一個open source project網站的改版計畫
沒有所謂的end user:一個open source project網站的改版計畫
 
ADR mechanisms 3
ADR mechanisms 3ADR mechanisms 3
ADR mechanisms 3
 
Dallas partner meeting_8.07.12
Dallas partner meeting_8.07.12Dallas partner meeting_8.07.12
Dallas partner meeting_8.07.12
 
Human resource tool kit
Human resource tool kitHuman resource tool kit
Human resource tool kit
 
Karteeks Portfolio 2016 -IDENTITY
Karteeks Portfolio 2016 -IDENTITYKarteeks Portfolio 2016 -IDENTITY
Karteeks Portfolio 2016 -IDENTITY
 
Font and title testing
Font and title testingFont and title testing
Font and title testing
 
Consumers Italy presentation
Consumers Italy presentationConsumers Italy presentation
Consumers Italy presentation
 
Research & Planning of Similar Products
Research & Planning of Similar ProductsResearch & Planning of Similar Products
Research & Planning of Similar Products
 
Memenangkan Pasar ibu
Memenangkan Pasar ibuMemenangkan Pasar ibu
Memenangkan Pasar ibu
 
Automation to Reduce Operating Costs
Automation to Reduce Operating CostsAutomation to Reduce Operating Costs
Automation to Reduce Operating Costs
 
Daftarhadir&nilai statistik1213
Daftarhadir&nilai statistik1213Daftarhadir&nilai statistik1213
Daftarhadir&nilai statistik1213
 
Consumer complaints committee m.alajoe
Consumer complaints committee m.alajoeConsumer complaints committee m.alajoe
Consumer complaints committee m.alajoe
 
Управление имиджем и репутацией Алтайского края на территории Большого Алтая
Управление имиджем и репутацией Алтайского края на территории Большого АлтаяУправление имиджем и репутацией Алтайского края на территории Большого Алтая
Управление имиджем и репутацией Алтайского края на территории Большого Алтая
 
Question 7
Question 7Question 7
Question 7
 

Similar to Basic html5 and javascript

HTML5 Intoduction for Web Developers
HTML5 Intoduction for Web DevelopersHTML5 Intoduction for Web Developers
HTML5 Intoduction for Web Developers
Sascha Corti
 
soft-shake.ch - Introduction to HTML5
soft-shake.ch - Introduction to HTML5soft-shake.ch - Introduction to HTML5
soft-shake.ch - Introduction to HTML5
soft-shake.ch
 
HTML5: An Introduction To Next Generation Web Development
HTML5: An Introduction To Next Generation Web DevelopmentHTML5: An Introduction To Next Generation Web Development
HTML5: An Introduction To Next Generation Web Development
Tilak Joshi
 
Familiar HTML5 - 事例とサンプルコードから学ぶ 身近で普通に使わているHTML5
Familiar HTML5 - 事例とサンプルコードから学ぶ 身近で普通に使わているHTML5Familiar HTML5 - 事例とサンプルコードから学ぶ 身近で普通に使わているHTML5
Familiar HTML5 - 事例とサンプルコードから学ぶ 身近で普通に使わているHTML5
Sadaaki HIRAI
 
Speak the Web 15.02.2010
Speak the Web 15.02.2010Speak the Web 15.02.2010
Speak the Web 15.02.2010Patrick Lauke
 
IE 8 et les standards du Web - Chris Wilson - Paris Web 2008
IE 8 et les standards du Web - Chris Wilson - Paris Web 2008IE 8 et les standards du Web - Chris Wilson - Paris Web 2008
IE 8 et les standards du Web - Chris Wilson - Paris Web 2008
Association Paris-Web
 
Nodejs and WebSockets
Nodejs and WebSocketsNodejs and WebSockets
Nodejs and WebSockets
Gonzalo Ayuso
 
Echo HTML5
Echo HTML5Echo HTML5
Echo HTML5
Nathan Smith
 
HTML5 introduction for beginners
HTML5 introduction for beginnersHTML5 introduction for beginners
HTML5 introduction for beginners
Vineeth N Krishnan
 
WordCamp Thessaloniki2011 The NextWeb
WordCamp Thessaloniki2011 The NextWebWordCamp Thessaloniki2011 The NextWeb
WordCamp Thessaloniki2011 The NextWebGeorge Kanellopoulos
 
Bruce lawson-over-the-air
Bruce lawson-over-the-airBruce lawson-over-the-air
Bruce lawson-over-the-air
brucelawson
 
Edge of the Web
Edge of the WebEdge of the Web
Edge of the Web
Todd Anglin
 
Html5 Future of WEB
Html5 Future of WEBHtml5 Future of WEB
Html5 Future of WEB
Amit Choudhary
 
Normalizing x pages web development
Normalizing x pages web development Normalizing x pages web development
Normalizing x pages web development
Shean McManus
 
php
phpphp
Html5
Html5Html5
Html5
Html5Html5

Similar to Basic html5 and javascript (20)

HTML5 Intoduction for Web Developers
HTML5 Intoduction for Web DevelopersHTML5 Intoduction for Web Developers
HTML5 Intoduction for Web Developers
 
soft-shake.ch - Introduction to HTML5
soft-shake.ch - Introduction to HTML5soft-shake.ch - Introduction to HTML5
soft-shake.ch - Introduction to HTML5
 
HTML5: An Introduction To Next Generation Web Development
HTML5: An Introduction To Next Generation Web DevelopmentHTML5: An Introduction To Next Generation Web Development
HTML5: An Introduction To Next Generation Web Development
 
Familiar HTML5 - 事例とサンプルコードから学ぶ 身近で普通に使わているHTML5
Familiar HTML5 - 事例とサンプルコードから学ぶ 身近で普通に使わているHTML5Familiar HTML5 - 事例とサンプルコードから学ぶ 身近で普通に使わているHTML5
Familiar HTML5 - 事例とサンプルコードから学ぶ 身近で普通に使わているHTML5
 
Speak the Web 15.02.2010
Speak the Web 15.02.2010Speak the Web 15.02.2010
Speak the Web 15.02.2010
 
IE 8 et les standards du Web - Chris Wilson - Paris Web 2008
IE 8 et les standards du Web - Chris Wilson - Paris Web 2008IE 8 et les standards du Web - Chris Wilson - Paris Web 2008
IE 8 et les standards du Web - Chris Wilson - Paris Web 2008
 
Word camp nextweb
Word camp nextwebWord camp nextweb
Word camp nextweb
 
Word camp nextweb
Word camp nextwebWord camp nextweb
Word camp nextweb
 
Nodejs and WebSockets
Nodejs and WebSocketsNodejs and WebSockets
Nodejs and WebSockets
 
Echo HTML5
Echo HTML5Echo HTML5
Echo HTML5
 
HTML5 introduction for beginners
HTML5 introduction for beginnersHTML5 introduction for beginners
HTML5 introduction for beginners
 
WordCamp Thessaloniki2011 The NextWeb
WordCamp Thessaloniki2011 The NextWebWordCamp Thessaloniki2011 The NextWeb
WordCamp Thessaloniki2011 The NextWeb
 
Bruce lawson-over-the-air
Bruce lawson-over-the-airBruce lawson-over-the-air
Bruce lawson-over-the-air
 
Edge of the Web
Edge of the WebEdge of the Web
Edge of the Web
 
Html5 Future of WEB
Html5 Future of WEBHtml5 Future of WEB
Html5 Future of WEB
 
Normalizing x pages web development
Normalizing x pages web development Normalizing x pages web development
Normalizing x pages web development
 
Html5
Html5Html5
Html5
 
php
phpphp
php
 
Html5
Html5Html5
Html5
 
Html5
Html5Html5
Html5
 

Recently uploaded

Mind map of terminologies used in context of Generative AI
Mind map of terminologies used in context of Generative AIMind map of terminologies used in context of Generative AI
Mind map of terminologies used in context of Generative AI
Kumud Singh
 
20240607 QFM018 Elixir Reading List May 2024
20240607 QFM018 Elixir Reading List May 202420240607 QFM018 Elixir Reading List May 2024
20240607 QFM018 Elixir Reading List May 2024
Matthew Sinclair
 
Enchancing adoption of Open Source Libraries. A case study on Albumentations.AI
Enchancing adoption of Open Source Libraries. A case study on Albumentations.AIEnchancing adoption of Open Source Libraries. A case study on Albumentations.AI
Enchancing adoption of Open Source Libraries. A case study on Albumentations.AI
Vladimir Iglovikov, Ph.D.
 
Pushing the limits of ePRTC: 100ns holdover for 100 days
Pushing the limits of ePRTC: 100ns holdover for 100 daysPushing the limits of ePRTC: 100ns holdover for 100 days
Pushing the limits of ePRTC: 100ns holdover for 100 days
Adtran
 
GraphRAG is All You need? LLM & Knowledge Graph
GraphRAG is All You need? LLM & Knowledge GraphGraphRAG is All You need? LLM & Knowledge Graph
GraphRAG is All You need? LLM & Knowledge Graph
Guy Korland
 
A tale of scale & speed: How the US Navy is enabling software delivery from l...
A tale of scale & speed: How the US Navy is enabling software delivery from l...A tale of scale & speed: How the US Navy is enabling software delivery from l...
A tale of scale & speed: How the US Navy is enabling software delivery from l...
sonjaschweigert1
 
Video Streaming: Then, Now, and in the Future
Video Streaming: Then, Now, and in the FutureVideo Streaming: Then, Now, and in the Future
Video Streaming: Then, Now, and in the Future
Alpen-Adria-Universität
 
GraphSummit Singapore | Graphing Success: Revolutionising Organisational Stru...
GraphSummit Singapore | Graphing Success: Revolutionising Organisational Stru...GraphSummit Singapore | Graphing Success: Revolutionising Organisational Stru...
GraphSummit Singapore | Graphing Success: Revolutionising Organisational Stru...
Neo4j
 
DevOps and Testing slides at DASA Connect
DevOps and Testing slides at DASA ConnectDevOps and Testing slides at DASA Connect
DevOps and Testing slides at DASA Connect
Kari Kakkonen
 
Microsoft - Power Platform_G.Aspiotis.pdf
Microsoft - Power Platform_G.Aspiotis.pdfMicrosoft - Power Platform_G.Aspiotis.pdf
Microsoft - Power Platform_G.Aspiotis.pdf
Uni Systems S.M.S.A.
 
Encryption in Microsoft 365 - ExpertsLive Netherlands 2024
Encryption in Microsoft 365 - ExpertsLive Netherlands 2024Encryption in Microsoft 365 - ExpertsLive Netherlands 2024
Encryption in Microsoft 365 - ExpertsLive Netherlands 2024
Albert Hoitingh
 
Free Complete Python - A step towards Data Science
Free Complete Python - A step towards Data ScienceFree Complete Python - A step towards Data Science
Free Complete Python - A step towards Data Science
RinaMondal9
 
Removing Uninteresting Bytes in Software Fuzzing
Removing Uninteresting Bytes in Software FuzzingRemoving Uninteresting Bytes in Software Fuzzing
Removing Uninteresting Bytes in Software Fuzzing
Aftab Hussain
 
GraphSummit Singapore | The Art of the Possible with Graph - Q2 2024
GraphSummit Singapore | The Art of the  Possible with Graph - Q2 2024GraphSummit Singapore | The Art of the  Possible with Graph - Q2 2024
GraphSummit Singapore | The Art of the Possible with Graph - Q2 2024
Neo4j
 
Generative AI Deep Dive: Advancing from Proof of Concept to Production
Generative AI Deep Dive: Advancing from Proof of Concept to ProductionGenerative AI Deep Dive: Advancing from Proof of Concept to Production
Generative AI Deep Dive: Advancing from Proof of Concept to Production
Aggregage
 
Epistemic Interaction - tuning interfaces to provide information for AI support
Epistemic Interaction - tuning interfaces to provide information for AI supportEpistemic Interaction - tuning interfaces to provide information for AI support
Epistemic Interaction - tuning interfaces to provide information for AI support
Alan Dix
 
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
James Anderson
 
Large Language Model (LLM) and it’s Geospatial Applications
Large Language Model (LLM) and it’s Geospatial ApplicationsLarge Language Model (LLM) and it’s Geospatial Applications
Large Language Model (LLM) and it’s Geospatial Applications
Rohit Gautam
 
Uni Systems Copilot event_05062024_C.Vlachos.pdf
Uni Systems Copilot event_05062024_C.Vlachos.pdfUni Systems Copilot event_05062024_C.Vlachos.pdf
Uni Systems Copilot event_05062024_C.Vlachos.pdf
Uni Systems S.M.S.A.
 
Communications Mining Series - Zero to Hero - Session 1
Communications Mining Series - Zero to Hero - Session 1Communications Mining Series - Zero to Hero - Session 1
Communications Mining Series - Zero to Hero - Session 1
DianaGray10
 

Recently uploaded (20)

Mind map of terminologies used in context of Generative AI
Mind map of terminologies used in context of Generative AIMind map of terminologies used in context of Generative AI
Mind map of terminologies used in context of Generative AI
 
20240607 QFM018 Elixir Reading List May 2024
20240607 QFM018 Elixir Reading List May 202420240607 QFM018 Elixir Reading List May 2024
20240607 QFM018 Elixir Reading List May 2024
 
Enchancing adoption of Open Source Libraries. A case study on Albumentations.AI
Enchancing adoption of Open Source Libraries. A case study on Albumentations.AIEnchancing adoption of Open Source Libraries. A case study on Albumentations.AI
Enchancing adoption of Open Source Libraries. A case study on Albumentations.AI
 
Pushing the limits of ePRTC: 100ns holdover for 100 days
Pushing the limits of ePRTC: 100ns holdover for 100 daysPushing the limits of ePRTC: 100ns holdover for 100 days
Pushing the limits of ePRTC: 100ns holdover for 100 days
 
GraphRAG is All You need? LLM & Knowledge Graph
GraphRAG is All You need? LLM & Knowledge GraphGraphRAG is All You need? LLM & Knowledge Graph
GraphRAG is All You need? LLM & Knowledge Graph
 
A tale of scale & speed: How the US Navy is enabling software delivery from l...
A tale of scale & speed: How the US Navy is enabling software delivery from l...A tale of scale & speed: How the US Navy is enabling software delivery from l...
A tale of scale & speed: How the US Navy is enabling software delivery from l...
 
Video Streaming: Then, Now, and in the Future
Video Streaming: Then, Now, and in the FutureVideo Streaming: Then, Now, and in the Future
Video Streaming: Then, Now, and in the Future
 
GraphSummit Singapore | Graphing Success: Revolutionising Organisational Stru...
GraphSummit Singapore | Graphing Success: Revolutionising Organisational Stru...GraphSummit Singapore | Graphing Success: Revolutionising Organisational Stru...
GraphSummit Singapore | Graphing Success: Revolutionising Organisational Stru...
 
DevOps and Testing slides at DASA Connect
DevOps and Testing slides at DASA ConnectDevOps and Testing slides at DASA Connect
DevOps and Testing slides at DASA Connect
 
Microsoft - Power Platform_G.Aspiotis.pdf
Microsoft - Power Platform_G.Aspiotis.pdfMicrosoft - Power Platform_G.Aspiotis.pdf
Microsoft - Power Platform_G.Aspiotis.pdf
 
Encryption in Microsoft 365 - ExpertsLive Netherlands 2024
Encryption in Microsoft 365 - ExpertsLive Netherlands 2024Encryption in Microsoft 365 - ExpertsLive Netherlands 2024
Encryption in Microsoft 365 - ExpertsLive Netherlands 2024
 
Free Complete Python - A step towards Data Science
Free Complete Python - A step towards Data ScienceFree Complete Python - A step towards Data Science
Free Complete Python - A step towards Data Science
 
Removing Uninteresting Bytes in Software Fuzzing
Removing Uninteresting Bytes in Software FuzzingRemoving Uninteresting Bytes in Software Fuzzing
Removing Uninteresting Bytes in Software Fuzzing
 
GraphSummit Singapore | The Art of the Possible with Graph - Q2 2024
GraphSummit Singapore | The Art of the  Possible with Graph - Q2 2024GraphSummit Singapore | The Art of the  Possible with Graph - Q2 2024
GraphSummit Singapore | The Art of the Possible with Graph - Q2 2024
 
Generative AI Deep Dive: Advancing from Proof of Concept to Production
Generative AI Deep Dive: Advancing from Proof of Concept to ProductionGenerative AI Deep Dive: Advancing from Proof of Concept to Production
Generative AI Deep Dive: Advancing from Proof of Concept to Production
 
Epistemic Interaction - tuning interfaces to provide information for AI support
Epistemic Interaction - tuning interfaces to provide information for AI supportEpistemic Interaction - tuning interfaces to provide information for AI support
Epistemic Interaction - tuning interfaces to provide information for AI support
 
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
 
Large Language Model (LLM) and it’s Geospatial Applications
Large Language Model (LLM) and it’s Geospatial ApplicationsLarge Language Model (LLM) and it’s Geospatial Applications
Large Language Model (LLM) and it’s Geospatial Applications
 
Uni Systems Copilot event_05062024_C.Vlachos.pdf
Uni Systems Copilot event_05062024_C.Vlachos.pdfUni Systems Copilot event_05062024_C.Vlachos.pdf
Uni Systems Copilot event_05062024_C.Vlachos.pdf
 
Communications Mining Series - Zero to Hero - Session 1
Communications Mining Series - Zero to Hero - Session 1Communications Mining Series - Zero to Hero - Session 1
Communications Mining Series - Zero to Hero - Session 1
 

Basic html5 and javascript

  • 1. Web & Mobile Developer Towers Watson Inc.
  • 2. 2
  • 3.  What is HTML5  Features  Adoption  Is HTML5 ready Now?  Changes from previous HTMLs  What’s added  What’s deprecated  Exercise 3
  • 4. HTML5 is is a language for structuring and presenting content for the World Wide Web, a core technology of the Internet. It is the fifth revision of the HTML standard (originally created in 1990 and most recently standardized as HTML4 in 1997[1]) and as of August 2011[update] is still under development. Its core aims have been to improve the language with support for the latest multimedia while keeping it easily readable by humans and consistently understood by computers and devices (web browsers, parsers etc.). HTML5 is intended to subsume not only HTML4, but XHTML1 and DOM2HTML (particularly JavaScript) as well. 4
  • 5. The biggest names in the Industry  Disney  Research In Motion  Google  Apple  Microsoft 5
  • 6. Yes and No. HTML5 is now ready for use by developers provided they use fallbacks since the specification for HTML5 is not yet finalized. According to the W3C, HTML5 is still in Draft. So expect changes to happen anytime. The expected completion is 2022 or later. Although many parts of the specifications are already stable and may be implemented. 6
  • 7. Markup  Forms  Multimedia  Graphics  New APIs  Graphics  Media Playback  GeoLocation  Web Sockets  Web Workers  Error Handling 7
  • 8. Like any other evolving technologies. HTML5 also deprecates some outdated tags such as: basefont big center Attributes: font • align s • link, vlink, alink, and text attributes on the body tag strike • bgcolor tt • height and width U • scrolling on the iframe element frame • valign frameset • hspace and vspace • cellpadding, cellspacing, and border on table noframes 8
  • 9. <header> - Defines a header region of a page or section. <footer> - Defines a footer region of a page or section. <nav> - Defines a navigation region of a page or section. <section> - Defines a logical region of a page or a grouping of content. <article> - Defines an article or complete piece of content. <aside> - Defines secondary or related content. 9
  • 10. New Input Tags <input type=“range”> <input type=“number”> <input type=“date”> <input type=“email”> <input type=“url”> <input type=“color”> <input type=“Search”> 10
  • 11. <input type="range" min="0" max="10" name="priority" value="0" id="priority" > 11
  • 12. <input type="number" name="estimated_hours" min="0" max="1000“ id="estimated_hours" > 12
  • 13.  <input type="date" name="start_date" id="start_date"  value="2010-12-01" > 13
  • 18. <input type="range" min="0" max="10" name="priority" value="0" id="priority" > 18
  • 19. Multimedia has become an integral part of our internet usage thus, HTML5 added support for both Video and Audio  <Video>  <Audio> 19
  • 20. Support for MP3, AAC, OGG <audio id="drums" controls> <source src="sounds/ogg/drums.ogg" type="audio/ogg"> <source src="sounds/mp3/drums.mp3" type="audio/mpeg"> <a href="sounds/mp3/drums.mp3">Download drums.mp3</a> </audio> 20
  • 21. Support for MP4, OGV, WebM format <video controls> <source src="video/h264/01_blur.mp4"> <source src="video/theora/01_blur.ogv"> <source src="video/webm/01_blur.webm"> <p>Your browser does not support the video tag.</p> </video> 21
  • 22. Supports creation of vector based graphics through the use of javascript <canvas id="myCanvas">your browser does not support the canvas tag </canvas> <script type="text/javascript"> var canvas=document.getElementById('myCanvas'); var ctx=canvas.getContext('2d'); ctx.fillStyle='#FF0000'; ctx.fillRect(0,0,80,100); </script> 22
  • 23. 23
  • 24.
  • 25.  New DOM Selectors  Audio and Video  Using the Canvas  Knowing your Location  Web Sockets
  • 26.  No minimum system requirements  Easier to code  Faster execution/response  Extends the ability  The completeness of HTML5
  • 27.  getElementById()  getElementsByTagName()  getElementsByClassName()  querySelector()  querySelectorAll()
  • 28. Wait, there’s no light and there’s no flash! How’s our party?
  • 29. Media Functions  Play()  Pause()  Load()
  • 30. Media Properties  Volume  Duration  Muted  Paused  Loop
  • 31. Events  Play  Pause  Abort  Ended  Progress
  • 32. Drawing in the canvas  Preparing your workspace  Creating a simple path ○ beginPath(); ○ lineTo(); ○ moveTo(); ○ Stroke();
  • 33. Drawing simples shapes  Circle ○ Arc();  Square ○ fillRect();
  • 34. Web workers  separate JS processes() running in separate threads,  executes concurrently,  doesn’t block the UI,  allow you to extract up to the last drop of juice from a multicore CPU,  can be dedicated (single tab) or shared among tabs/windows,
  • 35. Workers1.js MainProc.js Workers2.js Workers3.js
  • 36. Put it to work  new Worker();  onmessage();  postmessage();
  • 37. Using Geolocation  Remember: Always ask for permission!  I have no GPS! ○ IPAddress ○ WiFi ○ Cellphone
  • 38. Hey! Mr. Navigator…  coords.latitude  coords.longitude  getCurrentPosition()
  • 39. Communicate in a whole new way  TCP over the Web  2-way communication for the Internet ○ Use a client browser that implements the WebSocket protocol. ○ Write code in a webpage that creates a client websocket. ○ Write code on a web server that responds to a client request through a websocket
  • 40. Tuning in  URL  websocket()  open(), onopen  close(), onclose  onmessage()  postmessage()
  • 41. Consider older browsers  Detect Browser  Detect Feature availability