You are on page 1of 3

Features Html Html5

definition A hypertext markup language (HTML) is the HTML5 is a new version of HTML
primary language for developing web pages. with new functionalities with
markup language with Internet
technologies.

Multimedia Language in HTML does not have support for HTML5 supports both video and
support video and audio. audio.

Storage The HTML browser uses cache memory as HTML5 has the storage options
temporary storage. like:application cache, SQL
database, and web storage.

Browser HTML is compatible with almost all browsers In HTML5, we have many new tags,
compatibility because it has been present for a long time, and elements, and some tags that have
the browser made modifications to support all been removed/modified, so only
the features. some browsers are fully
compatible with HTML5.

Graphics In HTML, vector graphics are possible with tools In HTML5, vector graphics are
support LikeSilver light, Adobe Flash, VML, etc. supported by default.

Threading In HTML, the browser interface and JavaScript The HTML5 has the JavaScript Web
running in the same thread. Worker API, which allows the
browser interface to run in
multiple threads.

Storage Uses cookies to store data. Uses local storage instead of


cookies

Vector and Vector graphics are possible with the help of Vector graphics is an integral part
Graphics technologies like VML, Silverlight, Flash,etc. of HTML5, SVG and canvas.

Shapes It is not possible to create shapes like circles, We can draw shapes like circles,
rectangles, triangles. rectangles, triangles.

Doc type Doctype declaration in html is too long The DOCTYPE declaration in html5
<! DOCTYPE HTML PUBLIC "- // W3C // DTD is very simple "<! DOCTYPE html>
HTML 4.01 // EN"
"http://www.w3.org/TR/html4/strict.dtd">

Character Character encoding in HTML is too long. Character encoding declaration is


Encoding <! DOCTYPE HTML PUBLIC "- // W3C // DTD simple <meta charset = "UTF-8">
HTML 4.0 Transitional // EN">

Multimedia Audio and video are not the part of HTML4. Audio and video are essential parts
support of HTML5,like: <Audio>,
<Video>.

Vector In HTML4, vector graphics are possible with the Vector graphics are an integral
Graphics help of techniques like VML, Silver light and part of HTML5, SVG, and canvas.
Flash.

Html5 uses cookies. It supplies local storage in place of


cookies.

Shapes It is not possible to draw shapes like circles, Using html5, you can draw shapes
rectangles, triangles. like circles, rectangles, triangles.

Browser Works with all older browsers A new browser supports this.
Support
Attribute Options Function

Specifies a keyboard shortcut to access an


accesskey User Defined
element.

align right, left, center Horizontally aligns tags

background URL Places an background image behind an element

numeric, Places a background color behind an element


bgcolor hexidecimal, RGB
values

Classifies an element for use with Cascading


class User Defined
Style Sheets.

contenteditabl Specifies if the user can edit the element's


true, false
e content or not.

contextmenu Menu id Specifies the context menu for an element.

Custom attributes. Authors of a HTML document


data-XXXX User Defined can define their own attributes. Must start with
"data-".

Specifies whether or not a user is allowed to drag


draggable true,false, auto
an element.

Specifies the height of tables, images, or table


height Numeric Value
cells.

Specifies whether element should be visible or


hidden hidden
not.

Names an element for use with Cascading Style


id User Defined
Sheets.

item List of elements Used to group elements.

itemprop List of items Used to group items.

Specifies if the element must have it's spelling or


spellcheck true, false
grammar checked.

style CSS Style sheet Specifies an inline style for an element.

subject User define id Specifies the element's corresponding item.

tabindex Tab number Specifies the tab order of an element.

title User Defined "Pop-up" title for your elements.


valign top, middle, bottom Vertically aligns tags within an HTML element.

Specifies the width of tables, images, or table


width Numeric Value
cells.

You might also like