What is the difference between HTML and HTML5?
HTML5 introduced new elements like <header>, <footer>, <article>, and <section>, as well as support for multimedia (e.g., <audio> and <video>).
Explain the box model in CSS.
The box model consists of content, padding, border, and margin. It defines how elements are structured and spaced.
What is the difference between == and === in JavaScript?
== checks for value equality (with type coercion), while === checks for both value and type equality.
What is React, and why is it used?
React is a JavaScript library for building user interfaces. It uses a virtual DOM for efficient updates and allows reusable components.
What is the purpose of useState in React?
useState is a React hook that allows functional components to manage state.
What is the difference between let, const, and var in JavaScript?
var is function-scoped and hoisted. let and const are block-scoped. const cannot be reassigned after declaration.
What is the Virtual DOM?
The Virtual DOM is a lightweight copy of the actual DOM. It improves performance by minimizing direct DOM manipulations.
What are CSS Flexbox and Grid?
Flexbox is for one-dimensional layouts (rows or columns), while Grid is for two-dimensional layouts (rows and columns).