SlideShare a Scribd company logo
Introduction to HTML5
Toni Kolev
Junior QA
PREFACE
We’ve been using HTML 4.01 as main mark up language for the
past decades, althought HTML5 did not reach it’s final version
it’s starting to take over the world. HTML is expected to reach
it’s final version by 2020.
Why HTML5?
• HTML 4.01 is 13 years old
• Not using third-party plugins and API’s to play
video and music – affects performance and
speed
• Limiting the web pages to static images and text
is something of the past
• HTML5 provides more power to the developers
for creation and optimisation
• Better UI experience with CSS3
Why HTML5 is taking over the world?
HTML5 today?
• Not all features are supported by major
browsers
• HTML5 hasn’t changed much since 2009
• Latest versions of browsers support mosf of
HTML5 tags
• Find out how your browser handles HTML5 by
visiting html5test.com
Can I use HTML5 today?
HTML5 today?
• Hardware acceleration – playing audi/video files
does not depend on software
• End of third-party plugins
• Cleaner code
• Widely accepted – across devices, operating
systems, browsers
Can I use HTML5 today?
Semantic differences
DOCTYPE:
HTML 4.01 <!DOCTYPE HTML PUBLIC”-//W3C//DTD HTML 4.01..EN” “http://www.w3.org/TR/html4/strict.dtd”>
HTML5 <!DOCTYPE html>
CHARSET
HTML 4.01 <meta http-equiv=“content-type” content=“text/html”; charset=UTF-8”>
HTML5 <meta charset=“UTF-8”>
SCRIPTS & LINKS
HTML 4.01 <script type=“text/Javascript” src=“js/plugins.js”></script>
HTML5 <script src=“js/plugin.js></script>
Main semantic differences from 4.01
Removed Elements
• acronym
• applet
• basefont
• big
• center
• dir
• font
• frame
• frameset
• noframes
• strike
• tt
• u
Removed elements from 4.01
New elements
The new semantic elements are among the most welcome additions.
New elements
New elements
Following the common sense of millions of developers, the header tag is an
obvious addition that is now part of HTML5.
Instead of defining an header in the old fashion way where we need to write
<div id=“header”></div> now we can simply write <header></header>.
It’s important to note that a header does not need to be limited to the main
section. You can have several headers within your web page structure and
keep styling them with ids or classes. For example you can have 2 different
headers and you want to apply them different styles, you could simply add an
id like this <header id=“secondary”></header>.
<header>
New elements
The nav tag is used to represent navigation of a web page. In terms of
accessibility now the ul is inserted in a nav tags to help screen readers
understand where the navigation is.
<nav>
New elements
Some people get confused with the section and article tags. The
section tag means precisely that, a section. Every web page we create
is divided into sections, those sections can be semantically separated
by the section tag. It can serve the same purpose as the article tag but
is more generic.
Example:
<section>
<h1>This is a section></h1>
<p>Some text describing somethinb about somebody that some
times happens something and then someone will somehow do something
etc.</p>
<section>
<section>
New elements
The article tag can be one of the most confusing tags simply because
at first you cank think “hey, I don’t have any articles on my page!”.
There is a secret about the tag, the tag is not menat for articles, it’s
meant for anything that, in a structural point of view, can be similar to
an article. Theoretically, you should use it when there’s a title followed
by its content.
<article>
New elements
Initially, this tag was meant to represent area of the page related to the
content surrounding it. Now the aside tag can be also used for
secondary content. There is one simple rule about it, if we have an
aside tag inside an article tag, the content inside the aside tag will be
directly related to everything else inside the same article tag, however,
if the aside tag is outside the article tag, it will be used as a type of
sidebar with secondary content purpose.
<aside>
New elements
Brand new tag. The role of the tag is to view/hide content by interacting
with the user, similar to .SlideUp() / .SlideDown() jQuery methods.
Example:
<details>
<summary>Clicking here will collapse or expand the content
below</summary>
<p>Content</p>
</details>
<details>
Web forms
• No need of JS to put text inside an input field
• HTML5 uses placeholder to put text inside an input field
• No need of extra help for validation on the client side
• HTML5 brings browser-based validation
• Don’t count only on browser-based validation, keep using validation
in the server side.
Webforms – what’s new?
Web forms
• datalist
• output
• keygen
Webforms – new elements
Web forms
• autocomplete
• autoform
• form
• formaction
• formenctype
• novalidate
• pattern
• placeholder
• required
Webforms – new atributes
Web forms
• color
• date
• datetime
• email
• month
• number
• range
• search
• tel
• time
• url
• week
Webforms – new input types
Main Additions
A place holder is just a text inside an input field, in most cases it replaces the
label purpose. When the user focuses on a field with a placeholder, by clicking
inside it, text is removed.
Example:
<form>
<input name=“name” placeholder=“Your name, please.”>
</form>
Placeholder
Main Additions
Something that could only be achieved trough the use of self-made
validation scripts, can now be easily done with HTML5.
Example:
<form>
<input type=“email>
<input type=“submit” value=“Submit”>
</form>
Email input type
Main Additions
There are many widgets out there to help you achieve what HTML 4.01 just
can’t. Javascript has been our friend on this for a long time, however, we
simply don’t need it anymore. The ragen type attribute is a slider that
represents numeric input.
Example:
<input type=“range” name=”Player rating” min=“1” max=“20”>
Range input type
Main Additions
Date and time pickers are now part of HTML5. Finally, we have a way to
include a calendar with date and time picker without the need of using
Javascript.
Example:
<input type=“date” name=”pick” id=“dataselection”>
Data pickers
Main Additions
We are deleting unnecessary validation classes and script files. Similar to
email built-in validation, you can now tell the browser to check if there’s
any mandatory fields left in blank. All you need to do is to add the require
attribute on the desired field.
Example:
<form>
<input id=“name” required>
<input type=“submit” value=“Submit>
</form>
Required attribute
Main Additions
Main Additions DEMO
VIDEO & AUDIO
VIDEO AND AUDIO
Native Video and Audio incorporation are the most anticipated
features of HTML5. No need of Flash or QuickTime anymore.
The video tag has one major problem and it is that it does not support
DRM.
Example:
<video src=“myvideo.mp4” poster=“cover.jpg” controls>
This is fallback content to display if the browser does not support the
video element.</video>
Q&A
Questions ?
That’s all folks!

