SlideShare a Scribd company logo
1 of 55
HTML5
By: Shubelal kumar
Agenda
• HTML
• HTML versions
• HTML5
• How Did HTML5 Get Started?
• Rules For HTML5
• HTML5 Less Header Code
• No need for type attribute
• More Semantic HTML Tags
• Media Tags
• Canvas
• Web storage
HTML
• Hyper Text Markup Language is the
language for specifying the static content
of Web pages.
• Hyper Text refers to the fact that Web
pages are more than just text.
• can contain multimedia, provide links for jumping
within & without.
HTML
• Markup refers to the fact that it works by
augmenting text with special symbols (tags) that
identify structure and content type.
• There are many versions of HTML
HTML Versions
• HTML 2.0 November 24, 1995
• HTML 3.2 January 1997
• HTML 4.0 December 1997
• HTML 4.0 April 1998
was reissued with minor edits without
incrementing the version number.
HTML Versions
• HTML 4.01 December 1999
• HTML5 January 2008
was published
HTML5
• HTML5 will be the new
standard for HTML, XHTML
• The previous version of
HTML came in 1999. The
web has changed a lot since
then.
HTML5
• HTML5 is still a work in
progress.
• However, most modern
browsers have some
HTML5 support.
How Did HTML5 Get Started?
• HTML5 is the cooperation between the
World Wide Web Consortium (W3C)
and the Web Hypertext Application
Technology Working Group (WHATWG).
How Did HTML5 Get Started?
• WHATWG was working with web forms
and applications, and W3C was working
with XHTML 2.0. In 2006, they decided to
cooperate and create a new version of
HTML
Rules For HTML5
• New features should be based on HTML,
CSS and JavaScript.
• Reduce the need for external plugins (like
Flash)
Rules For HTML5
• Better error handling.
• More markup to replace scripting.
• HTML5 should be device independent.
HTML5
Less Header Code
• With HTML5
<!DOCTYPE HTML>
<html>
<head>
<meta charset=”utf-8”>
<title>MSP</title>
</head>
Less Header Code
• Pre HTML5
<!DOCTYPE HTML PUBLIC "-//W3C//Dtd
HTML 4.01 Transitional//EN" "http://
www.w3.org/tr/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type"
content="text/html; charset=utf-8">
<title>MSP</title>
</head>
No need for type attribute
• With HTML5
<script src=”MSP.js”></script>
<link href=”MSP.css”></link>
No need for type attribute
• Pre HTML5
<script type=”text/javascript” src=”script.js”>
</script>
<link type=”text/css” href=”style.css”></link>
More Semantic HTML Tags
• Output
<output name="result"></output>
 Attributes
o Name
o For
More Semantic HTML Tags
• progress
<progress id="p"
max=100><span>0</span>%</progress>
 Attributes
o Value
o Max
More Semantic HTML Tags
• Meter
<meter min="0“ max="100“
value="75"></meter>
• Attributes
o Value
o Max
o Min
o High
o Low
o Form
More Semantic HTML Tags
• Details and Summary
 The content of a <details> element should
not be visible unless the open attribute is
set.
 User can show the content
More Semantic HTML Tags
<details>
<summary>coping 1999-2010</summary>
<p> - by Refsnes Data. All Rights Reserved.</p>
<p>All content and graphics on this web site
are the property of the company Refsnes
Data.</p>
</details>
 Attributes
