SlideShare una empresa de Scribd logo
1 de 32
Web Programming
HTML5
 HTML5 Intro
 HTML5 input type
 HTML5 Video
 HTML5 Audio

2
What is HTML5?
• HTML5 will be the new standard for HTML.
• The previous version of HTML, HTML 4.01, came in 1999. The internet has changed
significantly since then.
• HTML5 is intended to subsume not only HTML 4, but also XHTML 1 and DOM Level 2
HTML.
• HTML5 is designed to deliver almost everything you want to do online without requiring
additional plugins. It does everything from animation to apps, music to movies, and can
also be used to build complicated applications that run in your browser.
• HTML5 is also cross-platform (it does not care whether you are using a tablet or a
smartphone, a netbook, notebook or a Smart TV).
• HTML5 can also be used to write web applications that still work when you are not
online.
• The HTML 5 working group includes AOL, Apple, Google, IBM, Microsoft, Mozilla, Nokia,
Opera, and hundreds of other vendors.
• HTML5 is still a work in progress. However, all major browsers support many of the new
HTML5 elements and APIs.
3
How Did HTML5 Get Started?
• HTML5 is a cooperation between the World Wide Web Consortium (W3C)
and the Web Hypertext Application Technology Working Group (WHATWG).
• 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.
Some rules for HTML5 were established:







New features should be based on HTML, CSS, DOM, and JavaScript
The need for external plugins (like Flash) needs to be reduced
Error handling should be easier than in previous versions
Scripting has to be replaced by more markup
HTML5 should be device-independent
The development process should be visible to the public
4
HTML5 is The New HTML Standard
• New Elements
• New Attributes
• Full CSS3 Support
• Video and Audio
• 2D/3D Graphics
• Local Storage
• Local SQL Database
• Web Applications
5
The HTML5 <!DOCTYPE>
In HTML5 there is only one <!doctype> declaration, and it is very
simple:
<!DOCTYPE html>

6
HTML5 - New Features
Some of the most interesting new features in HTML5:
 The <canvas> element for 2D drawing
 The <video> and <audio> elements for media playback
 Support for local storage
 New content-specific elements, like <article>, <footer>, <header>,
<nav>, <section>
 New form controls, like calendar, date, time, email, url, search

7
Browser Support for HTML5
 HTML5 is not yet an official standard, and no browsers have full
HTML5 support.
 But all major browsers (Safari, Chrome, Firefox, Opera, Internet
Explorer) continue to add new HTML5 features to their latest
versions.

8
HTML5 New Elements
• The internet, and the use of the internet, has changed a lot since
HTML 4.01 became a standard in 1999.
• Today, several elements in HTML 4.01 are obsolete, never used, or not
used the way they were intended. All those elements are removed or
re-written in HTML5.
• To better handle today's internet use, HTML5 also includes new
elements for drawing graphics, adding media content, better page
structure, better form handling, and several APIs to drag/drop
elements, find Geolocation, include web storage, application cache,
web workers, etc.
9
Removed Elements
The following HTML 4.01 elements are removed from HTML5:
• <applet>
• <big>
• <center>
• <font>
• <frame>
• <frameset>
• <noframes>
• <strike>
• <tt>
10
HTML5 New Elements
<canvas>

Used to draw graphics, on the fly, via scripting (usually JavaScript)

<audio>

Defines sound content

<video>

Defines a video or movie

<source>

Defines multiple media resources for <video> and <audio>

<embed>

Defines a container for an external application or interactive content (a plug-in)

<keygen>

Defines a key-pair generator field (for forms)

11
HTML5 Input Types

HTML5 has several new input types for forms. These new
features allow better input control and validation.














color
date
datetime
datetime-local
email
month
number
range
search
tel
time
url
week

<input type=“ typeOfControl” name=“anyName” >

12
Input Type: color
• The color type is used for input fields that should contain a color.
<!DOCTYPE html>
<html>
<body>
<form action="demo_form.php">
Select your favorite color: <input type="color"
name="favcolor"><br>
<input type="submit">
</form>
</body>
</html>
13
Input Type: date
• The date type allows the user to select a date.
<html>
<body>
<form action="demo_form.php">
Date: <input type="date" name="bday">
<input type="submit">
</form>
</body>
</html>
Pervious practice for mentioning date
14
Input Type: datetime
The datetime type allows the user to select a date and time (with time zone).
<html>
<body>
<form action="demo_form.php">
Date Time: <input type="datetime" name="bday">
<input type="submit">
</form>
</body>
</html>
15
Input Type: datetime-local
The datetime-local type allows the user to select a date and time (no
time zone).
<html>
<body>
<form action="demo_form.php">
Birthday: <input type="datetime-local" name="dateTime">
<input type="submit">
</form>