More Related Content

PPTX
Html5 Basic Structure
PDF
Lotusphere 2012 Speedgeeking - jQuery & Domino, a RAD Combination
PDF
HTML Tutorial
PPTX
Introduction to html 5
PPT
Html 5 introduction
PPTX
HTML/HTML5
PPTX
HTML - 5 - Introduction
PPTX
Html 5 Features And Benefits
Html5 Basic Structure
Lotusphere 2012 Speedgeeking - jQuery & Domino, a RAD Combination
HTML Tutorial
Introduction to html 5
Html 5 introduction
HTML/HTML5
HTML - 5 - Introduction
Html 5 Features And Benefits

What's hot (20)

PPTX
Html5 and-css3-overview
KEY
An Introduction to HTML5
PPTX
PPTX
Html5 Basics
PDF
HTML5 - Introduction
PDF
Html 5 New Features
PPTX
HTML5 Tags and Elements Tutorial
PPTX
Basic Html for beginners.
PPTX
HTML Basic, CSS Basic, JavaScript basic.
PDF
An Introduction To HTML5
PPT
Windows Vista
PDF
PPTX
Angular Js Advantages - Complete Reference
PPTX
HTML5 & CSS3
PPT
Creating Content With Shortcodes
PDF
Let me design
PDF
Webcomponents TLV October 2014
PDF
HTML5: features with examples
PPTX
Html 5 tutorial - By Bally Chohan
PPT
Introduction to HTML5
Html5 and-css3-overview
An Introduction to HTML5
Html5 Basics
HTML5 - Introduction
Html 5 New Features
HTML5 Tags and Elements Tutorial
Basic Html for beginners.
HTML Basic, CSS Basic, JavaScript basic.
An Introduction To HTML5
Windows Vista
Angular Js Advantages - Complete Reference
HTML5 & CSS3
Creating Content With Shortcodes
Let me design
Webcomponents TLV October 2014
HTML5: features with examples
Html 5 tutorial - By Bally Chohan
Introduction to HTML5
Ad

Viewers also liked (9)

PPT
More Valuable Than Sheep Or Coins
PPTX
Sistemas Operativos, INTEL, WINDOWS Y ADME
PPT
Whales[1]11
PPTX
Diapositivos perifericos
PDF
Continuing professional development_presentation_ppt_(dpt_30_2012)
PPT
Uniforme
PPT
Animal Alphabet
PPT
Welcomeback2school
More Valuable Than Sheep Or Coins
Sistemas Operativos, INTEL, WINDOWS Y ADME
Whales[1]11
Diapositivos perifericos
Continuing professional development_presentation_ppt_(dpt_30_2012)
Uniforme
Animal Alphabet
Welcomeback2school
Ad

Similar to Introduction to html5 (20)

