HTML5
Q: What is HTML5?
A: HTML5 is the latest version of HyperText Markup Language used for structuring and presenting
content on the web. It introduces new elements, attributes, and behaviors.
Q: What are new features in HTML5?
A: HTML5 introduces new semantic elements (like <article>, <section>, <nav>, <header>, <footer>),
audio and video support, canvas for drawing, and local storage.
Q: What is the purpose of the <canvas> element?
A: The <canvas> element is used to draw graphics via scripting (usually JavaScript).
CSS3
Q: What is CSS3?
A: CSS3 is the latest evolution of Cascading Style Sheets, bringing new features like rounded
corners, shadows, gradients, transitions, and animations.
Q: What are media queries in CSS3?
A: Media queries allow the content to adapt to different screen sizes and resolutions. It's a
cornerstone of responsive design.
Q: What is the difference between 'relative', 'absolute', and 'fixed' positioning?
A: 'Relative' is positioned relative to its normal position, 'absolute' is positioned relative to its nearest
positioned ancestor, and 'fixed' is positioned relative to the browser window.
JavaScript
Q: What is JavaScript?
A: JavaScript is a scripting language used to create and control dynamic website content, such as
interactive forms, animations, and real-time updates.
Q: What is the difference between '==' and '==='?
A: '==' compares values after type coercion, while '===' compares both value and type.
Q: What are closures in JavaScript?
A: Closures are functions that retain access to their lexical scope even when executed outside that
scope.
Q: What is the event loop?
A: The event loop is a mechanism that allows JavaScript to perform non-blocking operations by
putting callbacks in a queue and processing them sequentially.