</body>
</html>
16
Input Type: email
• The email type is used for input fields that should contain an e-mail
address.
<html>
<body>
<form action="demo_form.php">
E-mail: <input type=“email" name=“email">
<input type="submit">
</form>

</body>
</html>
17
Input Type: month
• The month type allows the user to select a month and year.
<html>
<body>
<form action="demo_form.php">
Birthday: <input type=“month" name=“month">
<input type="submit">
</form>

</body>
</html>
18
Input Type: number
• The number type is used for input fields that should contain a
numeric value.
• You can also set restrictions on what numbers are accepted:
<form action="demo_form.php">
Quantity (between 1 and 5): <input type="number" name="quantity"
min="1" max="5">
<input type="submit">
</form>

19
Input Type: number Cont…
Use the following attributes to specify restrictions:
• max - specifies the maximum value allowed
• min - specifies the minimum value allowed
• step - specifies the legal number intervals
• value - Specifies the default value
<input type="number" name="quantity" min="0" max="10" step="2"
value="2">

20
Input Type: range
The range type is used for input fields that should contain a value from
a range of numbers.
• You can also set restrictions on what numbers are accepted.
<form action="demo_form.php">
Points: 0<input type="range" name="points" min="1" max="10">10
<input type="submit">
</form>

21
Input Type: time
• The time type allows the user to select a time.

<form action="demo_form.asp">
Select a time: <input type="time" name="usr_time">
<input type="submit">
</form>

22
Input Type: url
• The url type is used for input fields that should contain a URL address.
• The value of the url field is automatically validated when the form is
submitted.
<form action="demo_form.asp">
Add your homepage: <input type="url" name="homepage"><br>
<input type="submit">
</form>

23
Input Type: week
• The week type allows the user to select a week and year.
<form action="demo_form.asp">
Select a week: <input type="week" name="year_week">
<input type="submit">
</form>

24
HTML5 Video
Video on the Web
• Until now, there has not been a standard for showing a video/movie
on a web page.
• 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: the <video> element.

25
HTML5 Video
<video width="320" height="240" controls>
<source src="movie.mp4" >
Your browser does not support the video tag.
</video>

26
HTML5 Video

27
HTML5 Audio
• HTML5 provides a standard for playing audio files.
• Until now, there has not been a standard for playing audio files on a
web page.
• 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.

28
HTML5 Audio
• <audio controls>
<source src="horse.ogg" type="audio/ogg">
<source src="horse.mp3" type="audio/mpeg">
Your browser does not support the audio tag.
</audio>

29
HTML5 Audio

30
Assignment
1. What is W3C and WHATWG? What are their Job responsibilities ?
2. Create a Sing-up web page which consist following Fields
1.
2.
3.
4.
5.

User Name
ID
Password
Gender
Date of Birth

3. Create Sign in Web page.
4. Create a Web page which deals with video
5. Create a web page which deals with Audio
31
References
• http://www.w3schools.com/tags/ref_html_dtd.asp

32

Más contenido relacionado

La actualidad más candente

La actualidad más candente (14)

Html5
Html5Html5
Html5
 
Html 5
Html 5Html 5
Html 5
 
Html5 Basic Structure
Html5 Basic StructureHtml5 Basic Structure
Html5 Basic Structure
 
Html 5 New Features
Html 5 New FeaturesHtml 5 New Features
Html 5 New Features
 
HTML5 Tags and Elements Tutorial
HTML5 Tags and Elements TutorialHTML5 Tags and Elements Tutorial
HTML5 Tags and Elements Tutorial
 
Introduction to HTML5
Introduction to HTML5Introduction to HTML5
Introduction to HTML5
 
What the heck is HTML 5?
What the heck is HTML 5?What the heck is HTML 5?
What the heck is HTML 5?
 
Html5
Html5Html5
Html5
 
Basics of HTML5 for Phonegap
Basics of HTML5 for PhonegapBasics of HTML5 for Phonegap
Basics of HTML5 for Phonegap
 
Html5 and-css3-overview
Html5 and-css3-overviewHtml5 and-css3-overview
Html5 and-css3-overview
 
html5.ppt
html5.ppthtml5.ppt
html5.ppt
 
