HTML Interview Questions CSS Interview Questions
1. What is HTML & What is hyperText 1. What is CSS & what is cascading
2. Role of DOCTYPE in html. 2. What is CSS Specificity
3. D/b tag and Element 3. What are Pseudo Selectors
4. What are HTML Attributes? 4. What are Pseudo Classes & Pseudo
5. Formatting tags in HTML Elements
6. D/b Inline elements and Block level 5. What is Box Model
Element 6. D/b padding & margin
7. Types of Inline Elements 7. What is flexbox in CSS
8. What are HTML Entities 8. D/b display flex and grid
9. D/b href and src 9. D/b display:none & visibility:hidden
10. How to insert Comment in html? 10. What is media query in css
11. Semantic HTML 11. Default value for position property
12. Canvas and SVG 12. D/b relative and absolute in position
13. How do you create nested web pages property
in HTML? 13. D/b fixed & sticky
14. D/b head, header & heading 14. What is z-index?
15. Role of meta tag 15. How can you centre an element
16. D/b html and html5 horizontally and vertically in CSS?
17. How to specify the link in HTML 16. How does the CSS float property
18. D/b <link> and <a> tag
work?
19. When to use <script> tag in head
17. What is the purpose of the CSS
and body?
‘box-sizing’ property?
18. D/b transition-duration &
animation-duration