Interview Question

What is the difference between HTML and HTML5?

HTML5 is modern HTML with better structure, media, and forms.

💡 Concept ✅ Quick Revision 🌐 HTML

Answer

HTML is the general markup language, while HTML5 is its modern generation. • HTML5 added semantic tags such as `<article>` and `<nav>`. • It supports audio, video, canvas, and newer form inputs. • It uses the simple `<!DOCTYPE html>` declaration.

💡 Simple Example

<input type="date"><video controls></video>

⚡ Quick Revision

HTML5 is modern HTML with better structure, media, and forms.