Top 51 HTML Interview Questions

Q1. What is HTML


Q2. Please explain how to indicate the character set being used by a document in HTML


Q3. Are the HTML tags and elements the same thing?


Q4. What are Tags?


Q5. What is the key difference between HTML Elements and Tags?


Q6. What are void elements in HTML?


Q7. Do all HTML tags have an end tag?


Q8. If you want to display some HTML data in a table in tabular format, which HTML tags will you use?


Q9. What is the advantage of collapsing white space?


Q10. What is formatting in HTML?


Q11. What are HTML Entities?


Q12. What is the ‘class’ attribute in HTML?


Q13. How many types of heading does an HTML contain?


Q14. What are Attributes in HTML?


Q15. What is the difference between the ‘id’ attribute and the ‘class’ attribute of HTML elements?


Q16. Define multipart form data?


Q17. How to create a hyperlink in HTML?


Q18. Describe HTML layout structure?


Q19. How to optimize website assets loading?


Q20. What are Lists in HTML?


Q21. What is the difference between <strong>, <b> tags and <em>, <i> tags?


Q22. What are Forms in HTML?


Q23. Can we display a web page inside a web page or Is nesting of webpages possible?


Q24. What is an image map?


Q25. How can we use comments in HTML?


Q26. How to insert a copyright symbol on a browser page?


Q27. How is Cell Padding different from Cell Spacing?


Q28. Does a hyperlink only apply to text?


Q29. What is HTML5?


Q30. What is Semantic HTML?


Q31. How can we club two or more rows or columns into a single row or column in an HTML table?


Q32. What is the difference between “display: none” and “visibility: hidden”?


Q33. What is a ‘Marquee’ Tag in HTML?


Q34. What is a style sheet?


Q35. What is the purpose of using alternative texts in images?


Q36. What is the use of an iframe tag?


Q37. Can you create a multi-colored text on a web page?


Q38. How to make a picture of a background image of a web page?


Q39. In how many ways can we specify the CSS styles for the HTML element?


Q40. What is the use of a span tag?


Q41. How many tags can be used to separate a section of texts?


Q42. How do you send an email when clicked?


Q43. How to include javascript code in HTML?


Q44. Difference between link tag <link> and anchor tag <a>?


Q45. What are empty elements?


Q46. What are the limits of the text field size?


Q47. How can we include audio or video in a webpage?


Q48. What is the difference between <figure> tag and <img> tag?


Q49. How to specify the metadata in HTML5?


Q50. What is the difference between <meter> tag and <progress> tag?


Q51. What is button tag?