An Introduction to HTML5
An Introduction to HTML5An Introduction to HTML5
An Introduction to HTML5
 
Html5 Future of WEB
Html5 Future of WEBHtml5 Future of WEB
Html5 Future of WEB
 
HTML5 Introduction
HTML5 IntroductionHTML5 Introduction
HTML5 Introduction
 

Similar a Html5

HTML5-Tutorial-For-Beginn.6202488.pptx
HTML5-Tutorial-For-Beginn.6202488.pptxHTML5-Tutorial-For-Beginn.6202488.pptx
HTML5-Tutorial-For-Beginn.6202488.pptx
BCAGen
 
HTML5 Presentation
HTML5 PresentationHTML5 Presentation
HTML5 Presentation
vs4vijay
 
Introduction of html5
Introduction of html5Introduction of html5
Introduction of html5
kokila T
 

Similar a Html5 (20)

HTML 5
HTML 5HTML 5
HTML 5
 
HTML5_3.ppt
HTML5_3.pptHTML5_3.ppt
HTML5_3.ppt
 
HTML5-Tutorial-For-Beginn.6202488.pptx
HTML5-Tutorial-For-Beginn.6202488.pptxHTML5-Tutorial-For-Beginn.6202488.pptx
HTML5-Tutorial-For-Beginn.6202488.pptx
 
HTML5 Presentation
HTML5 PresentationHTML5 Presentation
HTML5 Presentation
 
Html 5 Features And Benefits
Html 5 Features And Benefits  Html 5 Features And Benefits
Html 5 Features And Benefits
 
Html5
Html5Html5
Html5
 
Html5
Html5Html5
Html5
 
Html5
Html5Html5
Html5
 
Html5
Html5Html5
Html5
 
Html5
Html5Html5
Html5
 
Html5
Html5Html5
Html5
 
HTML - 5 - Introduction
HTML - 5 - IntroductionHTML - 5 - Introduction
HTML - 5 - Introduction
 
Rohit&kunjan
Rohit&kunjanRohit&kunjan
Rohit&kunjan
 
Html5 n css3
Html5 n css3Html5 n css3
Html5 n css3
 
HTML5
HTML5HTML5
HTML5
 
Delhi student's day
Delhi student's dayDelhi student's day
Delhi student's day
 
Html 5
Html 5Html 5
Html 5
 
Introduction of html5
Introduction of html5Introduction of html5
Introduction of html5
 
Html5 tags
Html5 tagsHtml5 tags
Html5 tags
 
HTML5
HTML5 HTML5
HTML5
 

Más de Nisa Soomro (16)

PHP Cookies and Sessions
PHP Cookies and SessionsPHP Cookies and Sessions
PHP Cookies and Sessions
 
Form Handling using PHP
Form Handling using PHPForm Handling using PHP
Form Handling using PHP
 
Connecting to my sql using PHP
Connecting to my sql using PHPConnecting to my sql using PHP
Connecting to my sql using PHP
 
Basic of PHP
Basic of PHPBasic of PHP
Basic of PHP
 
PHP Filing
PHP Filing PHP Filing
PHP Filing
 
HTML Basic Tags
HTML Basic Tags HTML Basic Tags
HTML Basic Tags
 
HTML Forms
HTML FormsHTML Forms
HTML Forms
 
HTML Frameset & Inline Frame
HTML Frameset & Inline FrameHTML Frameset & Inline Frame
HTML Frameset & Inline Frame
 
HTML Images
HTML Images HTML Images
HTML Images
 
HTML Lists & Llinks
HTML Lists & LlinksHTML Lists & Llinks
HTML Lists & Llinks
 
HTML Tables
HTML TablesHTML Tables
HTML Tables
 
Html5 SVG
Html5 SVGHtml5 SVG
Html5 SVG
 
Html5 Canvas Detail
Html5 Canvas DetailHtml5 Canvas Detail
Html5 Canvas Detail
 
Html5 canvas
Html5 canvasHtml5 canvas
Html5 canvas
 
Html
HtmlHtml
Html
 
Web programming lec#3
Web programming lec#3Web programming lec#3
Web programming lec#3
 

Último

Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
kauryashika82
 
Seal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptxSeal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptx
negromaestrong
 
An Overview of Mutual Funds Bcom Project.pdf
An Overview of Mutual Funds Bcom Project.pdfAn Overview of Mutual Funds Bcom Project.pdf
An Overview of Mutual Funds Bcom Project.pdf
SanaAli374401
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
QucHHunhnh
 
