In HTML 5 we write only !DOCTYPE html but in HTML 4 we have to write little lengthy code in the doctype like given below.
!DOCTYPE HTML PUBLIC “-//W3C//DTD HTML 4.01//EN” “http://www.w3.org/TR/html4/strict.dtd”
HTML 5 has new tags like canvas, audio, video, these tags are not available in HTML 4.
Multimedia is supported in HTML 5 but in HTML 4 we use flash player for multi-media feature.
HTML 4 was less mobile-friendly. but HTML 5 language is more mobile-friendly.
Semantic tags were not present in HTML 4 but New tags are available in HTML 5 like nav, header, footer, article, aside, section etc.
In HTML 4 div tag is used for separating two parts. but in HTML 5 div tag is not mandatory.
Deprecated Tags
The following tags are not available in HTML5 anymore and their function is better handled by CSS −
center, big, u, font, frame, acronym, applet, basefont, dir, frameset, isindex, noframes, s, strike, tt
This is frontend developer interview question. In HTML Tutorials in Hindi series we will cover all the important interview questions.
HTML Tutorials in Hindi Playlist:-
• What is difference between HTML 4 & HTML 5...
JavaScript Tutorials in Hindi Playlist:-
• How to add value in array specific positio...
#htmltutorial
#htmltutorialinhindi
#interviewquestions
#html
#html5
#html4&html5
#tutorialinhindi
~-~~-~~~-~~-~
Please watch: "#1 Complete Responsive Website using REACT JS & Bootstrap with Source Code 2024 🔥🔥"
• #1 Complete Responsive Website using REACT...
~-~~-~~~-~~-~