Showing posts with label HTML4 vs HTML5. Show all posts
Showing posts with label HTML4 vs HTML5. Show all posts

Wednesday, 4 June 2014

Difference Between HTML 4 and HTML 5



Parameter
HTML 4.01
HTML 5.0
Doctype Declaration
Three Types of <!DOCTYPE> declarations are used in HTML 4.01 and that are:
i) HTML 4.01 Strict
ii) HTML 4.01 Transitional
iii) HTML 4.01 Frameset
There is Only one type of <!DOCTYPE> declaration in HTML 5 and that is <!DOCTYPE html>only.
Plugin Requirement
External Plugins are required to play audio and video files on HTML 4.01.
HTML 5 does not require any external plugin to play audio and video files.
Attributes
Accept, Accept-charset, Action, Enctype, Method, Name, Target.
Accept-charset, Action, Enctype, Method, Name, Target, Autocomplete, Novalidate.
Input Types
Button, Checkbox, File, Hidden, Image, Password, Radio, Reset, Submit, Text.
Button, Checkbox, File, Hidden, Image, Password, Radio, Reset, Submit, Text, Color, Date, Datetime, Datetime-local, email, Month, Number, Range, Search, Tel, Time, Url, Week
Automatic Validation
Not Supported in HTML 4.01 and is achieved by other Scripting Languages.
Automatic Filed Validation is Supported in HTML 5.0