PPTX
Html 5
PPT
Getting started with html5
PPT
HTML 5 Complete Reference
PPTX
Introduction to HTML.pptx
PPTX
Web Development Course - HTML5 & CSS3 by RSOLUTIONS
PDF
Html5 tutorial
PDF
Html5 tutorial
PDF
Html5 tutorial
PDF
Html5 tutorial
PDF
Html5 tutorial
PPTX
Grade 10 COMPUTER
PPTX
Html5
PPTX
Html5
PDF
Wa html5-pdf
PDF
Wa html5-pdf
DOCX
ARTICULOENINGLES
PPTX
Chapter 2 introduction to html5
PDF
Html5 - Tutorial
PDF
Html5 tutorial
PDF
WEB PROGRAMMING bharathiar university bca unitII
Html 5
Getting started with html5
HTML 5 Complete Reference
Introduction to HTML.pptx
Web Development Course - HTML5 & CSS3 by RSOLUTIONS
Html5 tutorial
Html5 tutorial
Html5 tutorial
Html5 tutorial
Html5 tutorial
Grade 10 COMPUTER
Html5
Html5
Wa html5-pdf
Wa html5-pdf
ARTICULOENINGLES
Chapter 2 introduction to html5
Html5 - Tutorial
Html5 tutorial
WEB PROGRAMMING bharathiar university bca unitII

Recently uploaded (20)

DOCX
Unit-3 cyber security network security of internet system
PPTX
presentation_pfe-universite-molay-seltan.pptx
PPTX
CHE NAA, , b,mn,mblblblbljb jb jlb ,j , ,C PPT.pptx
PPTX
innovation process that make everything different.pptx
PDF
Decoding a Decade: 10 Years of Applied CTI Discipline
PPTX
international classification of diseases ICD-10 review PPT.pptx
PDF
Paper PDF World Game (s) Great Redesign.pdf
PPTX
QR Codes Qr codecodecodecodecocodedecodecode
PDF
Vigrab.top – Online Tool for Downloading and Converting Social Media Videos a...
PDF
Tenda Login Guide: Access Your Router in 5 Easy Steps
PPTX
Introuction about ICD -10 and ICD-11 PPT.pptx
PDF
APNIC Update, presented at PHNOG 2025 by Shane Hermoso
PPTX
Job_Card_System_Styled_lorem_ipsum_.pptx
PPTX
PptxGenJS_Demo_Chart_20250317130215833.pptx
PPTX
artificial intelligence overview of it and more
PPTX
Digital Literacy And Online Safety on internet
PPTX
Introuction about WHO-FIC in ICD-10.pptx
PDF
Best Practices for Testing and Debugging Shopify Third-Party API Integrations...
PDF
Slides PDF The World Game (s) Eco Economic Epochs.pdf
PDF
WebRTC in SignalWire - troubleshooting media negotiation
Unit-3 cyber security network security of internet system
presentation_pfe-universite-molay-seltan.pptx
CHE NAA, , b,mn,mblblblbljb jb jlb ,j , ,C PPT.pptx
innovation process that make everything different.pptx
Decoding a Decade: 10 Years of Applied CTI Discipline
international classification of diseases ICD-10 review PPT.pptx
Paper PDF World Game (s) Great Redesign.pdf
QR Codes Qr codecodecodecodecocodedecodecode
Vigrab.top – Online Tool for Downloading and Converting Social Media Videos a...
Tenda Login Guide: Access Your Router in 5 Easy Steps
Introuction about ICD -10 and ICD-11 PPT.pptx
APNIC Update, presented at PHNOG 2025 by Shane Hermoso
Job_Card_System_Styled_lorem_ipsum_.pptx
PptxGenJS_Demo_Chart_20250317130215833.pptx
artificial intelligence overview of it and more
Digital Literacy And Online Safety on internet
Introuction about WHO-FIC in ICD-10.pptx
Best Practices for Testing and Debugging Shopify Third-Party API Integrations...
Slides PDF The World Game (s) Eco Economic Epochs.pdf
WebRTC in SignalWire - troubleshooting media negotiation