o Open
More Semantic HTML Tags
• Address
• The <address> tag defines the contact
information for the author/owner of a
document or an article.
• If the <address> element is inside the
<body> element, it represents contact
information for the document.
More Semantic HTML Tags
• Address
• If the <address> element is inside an
<article> element, it represents contact
information for that article.
• The text in the <address> element usually
renders in italic. Most browsers will add a
line break before and after the address
element.
More Semantic HTML Tags
• Ex :
<address>
Written by <a
href="mailto:webmaster@example.com">Jon
Doe</a>.<br />
Visit us at:<br />
Example.com<br />
Box 564, Disneyland<br />
USA
</address>
More Semantic HTML Tags
• Figure
<figure>
<img src=“MSP.jpg" alt=“MSP">
<figcaption>Microsoft student
partner</figcaption>
</figure>
More Semantic HTML Tags
• Hgroup
<!DOCTYPE html>
<html>
<body>
<hgroup>
<h1>Welcome to my WWF</h1>
<h2>For a living planet</h2>
</hgroup>
</body>
</html>
More Semantic HTML Tags
• Article
Examples of possible articles:
forum post
newspaper article
blog entry
user comment
More Semantic HTML Tags
• Section
• The <section> tag defines sections in a
document. Such as
chapters, headers, footers, or any other
sections of the document.
More Semantic HTML Tags
• <article>
• <hgroup>
• <h1>Mobile Phones</h1>
• <h2>Different Smart Phones</h2>
• </hgroup>
• <p>Some of the more popular mobile smart phones</p>
• <section>
• <h1>Apple iPhone</h1>
• <p>A popular smart phone from Apple.</p>
• </section>
• <section>
• <h1>Android-based Phones</h1>
• <p>A series of smart phones that use the Google Android operating
system.</p>
• </section>
• </article>
More Semantic HTML Tags
• There are a lot of new tags at HTML5
which we used them a lot.
Media Tags
• Video
• Today, most videos are shown through a plug-in (like
flash). However, different browsers may have different
plug-ins.
• HTML5 defines a new element which specifies a
standard way to embed a video/movie on a web page
Media Tags
• <video width="320" height="240"
controls="controls">
<source src="movie.mp4" type="video/mp4" />
<source src="movie.ogg" type="video/ogg" />
Your browser does not support the video tag.
</video>
• The control attribute adds video controls, like
play, pause, and volume.
Media Tags
Browser MP4 WebM Ogg
Internet
Explorer 9
YES NO NO
Firefox 4.0 NO YES YES
Google
Chrome 6
YES YES YES
Apple Safari 5 YES NO NO
Opera 10.6 NO YES YES
Currently, there are 3 supported video formats for
the <video> element: MP4, WebM, and Ogg:
•MP4 = MPEG 4 files with H264 video codec and AAC audio codec
•WebM = WebM files with VP8 video codec and Vorbis audio codec
•Ogg = Ogg files with Theora video codec and Vorbis audio codec
Media Tags
• Video/Dom
• The HTML5 <video> element also has
methods, properties, and events.
• There are methods for playing, pausing, and
loading, for example. There are properties
(e.g. duration, volume, seeking) that you can
read or set. There are also DOM events that
can notify you, for example, when the
<video> element begins to play, is paused, is
ended, etc
Media Tags
Methods Properties Events
play() currentSrc play
pause() currentTime pause
load() videoWidth progress
canPlayType videoHeight error
duration timeupdate
ended ended
error abort
paused empty
muted emptied
seeking waiting
volume loadedmetadata
height
width
Media Tags
• There is an Example for video/Dom
Media Tags
• Audio
• Today, most audio files are played through a plug-in (like
flash). However, different browsers may have different
plug-ins.
• HTML5 defines a new element which specifies a
standard way to embed an audio file on a web page: the
<audio> element
Media Tags
• <audio controls="controls">
• <source src="song.ogg" type="audio/ogg" />
• <source src="song.mp3" type="audio/mpeg" />
• Your browser does not support the audio element.
• </audio>
• The control attribute adds audio controls, like
play, pause, and volume.
Media Tags
Browser MP3 Wav Ogg
Internet
Explorer 9
YES NO NO
Firefox 4.0 NO YES YES
Google
Chrome 6
YES YES YES
Apple Safari 5 YES YES NO
Opera 10.6 NO YES YES
Currently, there are 3 supported file formats for
the <audio> element: MP3, Wav, and Ogg:
Canvas
• What is Canvas?
• The HTML5 canvas element uses
JavaScript to draw graphics on a web
page.
Canvas
• A canvas is a rectangular area, and you
control every pixel of it.
• The canvas element has several methods
for drawing
paths, boxes, circles, characters, and
adding images.
Canvas
• Create a Canvas Element
• <canvas id="myCanvas" width="200"
height="100"></canvas>
Canvas
• Draw With JavaScript
• <script type="text/javascript">
var c=document.getElementById("myCanvas");
var ctx=c.getContext("2d");
ctx.fillStyle="#FF0000";
ctx.fillRect(0,0,150,75);
</script>
Web Storage
• HTML5 offers two new objects for storing
data on the client:
localStorage - stores data with no time
limit
sessionStorage - stores data for one
session
Web Storage
• Earlier, this was done with cookies.
Cookies are not suitable for large amounts
of data, because they are passed on by
EVERY request to the server, making it
very slow and in-effective.
Web Storage
• In HTML5, the data is NOT passed on by
every server request, but used ONLY
when asked for. It is possible to store large
amounts of data without affecting the
website's performance.
Web Storage
• The data is stored in different areas for
different websites, and a website can only
access data stored by itself.
• HTML5 uses JavaScript to store and
access the data
The localStorage Object
• The localStorage object stores the data
with no time limit. The data will be
available the next day, week, or year.
The localStorage Object
• How to create and access a localStorage:
<script type="text/javascript">
localStorage.lastname="Smith";
document.write("Last name: " +
localStorage.lastname);
</script>
</body>
The sessionStorage Object
• The sessionStorage object stores the data
for one session. The data is deleted when
the user closes the browser window.
The sessionStorage Object
• How to create and access a
sessionStorage:
<script type="text/javascript">
sessionStorage.lastname="Smith";
document.write(sessionStorage.lastname);
</script>
Review
• HTML
• HTML5
• How Did HTML5 Get Started?
• RulesFor HTML5
• HTML5 Less Header Code
• No need for type attribute
• More Semantic HTML Tags
• Media Tags
• Canvas
• Web storage
Questions?
Thank you

More Related Content

What's hot

HTML5: It goes to ELEVEN
HTML5: It goes to ELEVENHTML5: It goes to ELEVEN
HTML5: It goes to ELEVENMathias Bynens
 
Building faster websites: web performance with WordPress
Building faster websites: web performance with WordPressBuilding faster websites: web performance with WordPress
Building faster websites: web performance with WordPressJohannes Siipola
 
Page Performance
Page PerformancePage Performance
Page Performanceatorreno
 
NoSQL into E-Commerce: lessons learned
NoSQL into E-Commerce: lessons learnedNoSQL into E-Commerce: lessons learned
NoSQL into E-Commerce: lessons learnedLa FeWeb
 
Basics of css and xhtml
Basics of css and xhtmlBasics of css and xhtml
Basics of css and xhtmlsagaroceanic11
 
ePUB 3 and Publishing e-books
ePUB 3 and Publishing e-booksePUB 3 and Publishing e-books
ePUB 3 and Publishing e-booksKerem Karatal
 
Code for Startup MVP (Ruby on Rails) Session 1
Code for Startup MVP (Ruby on Rails) Session 1Code for Startup MVP (Ruby on Rails) Session 1
Code for Startup MVP (Ruby on Rails) Session 1Henry S
 
