The document is a comprehensive list of questions covering various aspects of HTML, including its elements, tags, and best practices. It also addresses new features introduced in HTML5, such as Web Storage and form validation. The questions aim to provide a foundational understanding of HTML and its application in web development.
The document is a comprehensive list of questions covering various aspects of HTML, including its elements, tags, and best practices. It also addresses new features introduced in HTML5, such as Web Storage and form validation. The questions aim to provide a foundational understanding of HTML and its application in web development.
3. What are HTML tags? 4. What is the purpose of the <!DOCTYPE> declaration in HTML? 5. Explain the difference between an ID and a class in HTML. 6. What is the purpose of the <head> tag? 7. What is the difference between <div> and <span> tags? 8. What is the <title> tag used for? 9. What is an anchor tag in HTML? 10. What is the difference between <ul> and <ol> tags? 11. What are semantic HTML elements? 12. What is the difference between block-level and inline elements? 13. How do you create a table in HTML? 14. What is the <form> tag used for? 15. What is the difference between GET and POST methods in HTML forms? 16. What is the <input> tag? 17. What is the purpose of the alt attribute in the <img> tag? 18. What are the common input types for the <input> element? 19. What is the difference between <b> and <strong> tags? 20. What is the <meta> tag? 21. What is the viewport meta tag and why is it important? 22. What is the difference between HTML5 and previous versions of HTML? 23. What are the new attributes in HTML5? 24. What is the <audio> tag in HTML5? 25. What is the <video> tag in HTML5? 26. What is the difference between <iframe> and <object> tags? 27. What are data attributes in HTML? 28. What is the <canvas> element in HTML5? 29. What are ARIA roles and how do they improve accessibility? 30. How does the <noscript> tag work?
HTML Best Practices:
31. Why is it important to use semantic HTML?
32. What is responsive design in HTML? 33. What is the significance of the charset attribute in HTML? 34. What are inline-block elements in CSS? 35. What is the difference between inline and block display styles? 36. What is a self-closing tag in HTML? 37. How do you create a hyperlink that opens in a new tab? 38. What is the use of the rel attribute in the <a> tag? 39. What is the formaction attribute in HTML? 40. What is a viewport?
HTML5 New Features and Advanced Concepts:
41. What is Web Storage in HTML5?
42. What is the difference between localStorage and sessionStorage? 43. How do you make an HTML5 form validation? 44. What is the placeholder attribute? 45. What are Web Workers in HTML5? 46. What is the <progress> element in HTML5? 47. What is the <output> element in HTML5? 48. What is the <details> and <summary> element in HTML5? 49. How do you add metadata to a webpage? 50. What are the limitations of using HTML alone for web development?