ADVANCED HTML NOTES
1. Semantic HTML
Semantic tags improve SEO and readability.
<header>, <nav>, <section>, <article>, <footer>
2. Forms (Advanced)
Input types: text, email, password, date, file
Attributes: required, placeholder, pattern
3. HTML5 APIs
Geolocation API, Drag & Drop API, Web Storage (localStorage, sessionStorage)
4. Audio & Video
<audio controls>, <video controls>
Attributes: autoplay, loop, muted
5. Canvas
<canvas> used for graphics with JavaScript
6. SVG
Scalable Vector Graphics for shapes and icons
7. Meta Tags
SEO tags: description, keywords, viewport
8. Iframe
<iframe src='url'> to embed other pages
9. Accessibility (a11y)
Use alt, label, aria-* attributes
10. Responsive Design Basics
Viewport meta tag and flexible layout
11. Data Attributes
Custom attributes: data-*
12. Best Practices
Clean code, proper indentation, semantic usage
13. Interview Questions
Difference between div & span, semantic vs non-semantic, localStorage vs sessionStorage
Conclusion
Advanced HTML helps build modern, SEO-friendly websites.