Basic Web Developer Interview Questions

Find the common interview questions for a web developer

HTML

  1. What are the difference between Html 4 and Html5?
  2. What are the semantic tags?
  3. What is the difference between block element and inline element?
  4. Why we are using semantic tags?
  5. What the difference between div and header tag?
  6. What are the html5 APIS?
  7. How many way to import style in html?
  8. What is the difference between block element and inline block element?
  9. Why we are using <!Doctype html>
  10. What is the use meta tags?
  11. What are the form elements in html5?
  12. Difference between Canvas and SVG?
  13. What is web storage?
  14. What is the difference between localstorage and sessionstorage?
  15. What is the maximum storage of localstorage?
  16. What is the use of tab index attribute?
  17. How we can validate the HTML 5 form?
  18. What is pattern attribute?
  19. What is the difference between input type button and button tag?
  20. What is web workers?
  21. What is SSE?
  22. What is the use of Object tag?
  23. What is the use of embed tag?
  24. How to make one input type file to select multiple files?
  25. What is responsive?
  26. What is browser compatibility?
  27. How to handle the browser compatibility?
  28. How to open a link in new tab?
  29. Which is better CDN or local file paths?

CSS

  1. Difference between position absolute and relative?
  2. What is the use of float property?
  3. What is the difference between Class and ID?
  4. How to select the nth child of a parent?
  5. What is psedoelement and psedoclass?
  6. What is box model?
  7. What is short hand property?
  8. How to add third party font to the website?
  9. What is the difference between display none and visibility hidden?
  10. What is the difference between max-width and width?
  11. How to use media query?
  12. How to select the next sibling of the same parent?
  13. How to select the direct child of a parent?
  14. How to set variable in CSS?
  15. How to import one file into another CSS file?
  16. What is the value range of Opacity?
  17. What is the use of counter function in CSS?
  18. What is the use of calc function in css?
  19. What is the difference between rem and em?
  20. How to make one square into a circle in CSS?
  21. What is the syntax of animation property?
  22. How to rotate a div in css?
  23. Why to use ::before and ::after?
  24. What is viewport?
  25. How many types of box –sizing in CSS?
  26. What are the properties of box-shadow?
  27. How to give image in background of an element?
  28. What is the use !important?
  29. How to override an external CSS?
  30. What is the use of display flex?
  31. What is the difference between rowspan and colspan?
  32. How to center a div vertically as well as horizontally?
  33. How to change the order of list in mobile view?
  34. What is z-index?
  35. What is the use of text-indent?

JavaScript

  1. What is hoisting?
  2. What is closure?
  3. What the difference is between == and ===?
  4. What the difference between null and undefined?
  5. What is the typeOf(array)?
  6. How to get the length of an object?
  7. What is the difference between push and unshift?
  8. What is the difference between slice and splice?
  9. How to convert a JSON to string?
  10. What is anonymous function?
  11. What is RegExp?
  12. What is strict mode?
  13. What is JSON?
  14. Can you explain AJAX?
  15. What is the difference between var , let and const?
  16. What is case sensitive?
  17. How to handle exception in JS?
  18. What is the use of this keyword?
  19. How to create class using ES5?
  20. What is the difference between call() and apply() method?
  21. What is the difference between setIntervel() vs setTimeout()?
  22. What is the use querySelector() ?
  23. Difference between querySelectAll() and querySelector()?
  24. What is promises?
  25. Difference between
Function myFunction(){}

Var myfunction = function(){}

Jquery

  1. What is method chaining?
  2. What is callback?
  3. How to bind methods in JQuery?
  4. What is the difference between toggle() and fadeToggle()?
  5. What is the use of val() method?
  6. What is the difference between text() and html()?
  7. How can I remove an element from one place and append it in another place?
  8. What is the use of toggleClass()?
  9. What is the difference between innerWidth() and outerhWidth()?
  10. Why to use $ in jQuery?
  11. What is the difference between after() and insertAfter()?
  12. How to use ajax in jquery?
  13. What is the difference between parent() and parents()?
  14. What is the use of serialize()?
  15. How to stop an animation in jquery?
  16. How to extend an object in jquery?
  17. When to use clone()?
  18. What is the use of offset()?
  19. Difference between $.get and $.post?
  20. What is the difference between remove() and empty()?

Angular js

  1. Why anuglarJS?
  2. What is SPA?
  3. What is two way binding?
  4. What is dependency injection?
  5. What is directive?
  6. What is the use of Controller?
  7. What is ng-app?
  8. Where the angular js app starting bootstrapping?
  9. How to define angular modules?
  10. What is service, provider and factory?
  11. What is $rootScope?
  12. What is the difference between $rootScope and $scope?
  13. What is the use of filter?
  14. What is $http?
  15. What is the difference between ng-if and ng-show?
  16. How to validate a form in angular JS?
  17. How to write the filters in js ?
  18. How many ways to declare a directive?
  19. What is routing?
  20. What is the use ng-view?
  21. How to communicate between two controllers?
  22. How can I inject a service in a controller?