HTML Interview Questions
  1. What is semantic HTML?
  2. How to create a nested webpage in HTML?
  3. Why is a URL encoded in HTML?
  4. What is SVG?
  5. What is the difference between progress and meter tag?
  6. Do all character entities display properly on all systems?
  7. What is the advantage of collapsing white space?
  8. How do you create links to sections within the same page?
  9. What is the use of alternative text in image mapping?
  10. If the user’s operating system does not support the needed character, how can the symbol be represented?
  11. Why are there both numerical and named character entity values?
  12. What if there is no text between the tags or if a text was omitted by mistake? Will it affect the display of the HTML file?
  13. What are the limits of the text field size?
  14. How are active links different from normal links?
  15. What happens if you open the external CSS file in a browser?
  16. Do you know which are two semantic tags are included in HTML5 version?
  17. What is the Application Cache in HTML5 and why it is used?
  18. What are the tags used to separate a section of texts?
  19. What is the difference between DIV and SPAN in HTML?
  20. Is there any way to keep list elements straight in an HTML file?
  21. Explain The Key Differences Between LocalStorage And SessionStorage Objects.
  22. What is the relationship between the border and rule attributes?
  23. What is difference between HTML and XHTML?
  24. What would happen if the HTML Document does not contain <!DOCTYPE>?
  25. What are some of the key new features in HTML5?
  26. What are “web workers”?
  27. What is the Geolocation API in HTML5?
  28. What’s one main result if you do not specify a doctype in an HTML page?
  29. What’s the difference between ‘block’ and ‘inline’ elements?
  30. How would you group form elements?
  31. Should you collapse white spaces?
  32. What are applets?
  33. How we use JavaScript with HTML?
  34. What are the web sockets?
  35. What do you mean by Box Model?
  36. What is the meaning of markup in HTML?
  37. How Do I Specify A Specific Combination Of Frames Instead Of The Default Document?
  38. Why Aren't My Frames The Exact Size I Specified?
  39. Is It Possible To Make The Html Source Not Viewable?
  40. Explain Vbscript
  41. How do I make a form so it can be submitted by the hitting ENTER?
  42. What is shadow DOM?
CSS Interview Questions
  1. How do CSS precedence/cascading rules work? How does the !important directive affect the rules?
  2. How Do I Design For Backward Compatibility Using Style Sheets?
  3. What Can Be Done With Style Sheets That Can Not Be Accomplished With Regular Html?
  4. Why Shouldn't I Use Fixed Sized Fonts ?
  5. What are the benefits of CSS sprites?
  6. What is tweening?
  7. What are the merits and demerits of embedded style sheets?
  8. What does CSS selector mean?
  9. What is contextual selector?
  10. What is graceful degradation?
  11. What is progressive enhancement?
  12. What is Alternate Style Sheet?
  13. How can CSS be cascaded to mix with user’s personal sheet?
  14. How does the Z index function?
  15. What is CSS specificity?
  16. Why background and color are the separate properties if they should always be set together?
  17. What is the use of ruleset?
  18. Do you use any CSS preprocessors, and which do you prefer?
  19. What are web safe fonts and fallback fonts?
  20. What are pseudo elements and what are they used for?
  21. What are the disadvantages of using CSS?
  22. Explain the CSS Box Model and its different elements.
  23. What is the float property used for in CSS?
  24. Explain the difference in approach when designing a responsive website over a mobile-first strategy?
  25. What are the advantages and disadvantages of using a CSS pre-processor??
  26. How would you implement the basic layout components of the box model in CSS? Give an example.
  27. How do you define a pseudo class in CSS? What are they used for?
  28. What do ‘class’ and ‘ID’ selectors pick when they are issued?
  29. How is clearfix css property useful?
  30. What is your least favorite part of working with CSS?
  31. What happens to text if 'auto' value is assigned to overflow property, to the element containing the text?
  32. Does overflow: hidden create a new block formatting context?
  33. How can you load css resources conditionally?
  34. How does inheritance work in CSS?