1️⃣ Q: What is the difference between HTML and HTML5?
A: HTML5 is the latest version and supports new elements like <audio>, <video>, <canvas>, and improved semantic tags. It also supports local storage and offline capabilities.
2️⃣ Q: What is the difference between == and === in JavaScript?
A: == compares values after type conversion, while === compares both value and type.
Example:
5 == '5' is true, but 5 === '5' is false.3️⃣ Q: Explain the Box Model in CSS.
A: The CSS Box Model consists of:
- *Content* → The actual text/image
- *Padding* → Space around content
- *Border* → Around the padding
- *Margin* → Space outside the border
4️⃣ Q: What are the different HTTP methods?
A: Common methods:
- *GET* → Retrieve data
- *POST* → Send data
- *PUT* → Update existing data
- *DELETE* → Remove data
5️⃣ Q: What is the difference between null and undefined in JavaScript?
A:
-
null → Assigned value meaning “no value”-
undefined → A variable that has been declared but not assigned a value6️⃣ Q: What is responsive design?
A: It makes web pages look good on all devices (mobile, tablet, desktop) using CSS media queries and flexible layouts.
7️⃣ Q: What is the role of JavaScript in web development?
A: JavaScript adds interactivity to web pages — like dropdowns, sliders, form validation, etc.
8️⃣ Q: What is DOM?
A: The Document Object Model represents the page structure in a tree format, allowing JavaScript to interact with and manipulate HTML/CSS dynamically.
👍 Tap ❤️ for more!