Pamela - Brining back the pleasure of hand-written HTML - Montréal Python 8
Pamela - Brining back the pleasure of hand-written HTML - Montréal Python 8Pamela - Brining back the pleasure of hand-written HTML - Montréal Python 8
Pamela - Brining back the pleasure of hand-written HTML - Montréal Python 8spierre
 
Please Don't Touch the Slow Parts V3
Please Don't Touch the Slow Parts V3Please Don't Touch the Slow Parts V3
Please Don't Touch the Slow Parts V3Federico Galassi
 
HTML5, The Open Web, and what it means for you - Altran
HTML5, The Open Web, and what it means for you - AltranHTML5, The Open Web, and what it means for you - Altran
HTML5, The Open Web, and what it means for you - AltranRobert Nyman
 
WCBos13 intermediate workshop
WCBos13 intermediate workshopWCBos13 intermediate workshop
WCBos13 intermediate workshopBoston WordPress
 
Grok Drupal (7) Theming - 2011 Feb update
Grok Drupal (7) Theming - 2011 Feb updateGrok Drupal (7) Theming - 2011 Feb update
Grok Drupal (7) Theming - 2011 Feb updateLaura Scott
 
Hacking iBooks and ePub3 with JavaScript!
Hacking iBooks and ePub3 with JavaScript!Hacking iBooks and ePub3 with JavaScript!
Hacking iBooks and ePub3 with JavaScript!Jim McKeeth
 

What's hot (20)

HTML5: It goes to ELEVEN
HTML5: It goes to ELEVENHTML5: It goes to ELEVEN
HTML5: It goes to ELEVEN
 
[In Control 2010] HTML5
[In Control 2010] HTML5[In Control 2010] HTML5
[In Control 2010] HTML5
 
Please dont touch-3.5
Please dont touch-3.5Please dont touch-3.5
Please dont touch-3.5
 
Looking into HTML5 + CSS3
Looking into HTML5 + CSS3Looking into HTML5 + CSS3
Looking into HTML5 + CSS3
 
Building faster websites: web performance with WordPress
Building faster websites: web performance with WordPressBuilding faster websites: web performance with WordPress
Building faster websites: web performance with WordPress
 
Page Performance
Page PerformancePage Performance
Page Performance
 
Kick start @ html5
Kick start @ html5Kick start @ html5
Kick start @ html5
 
NoSQL into E-Commerce: lessons learned
NoSQL into E-Commerce: lessons learnedNoSQL into E-Commerce: lessons learned
NoSQL into E-Commerce: lessons learned
 
Basics of css and xhtml
Basics of css and xhtmlBasics of css and xhtml
Basics of css and xhtml
 
ePUB 3 and Publishing e-books
ePUB 3 and Publishing e-booksePUB 3 and Publishing e-books
ePUB 3 and Publishing e-books
 
Code for Startup MVP (Ruby on Rails) Session 1
Code for Startup MVP (Ruby on Rails) Session 1Code for Startup MVP (Ruby on Rails) Session 1
Code for Startup MVP (Ruby on Rails) Session 1
 
Pamela - Brining back the pleasure of hand-written HTML - Montréal Python 8
Pamela - Brining back the pleasure of hand-written HTML - Montréal Python 8Pamela - Brining back the pleasure of hand-written HTML - Montréal Python 8
Pamela - Brining back the pleasure of hand-written HTML - Montréal Python 8
 
Please Don't Touch the Slow Parts V3
Please Don't Touch the Slow Parts V3Please Don't Touch the Slow Parts V3
Please Don't Touch the Slow Parts V3
 
HTML5, The Open Web, and what it means for you - Altran
HTML5, The Open Web, and what it means for you - AltranHTML5, The Open Web, and what it means for you - Altran
HTML5, The Open Web, and what it means for you - Altran
 
Wt unit 1 ppts web development process
Wt unit 1 ppts web development processWt unit 1 ppts web development process
Wt unit 1 ppts web development process
 
WCBos13 intermediate workshop
WCBos13 intermediate workshopWCBos13 intermediate workshop
WCBos13 intermediate workshop
 
Html5
Html5Html5
Html5
 
Grok Drupal (7) Theming - 2011 Feb update
Grok Drupal (7) Theming - 2011 Feb updateGrok Drupal (7) Theming - 2011 Feb update
Grok Drupal (7) Theming - 2011 Feb update
 
Hacking iBooks and ePub3 with JavaScript!
Hacking iBooks and ePub3 with JavaScript!Hacking iBooks and ePub3 with JavaScript!
Hacking iBooks and ePub3 with JavaScript!
 
Html5
Html5Html5
Html5
 

Viewers also liked

Building a better web with free, open technologies (no notes version)
Building a better web with free, open technologies (no notes version)Building a better web with free, open technologies (no notes version)
Building a better web with free, open technologies (no notes version)Christian Heilmann
 
Firefox OS, fixing the mobile web - FITC Toronto - 2014-04-28
Firefox OS, fixing the mobile web - FITC Toronto - 2014-04-28Firefox OS, fixing the mobile web - FITC Toronto - 2014-04-28
Firefox OS, fixing the mobile web - FITC Toronto - 2014-04-28Frédéric Harper
 
HTML5ビデオ導入編
HTML5ビデオ導入編HTML5ビデオ導入編
HTML5ビデオ導入編Yuki Naotori
 
Presentation about html5 css3
Presentation about html5 css3Presentation about html5 css3
Presentation about html5 css3Gopi A
 
Introduction of html5
Introduction of html5Introduction of html5
Introduction of html5kokila T
 
Training Html5 -CSS3 New things
Training Html5 -CSS3 New thingsTraining Html5 -CSS3 New things
Training Html5 -CSS3 New thingsJimmy Campos
 
