Codings
Points
Your Coding Journey Starts Here
Quiz
Practice
Interview Q&A
HTML
CSS
Advance CSS
JavaScript
JSDOM
Advance JavaScript
React
Bootstrap
Tailwind
NodeJS
Express
PHP
C
C++
Java
Python
Django
JSP
Servlet
Spring
Hibernate
MongoDB
MySQL
PostgreSQL
Firebase
Back to Interview Hub
HTML Interview Questions and Answers
HTML Basics and Document Structure
44 questions
Section 1
1. What is HTML? What are the differences between HTML and HTML5? What are the advantages of HTML5?
2. What is the difference between HTML and XHTML?
3. What is the role of DOCTYPE in HTML?
4. What if you remove `<!DOCTYPE html>` from your HTML?
5. Difference between Head and Body in HTML. Where should a JavaScript link reference be placed?
6. What is Title Tag in HTML? What are the 4 advantages of Title tag?
7. What are Meta Tags? What are the 5 types of meta tags?
8. What are HTML elements? What is the difference between Element and Tag?
9. What are the roles and uses of the `<div>` element in HTML?
10. What is the difference between `<div>` and `<span>` element?
11. What is the role of `<p>`, `<a>`, `<br>`, `<hr>`, `<em>`, `<img>`, `<input>` & `<button>` elements?
12. What is the role of `header`, `main`, `section`, `footer` & `address` elements in HTML?
13. What is the difference between `<section>` & `<article>` elements?
14. What are Root, Parent, Child & Nested elements?
15. What are Empty Elements?
16. What are Semantic Elements in HTML? Is div a semantic element?
17. Can HTML tags be written in Uppercase?
18. What are the 3 differences between Block-Level and Inline Elements?
19. List all Block-Level & Inline elements in HTML.
20. What are HTML Attributes? What are the Types of HTML attributes?
21. What are the Id, Style & Class attributes of an element? When to use what?
22. What will happen if two elements have same ids?
23. How to specify Multiple Classes for single element? What is the style precedence?
24. What are Data Attributes in HTML?
25. What are the 5 Types of Links in HTML?
26. What is the difference between Absolute and Relative URLs?
27. What is the purpose of the `<nav>` element in HTML?
28. What is a Fragment Identifier in a URL?
29. What is the purpose of the `<base>` element in HTML?
30. How do you add an external stylesheet in your HTML?
31. How do you open a link in a new tab?
32. How do you create an Email Link?
33. What are the different Types of Lists in HTML?
34. What is a Nested List in HTML?
35. What are table, tr, th, td elements? What are table advantages & disadvantages?
36. What is the colspan attribute in HTML?
37. What is the best way to add a border to a table, column and cell?
38. What are the difference between JPEG and PNG image formats?
39. How to embed Video element in HTML? Why do we need multiple source elements?
40. How to embed Audio element in HTML?
41. What are the Autoplay & Loop attributes in multimedia elements?
42. What are HTML Forms and what are its advantages?
43. What are HTML Form Elements and their Main Attributes?
44. What is HTML5 Boilerplate code?
Prev
1
2
3
4
5
6
7
8
Next
CodingsPoints - Your Coding Point for HTML, CSS & JavaScript Tutorials