Introduction to html5

  • 1. Introduction to HTML5 Toni Kolev Junior QA
  • 2. PREFACE We’ve been using HTML 4.01 as main mark up language for the past decades, althought HTML5 did not reach it’s final version it’s starting to take over the world. HTML is expected to reach it’s final version by 2020.
  • 3. Why HTML5? • HTML 4.01 is 13 years old • Not using third-party plugins and API’s to play video and music – affects performance and speed • Limiting the web pages to static images and text is something of the past • HTML5 provides more power to the developers for creation and optimisation • Better UI experience with CSS3 Why HTML5 is taking over the world?
  • 4. HTML5 today? • Not all features are supported by major browsers • HTML5 hasn’t changed much since 2009 • Latest versions of browsers support mosf of HTML5 tags • Find out how your browser handles HTML5 by visiting html5test.com Can I use HTML5 today?
  • 5. HTML5 today? • Hardware acceleration – playing audi/video files does not depend on software • End of third-party plugins • Cleaner code • Widely accepted – across devices, operating systems, browsers Can I use HTML5 today?
  • 6. Semantic differences DOCTYPE: HTML 4.01 <!DOCTYPE HTML PUBLIC”-//W3C//DTD HTML 4.01..EN” “http://www.w3.org/TR/html4/strict.dtd”> HTML5 <!DOCTYPE html> CHARSET HTML 4.01 <meta http-equiv=“content-type” content=“text/html”; charset=UTF-8”> HTML5 <meta charset=“UTF-8”> SCRIPTS & LINKS HTML 4.01 <script type=“text/Javascript” src=“js/plugins.js”></script> HTML5 <script src=“js/plugin.js></script> Main semantic differences from 4.01
  • 7. Removed Elements • acronym • applet • basefont • big • center • dir • font • frame • frameset • noframes • strike • tt • u Removed elements from 4.01
  • 8. New elements The new semantic elements are among the most welcome additions. New elements
  • 9. New elements Following the common sense of millions of developers, the header tag is an obvious addition that is now part of HTML5. Instead of defining an header in the old fashion way where we need to write <div id=“header”></div> now we can simply write <header></header>. It’s important to note that a header does not need to be limited to the main section. You can have several headers within your web page structure and keep styling them with ids or classes. For example you can have 2 different headers and you want to apply them different styles, you could simply add an id like this <header id=“secondary”></header>. <header>
  • 10. New elements The nav tag is used to represent navigation of a web page. In terms of accessibility now the ul is inserted in a nav tags to help screen readers understand where the navigation is. <nav>
  • 11. New elements Some people get confused with the section and article tags. The section tag means precisely that, a section. Every web page we create is divided into sections, those sections can be semantically separated by the section tag. It can serve the same purpose as the article tag but is more generic. Example: <section> <h1>This is a section></h1> <p>Some text describing somethinb about somebody that some times happens something and then someone will somehow do something etc.</p> <section> <section>
  • 12. New elements The article tag can be one of the most confusing tags simply because at first you cank think “hey, I don’t have any articles on my page!”. There is a secret about the tag, the tag is not menat for articles, it’s meant for anything that, in a structural point of view, can be similar to an article. Theoretically, you should use it when there’s a title followed by its content. <article>
  • 13. New elements Initially, this tag was meant to represent area of the page related to the content surrounding it. Now the aside tag can be also used for secondary content. There is one simple rule about it, if we have an aside tag inside an article tag, the content inside the aside tag will be directly related to everything else inside the same article tag, however, if the aside tag is outside the article tag, it will be used as a type of sidebar with secondary content purpose. <aside>
  • 14. New elements Brand new tag. The role of the tag is to view/hide content by interacting with the user, similar to .SlideUp() / .SlideDown() jQuery methods. Example: <details> <summary>Clicking here will collapse or expand the content below</summary> <p>Content</p> </details> <details>
  • 15. Web forms • No need of JS to put text inside an input field • HTML5 uses placeholder to put text inside an input field • No need of extra help for validation on the client side • HTML5 brings browser-based validation • Don’t count only on browser-based validation, keep using validation in the server side. Webforms – what’s new?
  • 16. Web forms • datalist • output • keygen Webforms – new elements
  • 17. Web forms • autocomplete • autoform • form • formaction • formenctype • novalidate • pattern • placeholder • required Webforms – new atributes
  • 18. Web forms • color • date • datetime • email • month • number • range • search • tel • time • url • week Webforms – new input types
  • 19. Main Additions A place holder is just a text inside an input field, in most cases it replaces the label purpose. When the user focuses on a field with a placeholder, by clicking inside it, text is removed. Example: <form> <input name=“name” placeholder=“Your name, please.”> </form> Placeholder
  • 20. Main Additions Something that could only be achieved trough the use of self-made validation scripts, can now be easily done with HTML5. Example: <form> <input type=“email> <input type=“submit” value=“Submit”> </form> Email input type
  • 21. Main Additions There are many widgets out there to help you achieve what HTML 4.01 just can’t. Javascript has been our friend on this for a long time, however, we simply don’t need it anymore. The ragen type attribute is a slider that represents numeric input. Example: <input type=“range” name=”Player rating” min=“1” max=“20”> Range input type
  • 22. Main Additions Date and time pickers are now part of HTML5. Finally, we have a way to include a calendar with date and time picker without the need of using Javascript. Example: <input type=“date” name=”pick” id=“dataselection”> Data pickers
  • 23. Main Additions We are deleting unnecessary validation classes and script files. Similar to email built-in validation, you can now tell the browser to check if there’s any mandatory fields left in blank. All you need to do is to add the require attribute on the desired field. Example: <form> <input id=“name” required> <input type=“submit” value=“Submit> </form> Required attribute
  • 25. VIDEO & AUDIO VIDEO AND AUDIO Native Video and Audio incorporation are the most anticipated features of HTML5. No need of Flash or QuickTime anymore. The video tag has one major problem and it is that it does not support DRM. Example: <video src=“myvideo.mp4” poster=“cover.jpg” controls> This is fallback content to display if the browser does not support the video element.</video>