HTML5 Introduction
HTML5 is updated version of HTML. Most of the Tags and features are same which is available in Html, Here I will discuss only new added tags and features in Html5. In this tutorial I will discuss all things related to Html5.Html5 is finish and completed in October 2014. Html5 is the standard of the World Wide Web Consortium (W3C).
Why use Html5 ?
Html5 provides following features due to these lot of websites use Html5.
Html5 is more power full and easier than Html4. It allows to play audio and video on browser
Using Html5 you can draw shapes like circle, rectangle, triangle. Which is not possible in Html previous version. In Html5 direct you can use header and footer tag for define Header and footer section. Here <nav> tag are available for declare navigation. Html5 allow to run JavaScript code in background Using web workers. It provides local storage in place of cookies.
HTML5 Example:-
First of all add DOCTYPE declaration <!DOCTYPE html>. Character encoding declaration also very simple
<meta charset="UTF-8">
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Title Here</title>
</head>
<body>
Here you will write your page content.
</body>
</html>
New Element in HTML5
- New Semantic Element are:- <header>, <footer>, <article>, and <section>.
- New Attributes for Form Elements are:- number, date, time, calendar, and range.
- Also have Graphic Element:- <svg> and <canvas>
- HTML5 have new multimedia elements also:- <audio> and <video>
New HTML5 API's
- HTML5 have very intresting ApI`s also.
- HTML Geolocation
- HTML Drag and Drop
- HTML Local Storage
- HTML Application Cache
- HTML Web Workers
- HTML SSE
No comments:
Post a Comment