Using LuaJIT in mid-load web-projects
Using LuaJIT in mid-load web-projectsUsing LuaJIT in mid-load web-projects
Using LuaJIT in mid-load web-projectsAlexander Gladysh
 
Lua by Ong Hean Kuan
Lua by Ong Hean KuanLua by Ong Hean Kuan
Lua by Ong Hean Kuanfossmy
 
ライブストリーミングの基礎知識
ライブストリーミングの基礎知識ライブストリーミングの基礎知識
ライブストリーミングの基礎知識kumaryu
 
Medical Store Presentation ppt
Medical Store Presentation pptMedical Store Presentation ppt
Medical Store Presentation pptSk Habib
 
Lua: the world's most infuriating language
Lua: the world's most infuriating languageLua: the world's most infuriating language
Lua: the world's most infuriating languagejgrahamc
 

Viewers also liked (20)

HTML 5 - Overview
HTML 5 - OverviewHTML 5 - Overview
HTML 5 - Overview
 
HTML 5 Overview
HTML 5 OverviewHTML 5 Overview
HTML 5 Overview
 
HTML 5 Overview
HTML 5 OverviewHTML 5 Overview
HTML 5 Overview
 
Building a better web with free, open technologies (no notes version)
Building a better web with free, open technologies (no notes version)Building a better web with free, open technologies (no notes version)
Building a better web with free, open technologies (no notes version)
 
Firefox OS, fixing the mobile web - FITC Toronto - 2014-04-28
Firefox OS, fixing the mobile web - FITC Toronto - 2014-04-28Firefox OS, fixing the mobile web - FITC Toronto - 2014-04-28
Firefox OS, fixing the mobile web - FITC Toronto - 2014-04-28
 
HTML5ビデオ導入編
HTML5ビデオ導入編HTML5ビデオ導入編
HTML5ビデオ導入編
 
Presentation about html5 css3
Presentation about html5 css3Presentation about html5 css3
Presentation about html5 css3
 
Introduction of html5
Introduction of html5Introduction of html5
Introduction of html5
 
Training Html5 -CSS3 New things
Training Html5 -CSS3 New thingsTraining Html5 -CSS3 New things
Training Html5 -CSS3 New things
 
Using LuaJIT in mid-load web-projects
Using LuaJIT in mid-load web-projectsUsing LuaJIT in mid-load web-projects
Using LuaJIT in mid-load web-projects
 
Lua by Ong Hean Kuan
Lua by Ong Hean KuanLua by Ong Hean Kuan
Lua by Ong Hean Kuan
 
Lua on Steroids
Lua on SteroidsLua on Steroids
Lua on Steroids
 
ライブストリーミングの基礎知識
ライブストリーミングの基礎知識ライブストリーミングの基礎知識
ライブストリーミングの基礎知識
 
LuaJIT
LuaJITLuaJIT
LuaJIT
 
Lua and its Ecosystem
Lua and its EcosystemLua and its Ecosystem
Lua and its Ecosystem
 
Introduction to HTML5 & CSS3
Introduction to HTML5 & CSS3Introduction to HTML5 & CSS3
Introduction to HTML5 & CSS3
 
html5.ppt
html5.ppthtml5.ppt
html5.ppt
 
HTML5
HTML5HTML5
HTML5
 
Medical Store Presentation ppt
Medical Store Presentation pptMedical Store Presentation ppt
Medical Store Presentation ppt
 
Lua: the world's most infuriating language
Lua: the world's most infuriating languageLua: the world's most infuriating language
Lua: the world's most infuriating language
 

Similar to Html5 shubelal (20)

HTML5
HTML5 HTML5
HTML5
 
Html5 n css3
Html5 n css3Html5 n css3
Html5 n css3
 
Html5
Html5Html5
Html5
 
HTML5
HTML5HTML5
HTML5
 
Introduction to HTML5 and CSS3 (revised)
Introduction to HTML5 and CSS3 (revised)Introduction to HTML5 and CSS3 (revised)
Introduction to HTML5 and CSS3 (revised)
 
Html 5
Html 5Html 5
Html 5
 
HTML5 Refresher
HTML5 RefresherHTML5 Refresher
HTML5 Refresher
 
Rohit&kunjan
Rohit&kunjanRohit&kunjan
Rohit&kunjan
 
HTML5 History & Features
HTML5 History & FeaturesHTML5 History & Features
HTML5 History & Features
 
Html5 public
Html5 publicHtml5 public
Html5 public
 
Fundamentals of HTML5
Fundamentals of HTML5Fundamentals of HTML5
Fundamentals of HTML5
 
The web context
The web contextThe web context
The web context
 
HTML 5
HTML 5HTML 5
HTML 5
 
Html,CSS & UI/UX design
Html,CSS & UI/UX designHtml,CSS & UI/UX design
Html,CSS & UI/UX design
 
Basics of HTML5 for Phonegap
Basics of HTML5 for PhonegapBasics of HTML5 for Phonegap
Basics of HTML5 for Phonegap
 
High-Speed HTML5
High-Speed HTML5High-Speed HTML5
High-Speed HTML5
 
Html5
Html5Html5
Html5
 
HTML & CSS.ppt
HTML & CSS.pptHTML & CSS.ppt
HTML & CSS.ppt
 
Intro to HTML
Intro to HTMLIntro to HTML
Intro to HTML
 
HTML5 tags.ppt
HTML5 tags.pptHTML5 tags.ppt
HTML5 tags.ppt
 

Recently uploaded