Gardella_PRCampaignConclusion Pitch Letter
Gardella_PRCampaignConclusion Pitch LetterGardella_PRCampaignConclusion Pitch Letter
Gardella_PRCampaignConclusion Pitch Letter
MateoGardella
 

Último (20)

Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
 
Advance Mobile Application Development class 07
Advance Mobile Application Development class 07Advance Mobile Application Development class 07
Advance Mobile Application Development class 07
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
 
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
 
APM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAPM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across Sectors
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The Basics
 
Seal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptxSeal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptx
 
An Overview of Mutual Funds Bcom Project.pdf
An Overview of Mutual Funds Bcom Project.pdfAn Overview of Mutual Funds Bcom Project.pdf
An Overview of Mutual Funds Bcom Project.pdf
 
SECOND SEMESTER TOPIC COVERAGE SY 2023-2024 Trends, Networks, and Critical Th...
SECOND SEMESTER TOPIC COVERAGE SY 2023-2024 Trends, Networks, and Critical Th...SECOND SEMESTER TOPIC COVERAGE SY 2023-2024 Trends, Networks, and Critical Th...
SECOND SEMESTER TOPIC COVERAGE SY 2023-2024 Trends, Networks, and Critical Th...
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
 
Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdf
 
Measures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDMeasures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SD
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introduction
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impact
 
Gardella_PRCampaignConclusion Pitch Letter
Gardella_PRCampaignConclusion Pitch LetterGardella_PRCampaignConclusion Pitch Letter
Gardella_PRCampaignConclusion Pitch Letter
 
Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..
 

