HTML5 Introduction

in #html56 years ago

images (8).jpeg
source

What is New in HTML5?

The DOCTYPE declaration for HTML5 is very simple:

The character encoding (charset) declaration is also very simple:

meta charset="UTF-8"

HTML5 Example:

html head meta charset="UTF-8" title Title of the document

body
Content of the document......

The default character encoding in HTML5 is UTF-8.

New HTML5 API's (Application Programming Interfaces)

The most interesting new API's in HTML5 are:

HTML GeolocationHTML Drag and DropHTML Local StorageHTML Application CacheHTML Web WorkersHTML SSE

Tip: HTML Local storage is a powerful replacement for cookies.
New HTML5 Elements

The most interesting new HTML5 elements are:

New semantic elements like header, footer, article, and section.

New attributes of form elements like number, date, time, calendar, and range.

New graphic elements: svg and canvas.

New multimedia elements: audio and video.

Removed Elements in HTML5

The following HTML4 elements have been removed in HTML5:

Sort:  

This post has received a 3.13 % upvote from @drotto thanks to: @rabiul21.