Simple Conference Style Presentation by Slidesgo.pptx
Simple Conference Style Presentation by Slidesgo.pptxSimple Conference Style Presentation by Slidesgo.pptx
Simple Conference Style Presentation by Slidesgo.pptxbalqisyamutia
 
Sweety Planet Packaging Design Process Book.pptx
Sweety Planet Packaging Design Process Book.pptxSweety Planet Packaging Design Process Book.pptx
Sweety Planet Packaging Design Process Book.pptxbingyichin04
 
Pondicherry Escorts Service Girl ^ 9332606886, WhatsApp Anytime Pondicherry
Pondicherry Escorts Service Girl ^ 9332606886, WhatsApp Anytime PondicherryPondicherry Escorts Service Girl ^ 9332606886, WhatsApp Anytime Pondicherry
Pondicherry Escorts Service Girl ^ 9332606886, WhatsApp Anytime Pondicherrymeghakumariji156
 
Lecture 01 Introduction To Multimedia.pptx
Lecture 01 Introduction To Multimedia.pptxLecture 01 Introduction To Multimedia.pptx
Lecture 01 Introduction To Multimedia.pptxShoaibRajper1
 
Top profile Call Girls In eluru [ 7014168258 ] Call Me For Genuine Models We ...
Top profile Call Girls In eluru [ 7014168258 ] Call Me For Genuine Models We ...Top profile Call Girls In eluru [ 7014168258 ] Call Me For Genuine Models We ...
Top profile Call Girls In eluru [ 7014168258 ] Call Me For Genuine Models We ...gajnagarg
 
Abortion pills in Riyadh +966572737505 <> buy cytotec <> unwanted kit Saudi A...
Abortion pills in Riyadh +966572737505 <> buy cytotec <> unwanted kit Saudi A...Abortion pills in Riyadh +966572737505 <> buy cytotec <> unwanted kit Saudi A...
Abortion pills in Riyadh +966572737505 <> buy cytotec <> unwanted kit Saudi A...samsungultra782445
 
怎样办理伯明翰大学学院毕业证(Birmingham毕业证书)成绩单留信认证
怎样办理伯明翰大学学院毕业证(Birmingham毕业证书)成绩单留信认证怎样办理伯明翰大学学院毕业证(Birmingham毕业证书)成绩单留信认证
怎样办理伯明翰大学学院毕业证(Birmingham毕业证书)成绩单留信认证eeanqy
 
怎样办理伯明翰城市大学毕业证(BCU毕业证书)成绩单留信认证
怎样办理伯明翰城市大学毕业证(BCU毕业证书)成绩单留信认证怎样办理伯明翰城市大学毕业证(BCU毕业证书)成绩单留信认证
怎样办理伯明翰城市大学毕业证(BCU毕业证书)成绩单留信认证eeanqy
 
UI:UX Design and Empowerment Strategies for Underprivileged Transgender Indiv...
UI:UX Design and Empowerment Strategies for Underprivileged Transgender Indiv...UI:UX Design and Empowerment Strategies for Underprivileged Transgender Indiv...
UI:UX Design and Empowerment Strategies for Underprivileged Transgender Indiv...RitikaRoy32
 
怎样办理伦敦国王学院毕业证(KCL毕业证书)成绩单留信认证
怎样办理伦敦国王学院毕业证(KCL毕业证书)成绩单留信认证怎样办理伦敦国王学院毕业证(KCL毕业证书)成绩单留信认证
怎样办理伦敦国王学院毕业证(KCL毕业证书)成绩单留信认证eeanqy
 
NO1 Top Pakistani Amil Baba Real Amil baba In Pakistan Najoomi Baba in Pakist...
NO1 Top Pakistani Amil Baba Real Amil baba In Pakistan Najoomi Baba in Pakist...NO1 Top Pakistani Amil Baba Real Amil baba In Pakistan Najoomi Baba in Pakist...
NO1 Top Pakistani Amil Baba Real Amil baba In Pakistan Najoomi Baba in Pakist...Amil baba
 
ab-initio-training basics and architecture
ab-initio-training basics and architectureab-initio-training basics and architecture
ab-initio-training basics and architecturesaipriyacoool
 
Eye-Catching Web Design Crafting User Interfaces .docx
Eye-Catching Web Design Crafting User Interfaces .docxEye-Catching Web Design Crafting User Interfaces .docx
Eye-Catching Web Design Crafting User Interfaces .docxMdBokhtiyarHossainNi
 
TRose UXPA Experience Design Concord .pptx
TRose UXPA Experience Design Concord .pptxTRose UXPA Experience Design Concord .pptx
TRose UXPA Experience Design Concord .pptxtrose8
 
Q4-W4-SCIENCE-5 power point presentation
Q4-W4-SCIENCE-5 power point presentationQ4-W4-SCIENCE-5 power point presentation
Q4-W4-SCIENCE-5 power point presentationZenSeloveres
 
一比一定(购)西悉尼大学毕业证(WSU毕业证)成绩单学位证
一比一定(购)西悉尼大学毕业证(WSU毕业证)成绩单学位证一比一定(购)西悉尼大学毕业证(WSU毕业证)成绩单学位证
一比一定(购)西悉尼大学毕业证(WSU毕业证)成绩单学位证eqaqen
 
BLOCK CHAIN PROJECT block chain project
BLOCK CHAIN  PROJECT block chain projectBLOCK CHAIN  PROJECT block chain project
BLOCK CHAIN PROJECT block chain projectujraj8767
 
How to Create a Productive Workspace Trends and Tips.pdf
How to Create a Productive Workspace Trends and Tips.pdfHow to Create a Productive Workspace Trends and Tips.pdf
How to Create a Productive Workspace Trends and Tips.pdfOffice Furniture Plus - Irving
 