Html5

  • 2. HTML5  HTML5 Intro  HTML5 input type  HTML5 Video  HTML5 Audio 2
  • 3. What is HTML5? • HTML5 will be the new standard for HTML. • The previous version of HTML, HTML 4.01, came in 1999. The internet has changed significantly since then. • HTML5 is intended to subsume not only HTML 4, but also XHTML 1 and DOM Level 2 HTML. • HTML5 is designed to deliver almost everything you want to do online without requiring additional plugins. It does everything from animation to apps, music to movies, and can also be used to build complicated applications that run in your browser. • HTML5 is also cross-platform (it does not care whether you are using a tablet or a smartphone, a netbook, notebook or a Smart TV). • HTML5 can also be used to write web applications that still work when you are not online. • The HTML 5 working group includes AOL, Apple, Google, IBM, Microsoft, Mozilla, Nokia, Opera, and hundreds of other vendors. • HTML5 is still a work in progress. However, all major browsers support many of the new HTML5 elements and APIs. 3
  • 4. How Did HTML5 Get Started? • HTML5 is a cooperation between the World Wide Web Consortium (W3C) and the Web Hypertext Application Technology Working Group (WHATWG). • 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. Some rules for HTML5 were established:       New features should be based on HTML, CSS, DOM, and JavaScript The need for external plugins (like Flash) needs to be reduced Error handling should be easier than in previous versions Scripting has to be replaced by more markup HTML5 should be device-independent The development process should be visible to the public 4
  • 5. HTML5 is The New HTML Standard • New Elements • New Attributes • Full CSS3 Support • Video and Audio • 2D/3D Graphics • Local Storage • Local SQL Database • Web Applications 5
  • 6. The HTML5 <!DOCTYPE> In HTML5 there is only one <!doctype> declaration, and it is very simple: <!DOCTYPE html> 6
  • 7. HTML5 - New Features Some of the most interesting new features in HTML5:  The <canvas> element for 2D drawing  The <video> and <audio> elements for media playback  Support for local storage  New content-specific elements, like <article>, <footer>, <header>, <nav>, <section>  New form controls, like calendar, date, time, email, url, search 7
  • 8. Browser Support for HTML5  HTML5 is not yet an official standard, and no browsers have full HTML5 support.  But all major browsers (Safari, Chrome, Firefox, Opera, Internet Explorer) continue to add new HTML5 features to their latest versions. 8
  • 9. HTML5 New Elements • The internet, and the use of the internet, has changed a lot since HTML 4.01 became a standard in 1999. • Today, several elements in HTML 4.01 are obsolete, never used, or not used the way they were intended. All those elements are removed or re-written in HTML5. • To better handle today's internet use, HTML5 also includes new elements for drawing graphics, adding media content, better page structure, better form handling, and several APIs to drag/drop elements, find Geolocation, include web storage, application cache, web workers, etc. 9
  • 10. Removed Elements The following HTML 4.01 elements are removed from HTML5: • <applet> • <big> • <center> • <font> • <frame> • <frameset> • <noframes> • <strike> • <tt> 10
  • 11. HTML5 New Elements <canvas> Used to draw graphics, on the fly, via scripting (usually JavaScript) <audio> Defines sound content <video> Defines a video or movie <source> Defines multiple media resources for <video> and <audio> <embed> Defines a container for an external application or interactive content (a plug-in) <keygen> Defines a key-pair generator field (for forms) 11
  • 12. HTML5 Input Types HTML5 has several new input types for forms. These new features allow better input control and validation.              color date datetime datetime-local email month number range search tel time url week <input type=“ typeOfControl” name=“anyName” > 12
  • 13. Input Type: color • The color type is used for input fields that should contain a color. <!DOCTYPE html> <html> <body> <form action="demo_form.php"> Select your favorite color: <input type="color" name="favcolor"><br> <input type="submit"> </form> </body> </html> 13
  • 14. Input Type: date • The date type allows the user to select a date. <html> <body> <form action="demo_form.php"> Date: <input type="date" name="bday"> <input type="submit"> </form> </body> </html> Pervious practice for mentioning date 14
  • 15. Input Type: datetime The datetime type allows the user to select a date and time (with time zone). <html> <body> <form action="demo_form.php"> Date Time: <input type="datetime" name="bday"> <input type="submit"> </form> </body> </html> 15
  • 16. Input Type: datetime-local The datetime-local type allows the user to select a date and time (no time zone). <html> <body> <form action="demo_form.php"> Birthday: <input type="datetime-local" name="dateTime"> <input type="submit"> </form> </body> </html> 16
  • 17. Input Type: email • The email type is used for input fields that should contain an e-mail address. <html> <body> <form action="demo_form.php"> E-mail: <input type=“email" name=“email"> <input type="submit"> </form> </body> </html> 17
  • 18. Input Type: month • The month type allows the user to select a month and year. <html> <body> <form action="demo_form.php"> Birthday: <input type=“month" name=“month"> <input type="submit"> </form> </body> </html> 18
  • 19. Input Type: number • The number type is used for input fields that should contain a numeric value. • You can also set restrictions on what numbers are accepted: <form action="demo_form.php"> Quantity (between 1 and 5): <input type="number" name="quantity" min="1" max="5"> <input type="submit"> </form> 19
  • 20. Input Type: number Cont… Use the following attributes to specify restrictions: • max - specifies the maximum value allowed • min - specifies the minimum value allowed • step - specifies the legal number intervals • value - Specifies the default value <input type="number" name="quantity" min="0" max="10" step="2" value="2"> 20
  • 21. Input Type: range The range type is used for input fields that should contain a value from a range of numbers. • You can also set restrictions on what numbers are accepted. <form action="demo_form.php"> Points: 0<input type="range" name="points" min="1" max="10">10 <input type="submit"> </form> 21
  • 22. Input Type: time • The time type allows the user to select a time. <form action="demo_form.asp"> Select a time: <input type="time" name="usr_time"> <input type="submit"> </form> 22
  • 23. Input Type: url • The url type is used for input fields that should contain a URL address. • The value of the url field is automatically validated when the form is submitted. <form action="demo_form.asp"> Add your homepage: <input type="url" name="homepage"><br> <input type="submit"> </form> 23
  • 24. Input Type: week • The week type allows the user to select a week and year. <form action="demo_form.asp"> Select a week: <input type="week" name="year_week"> <input type="submit"> </form> 24
  • 25. HTML5 Video Video on the Web • Until now, there has not been a standard for showing a video/movie on a web page. • 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: the <video> element. 25
  • 26. HTML5 Video <video width="320" height="240" controls> <source src="movie.mp4" > Your browser does not support the video tag. </video> 26
  • 28. HTML5 Audio • HTML5 provides a standard for playing audio files. • Until now, there has not been a standard for playing audio files on a web page. • 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. 28
  • 29. HTML5 Audio • <audio controls> <source src="horse.ogg" type="audio/ogg"> <source src="horse.mp3" type="audio/mpeg"> Your browser does not support the audio tag. </audio> 29
  • 31. Assignment 1. What is W3C and WHATWG? What are their Job responsibilities ? 2. Create a Sing-up web page which consist following Fields 1. 2. 3. 4. 5. User Name ID Password Gender Date of Birth 3. Create Sign in Web page. 4. Create a Web page which deals with video 5. Create a web page which deals with Audio 31