HTML 5
HTML 5
Contents
O What is HTML?
O What is HTML5?
O How did HTML5 get started?
O History of HTML5
O What’s new in HTML5?
O Advantages of HTML5
O Difference of HTML5 with HTML4
O Web sites that using HTML5
O Browser Support
O HTML5 Tags
O References
What is HTML?
O A Web Page is created using a
languag+e called, Hypertext
Markup Language, better known
as HTML Code.
<!doctype html>
<meta charset="UTF-8">
New Structure
In general, Web pages have navigation, body content, and sidebar
content plus headers, footers, and other features. The tags for this
are:-
O <section>
O <header>
O <footer>
O <nav>
O <article>
O <aside>
O <figure>
New Inline elements and Dynamic support
O Make up your own mind on this one. If you prefer a more structured
document, by all means, stick with the quotes.
Make your Content Editable
<!DOCTYPE html> <li> Gurpreet Kaur(155)
<html lang="en"> </li>
<li> Meeru Gupta
<head>
<li> Jyoti Batra </li>
<meta charset="utf-8">
<li> Jaskiran Kaur </li>
<title>untitled</title> </ul>
</head> </body>
</html>
<body>
<h2> To-Do List </h2>
<ul contenteditable="true">
Email Inputs
<!DOCTYPE html> <button type="submit"> Submit
<html lang="en"> Form </button> </form>
<body> </body>
<form action="" method="get"> </html>
<label
for="email">Email:</label>
<input id="email"
name="email" type="email" />
Video Format HTML tags input
<!DOCTYPE HTML>
<html>
<body>
<video src="movie.ogg"
width="320" height="240"
controls="controls">
Your browser does not support
the video tag.
</video> </body> </html>
Audio tag- input
<!DOCTYPE HTML>
<html>
<body>
</body>
</html>
New Tags in HTML5
Tag Description <keygen>New Defines a generated key in a form
<article>New Defines an article <mark>New Defines marked text
<aside>New Defines content aside from the page <meter>New Defines measurement within a predefined
content range
<audio>New Defines sound content <nav>New Defines navigation links
<canvas>New Defines graphics <output>New Defines some types of output
<command>New Defines command button
<progress>New Defines progress of a task of any kind
<datalist>New Defines a dropdown list
<rp>New Used in ruby annotations to define what to
<details>New Defines details of an element
show browsers that to not support the ruby
<dialog>New Defines a dialog (conversation) element.
<embed>New Defines external interactive content or <rt>New Defines explanation to ruby annotations.
plugin <ruby>New Defines ruby annotations.
<figure>New Defines a group of media content, and
<section>New Defines a section
their caption
<footer>New Defines a footer for a section or page <source>New Defines media resources
<header>New Defines a header for a section or page <time>New Defines a date/time
<hgroup>New Defines information about a section in a
<video>New Defines a video
document
O Mutuality
O Cleaner markup / Improved Code
O Improved Semantics
O Elegant forms
O Consistency
O Improved Accessibility
O Fulfill the need of Web application
O Offline Application cache
O Client-side database
O Geolocation support
Difference between HTML4 and HTML5
HTML4 HTML5
Elements like nav, header were It brought new element for web
not present. structure like nav, header etc
O But all major browsers (Safari, Chrome, Firefox, Opera, Internet Explorer)
continue to add new HTML5 features to their latest versions.
O Mozilla Firefox 3.5 “supports” the new coding but is not 100% compatible
References
O http://en.wikipedia.org/wiki/HTML
O http://www.w3.org
O http://www.whatwg.org
O http://www.w3schools.com