Minimalist Orange Portfolio by Slidesgo.pptx
Minimalist Orange Portfolio by Slidesgo.pptxMinimalist Orange Portfolio by Slidesgo.pptx
Minimalist Orange Portfolio by Slidesgo.pptxbalqisyamutia
 

Recently uploaded (20)

Simple Conference Style Presentation by Slidesgo.pptx
Simple Conference Style Presentation by Slidesgo.pptxSimple Conference Style Presentation by Slidesgo.pptx
Simple Conference Style Presentation by Slidesgo.pptx
 
Sweety Planet Packaging Design Process Book.pptx
Sweety Planet Packaging Design Process Book.pptxSweety Planet Packaging Design Process Book.pptx
Sweety Planet Packaging Design Process Book.pptx
 
Pondicherry Escorts Service Girl ^ 9332606886, WhatsApp Anytime Pondicherry
Pondicherry Escorts Service Girl ^ 9332606886, WhatsApp Anytime PondicherryPondicherry Escorts Service Girl ^ 9332606886, WhatsApp Anytime Pondicherry
Pondicherry Escorts Service Girl ^ 9332606886, WhatsApp Anytime Pondicherry
 
Lecture 01 Introduction To Multimedia.pptx
Lecture 01 Introduction To Multimedia.pptxLecture 01 Introduction To Multimedia.pptx
Lecture 01 Introduction To Multimedia.pptx
 
Top profile Call Girls In eluru [ 7014168258 ] Call Me For Genuine Models We ...
Top profile Call Girls In eluru [ 7014168258 ] Call Me For Genuine Models We ...Top profile Call Girls In eluru [ 7014168258 ] Call Me For Genuine Models We ...
Top profile Call Girls In eluru [ 7014168258 ] Call Me For Genuine Models We ...
 
Abortion pills in Riyadh +966572737505 <> buy cytotec <> unwanted kit Saudi A...
Abortion pills in Riyadh +966572737505 <> buy cytotec <> unwanted kit Saudi A...Abortion pills in Riyadh +966572737505 <> buy cytotec <> unwanted kit Saudi A...
Abortion pills in Riyadh +966572737505 <> buy cytotec <> unwanted kit Saudi A...
 
怎样办理伯明翰大学学院毕业证(Birmingham毕业证书)成绩单留信认证
怎样办理伯明翰大学学院毕业证(Birmingham毕业证书)成绩单留信认证怎样办理伯明翰大学学院毕业证(Birmingham毕业证书)成绩单留信认证
怎样办理伯明翰大学学院毕业证(Birmingham毕业证书)成绩单留信认证
 
怎样办理伯明翰城市大学毕业证(BCU毕业证书)成绩单留信认证
怎样办理伯明翰城市大学毕业证(BCU毕业证书)成绩单留信认证怎样办理伯明翰城市大学毕业证(BCU毕业证书)成绩单留信认证
怎样办理伯明翰城市大学毕业证(BCU毕业证书)成绩单留信认证
 
UI:UX Design and Empowerment Strategies for Underprivileged Transgender Indiv...
UI:UX Design and Empowerment Strategies for Underprivileged Transgender Indiv...UI:UX Design and Empowerment Strategies for Underprivileged Transgender Indiv...
UI:UX Design and Empowerment Strategies for Underprivileged Transgender Indiv...
 
怎样办理伦敦国王学院毕业证(KCL毕业证书)成绩单留信认证
怎样办理伦敦国王学院毕业证(KCL毕业证书)成绩单留信认证怎样办理伦敦国王学院毕业证(KCL毕业证书)成绩单留信认证
怎样办理伦敦国王学院毕业证(KCL毕业证书)成绩单留信认证
 
NO1 Top Pakistani Amil Baba Real Amil baba In Pakistan Najoomi Baba in Pakist...
NO1 Top Pakistani Amil Baba Real Amil baba In Pakistan Najoomi Baba in Pakist...NO1 Top Pakistani Amil Baba Real Amil baba In Pakistan Najoomi Baba in Pakist...
NO1 Top Pakistani Amil Baba Real Amil baba In Pakistan Najoomi Baba in Pakist...
 
Abortion Pills in Oman (+918133066128) Cytotec clinic buy Oman Muscat
Abortion Pills in Oman (+918133066128) Cytotec clinic buy Oman MuscatAbortion Pills in Oman (+918133066128) Cytotec clinic buy Oman Muscat
Abortion Pills in Oman (+918133066128) Cytotec clinic buy Oman Muscat
 
ab-initio-training basics and architecture
ab-initio-training basics and architectureab-initio-training basics and architecture
ab-initio-training basics and architecture
 
Eye-Catching Web Design Crafting User Interfaces .docx
Eye-Catching Web Design Crafting User Interfaces .docxEye-Catching Web Design Crafting User Interfaces .docx
Eye-Catching Web Design Crafting User Interfaces .docx
 
TRose UXPA Experience Design Concord .pptx
TRose UXPA Experience Design Concord .pptxTRose UXPA Experience Design Concord .pptx
TRose UXPA Experience Design Concord .pptx
 
Q4-W4-SCIENCE-5 power point presentation
Q4-W4-SCIENCE-5 power point presentationQ4-W4-SCIENCE-5 power point presentation
Q4-W4-SCIENCE-5 power point presentation
 
一比一定(购)西悉尼大学毕业证(WSU毕业证)成绩单学位证
一比一定(购)西悉尼大学毕业证(WSU毕业证)成绩单学位证一比一定(购)西悉尼大学毕业证(WSU毕业证)成绩单学位证
一比一定(购)西悉尼大学毕业证(WSU毕业证)成绩单学位证
 
