0% found this document useful (0 votes)
3 views

html_css_js_interview_questions

The document lists various interview questions related to HTML, CSS, and JavaScript, covering topics such as semantic HTML elements, the CSS box model, JavaScript operators, event delegation, and performance improvement techniques. It also addresses storage options like localStorage and sessionStorage, as well as CSS layout methods like flexbox and grid systems. Additionally, the document discusses JavaScript concepts like closures, promises, and hoisting.

Uploaded by

Ahmed saikaly
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
3 views

html_css_js_interview_questions

The document lists various interview questions related to HTML, CSS, and JavaScript, covering topics such as semantic HTML elements, the CSS box model, JavaScript operators, event delegation, and performance improvement techniques. It also addresses storage options like localStorage and sessionStorage, as well as CSS layout methods like flexbox and grid systems. Additionally, the document discusses JavaScript concepts like closures, promises, and hoisting.

Uploaded by

Ahmed saikaly
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

HTML, CSS, JavaScript Interview Questions

1. What are semantic HTML elements? Give examples.

2. How does the CSS box model work?

3. What is the difference between == and === in JavaScript?

4. Explain event delegation in JavaScript.

5. What is the purpose of the 'defer' and 'async' attributes in script tags?

6. How does specificity work in CSS?

7. Describe the difference between inline, inline-block, and block elements.

8. What are closures in JavaScript? Provide an example.

9. How can you improve the performance of a website?

10. Explain the difference between localStorage, sessionStorage, and cookies.

11. What is the difference between 'visibility: hidden' and 'display: none'?

12. Explain how flexbox and grid systems work in CSS.

13. What is hoisting in JavaScript?

14. How does prototypal inheritance work in JavaScript?

15. What are data attributes in HTML and how are they used?

16. How can you center a div both vertically and horizontally using CSS?

17. Explain the difference between var, let, and const in JavaScript.

18. What is a promise in JavaScript and how do you use it?

19. What is the difference between synchronous and asynchronous code?

20. What are the different types of positioning in CSS?

You might also like