BLOCK CHAIN PROJECT block chain project
BLOCK CHAIN  PROJECT block chain projectBLOCK CHAIN  PROJECT block chain project
BLOCK CHAIN PROJECT block chain project
 
How to Create a Productive Workspace Trends and Tips.pdf
How to Create a Productive Workspace Trends and Tips.pdfHow to Create a Productive Workspace Trends and Tips.pdf
How to Create a Productive Workspace Trends and Tips.pdf
 
Minimalist Orange Portfolio by Slidesgo.pptx
Minimalist Orange Portfolio by Slidesgo.pptxMinimalist Orange Portfolio by Slidesgo.pptx
Minimalist Orange Portfolio by Slidesgo.pptx
 

Html5 shubelal

  • 2. Agenda • HTML • HTML versions • HTML5 • How Did HTML5 Get Started? • Rules For HTML5 • HTML5 Less Header Code • No need for type attribute • More Semantic HTML Tags • Media Tags • Canvas • Web storage
  • 3. HTML • Hyper Text Markup Language is the language for specifying the static content of Web pages. • Hyper Text refers to the fact that Web pages are more than just text. • can contain multimedia, provide links for jumping within & without.
  • 4. HTML • Markup refers to the fact that it works by augmenting text with special symbols (tags) that identify structure and content type. • There are many versions of HTML
  • 5. HTML Versions • HTML 2.0 November 24, 1995 • HTML 3.2 January 1997 • HTML 4.0 December 1997 • HTML 4.0 April 1998 was reissued with minor edits without incrementing the version number.
  • 6. HTML Versions • HTML 4.01 December 1999 • HTML5 January 2008 was published
  • 7. HTML5 • HTML5 will be the new standard for HTML, XHTML • The previous version of HTML came in 1999. The web has changed a lot since then.
  • 8. HTML5 • HTML5 is still a work in progress. • However, most modern browsers have some HTML5 support.
  • 9. How Did HTML5 Get Started? • HTML5 is the cooperation between the World Wide Web Consortium (W3C) and the Web Hypertext Application Technology Working Group (WHATWG).
  • 10. How Did HTML5 Get Started? • WHATWG was working with web forms and applications, and W3C was working with XHTML 2.0. In 2006, they decided to cooperate and create a new version of HTML
  • 11. Rules For HTML5 • New features should be based on HTML, CSS and JavaScript. • Reduce the need for external plugins (like Flash)
  • 12. Rules For HTML5 • Better error handling. • More markup to replace scripting. • HTML5 should be device independent.
  • 13. HTML5
  • 14. Less Header Code • With HTML5 <!DOCTYPE HTML> <html> <head> <meta charset=”utf-8”> <title>MSP</title> </head>
  • 15. Less Header Code • Pre HTML5 <!DOCTYPE HTML PUBLIC "-//W3C//Dtd HTML 4.01 Transitional//EN" "http:// www.w3.org/tr/html4/loose.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <title>MSP</title> </head>
  • 16. No need for type attribute • With HTML5 <script src=”MSP.js”></script> <link href=”MSP.css”></link>
  • 17. No need for type attribute • Pre HTML5 <script type=”text/javascript” src=”script.js”> </script> <link type=”text/css” href=”style.css”></link>
  • 18. More Semantic HTML Tags • Output <output name="result"></output>  Attributes o Name o For
  • 19. More Semantic HTML Tags • progress <progress id="p" max=100><span>0</span>%</progress>  Attributes o Value o Max
  • 20. More Semantic HTML Tags • Meter <meter min="0“ max="100“ value="75"></meter> • Attributes o Value o Max o Min o High o Low o Form
  • 21. More Semantic HTML Tags • Details and Summary  The content of a <details> element should not be visible unless the open attribute is set.  User can show the content
  • 22. More Semantic HTML Tags <details> <summary>coping 1999-2010</summary> <p> - by Refsnes Data. All Rights Reserved.</p> <p>All content and graphics on this web site are the property of the company Refsnes Data.</p> </details>  Attributes o Open
  • 23. More Semantic HTML Tags • Address • The <address> tag defines the contact information for the author/owner of a document or an article. • If the <address> element is inside the <body> element, it represents contact information for the document.
  • 24. More Semantic HTML Tags • Address • If the <address> element is inside an <article> element, it represents contact information for that article. • The text in the <address> element usually renders in italic. Most browsers will add a line break before and after the address element.
  • 25. More Semantic HTML Tags • Ex : <address> Written by <a href="mailto:webmaster@example.com">Jon Doe</a>.<br /> Visit us at:<br /> Example.com<br /> Box 564, Disneyland<br /> USA </address>
  • 26. More Semantic HTML Tags • Figure <figure> <img src=“MSP.jpg" alt=“MSP"> <figcaption>Microsoft student partner</figcaption> </figure>
  • 27. More Semantic HTML Tags • Hgroup <!DOCTYPE html> <html> <body> <hgroup> <h1>Welcome to my WWF</h1> <h2>For a living planet</h2> </hgroup> </body> </html>
  • 28. More Semantic HTML Tags • Article Examples of possible articles: forum post newspaper article blog entry user comment
  • 29. More Semantic HTML Tags • Section • The <section> tag defines sections in a document. Such as chapters, headers, footers, or any other sections of the document.
  • 30. More Semantic HTML Tags • <article> • <hgroup> • <h1>Mobile Phones</h1> • <h2>Different Smart Phones</h2> • </hgroup> • <p>Some of the more popular mobile smart phones</p> • <section> • <h1>Apple iPhone</h1> • <p>A popular smart phone from Apple.</p> • </section> • <section> • <h1>Android-based Phones</h1> • <p>A series of smart phones that use the Google Android operating system.</p> • </section> • </article>
  • 31. More Semantic HTML Tags • There are a lot of new tags at HTML5 which we used them a lot.
  • 32. Media Tags • Video • Today, most videos are shown through a plug-in (like flash). However, different browsers may have different plug-ins. • HTML5 defines a new element which specifies a standard way to embed a video/movie on a web page
  • 33. Media Tags • <video width="320" height="240" controls="controls"> <source src="movie.mp4" type="video/mp4" /> <source src="movie.ogg" type="video/ogg" /> Your browser does not support the video tag. </video> • The control attribute adds video controls, like play, pause, and volume.
  • 34. Media Tags Browser MP4 WebM Ogg Internet Explorer 9 YES NO NO Firefox 4.0 NO YES YES Google Chrome 6 YES YES YES Apple Safari 5 YES NO NO Opera 10.6 NO YES YES Currently, there are 3 supported video formats for the <video> element: MP4, WebM, and Ogg: •MP4 = MPEG 4 files with H264 video codec and AAC audio codec •WebM = WebM files with VP8 video codec and Vorbis audio codec •Ogg = Ogg files with Theora video codec and Vorbis audio codec
  • 35. Media Tags • Video/Dom • The HTML5 <video> element also has methods, properties, and events. • There are methods for playing, pausing, and loading, for example. There are properties (e.g. duration, volume, seeking) that you can read or set. There are also DOM events that can notify you, for example, when the <video> element begins to play, is paused, is ended, etc
  • 36. Media Tags Methods Properties Events play() currentSrc play pause() currentTime pause load() videoWidth progress canPlayType videoHeight error duration timeupdate ended ended error abort paused empty muted emptied seeking waiting volume loadedmetadata height width
  • 37. Media Tags • There is an Example for video/Dom
  • 38. Media Tags • Audio • Today, most audio files are played through a plug-in (like flash). However, different browsers may have different plug-ins. • HTML5 defines a new element which specifies a standard way to embed an audio file on a web page: the <audio> element
  • 39. Media Tags • <audio controls="controls"> • <source src="song.ogg" type="audio/ogg" /> • <source src="song.mp3" type="audio/mpeg" /> • Your browser does not support the audio element. • </audio> • The control attribute adds audio controls, like play, pause, and volume.
  • 40. Media Tags Browser MP3 Wav Ogg Internet Explorer 9 YES NO NO Firefox 4.0 NO YES YES Google Chrome 6 YES YES YES Apple Safari 5 YES YES NO Opera 10.6 NO YES YES Currently, there are 3 supported file formats for the <audio> element: MP3, Wav, and Ogg:
  • 41. Canvas • What is Canvas? • The HTML5 canvas element uses JavaScript to draw graphics on a web page.
  • 42. Canvas • A canvas is a rectangular area, and you control every pixel of it. • The canvas element has several methods for drawing paths, boxes, circles, characters, and adding images.
  • 43. Canvas • Create a Canvas Element • <canvas id="myCanvas" width="200" height="100"></canvas>
  • 44. Canvas • Draw With JavaScript • <script type="text/javascript"> var c=document.getElementById("myCanvas"); var ctx=c.getContext("2d"); ctx.fillStyle="#FF0000"; ctx.fillRect(0,0,150,75); </script>
  • 45. Web Storage • HTML5 offers two new objects for storing data on the client: localStorage - stores data with no time limit sessionStorage - stores data for one session
  • 46. Web Storage • Earlier, this was done with cookies. Cookies are not suitable for large amounts of data, because they are passed on by EVERY request to the server, making it very slow and in-effective.
  • 47. Web Storage • In HTML5, the data is NOT passed on by every server request, but used ONLY when asked for. It is possible to store large amounts of data without affecting the website's performance.
  • 48. Web Storage • The data is stored in different areas for different websites, and a website can only access data stored by itself. • HTML5 uses JavaScript to store and access the data
  • 49. The localStorage Object • The localStorage object stores the data with no time limit. The data will be available the next day, week, or year.
  • 50. The localStorage Object • How to create and access a localStorage: <script type="text/javascript"> localStorage.lastname="Smith"; document.write("Last name: " + localStorage.lastname); </script> </body>
  • 51. The sessionStorage Object • The sessionStorage object stores the data for one session. The data is deleted when the user closes the browser window.
  • 52. The sessionStorage Object • How to create and access a sessionStorage: <script type="text/javascript"> sessionStorage.lastname="Smith"; document.write(sessionStorage.lastname); </script>
  • 53. Review • HTML • HTML5 • How Did HTML5 Get Started? • RulesFor HTML5 • HTML5 Less Header Code • No need for type attribute • More Semantic HTML Tags • Media Tags • Canvas • Web storage

Editor's Notes

  1. The DOCTYPE tag always begins with an exclamation point and is always placed at thebeginning of the document, before any other tag. Most HTML tags are not case-sensitive,but the word DOCTYPE should always be uppercase.Using the DOCTYPE tag is like signing a contract. It is an optional tag, but when you useit, you are promising that your coding will conform to certain standards. When a Webbrowser encounters a DOCTYPE tag, it processes the page in standards mode. When itdoesn’t encounter the DOCTYPE tag, it assumes that there is something quirky about thepage, and processes the page in quirks mode. When the browser sees the tag &lt;!DOCTYPEhtml&gt;, it assumes you are using HTML5.