Web Designing Interview Questions (HTML + CSS + JavaScript)
HTML Questions
Q: What is HTML and why is it important in web designing?
A: HTML (HyperText Markup Language) is the standard language for creating the structure of web pages.
Q: What is the difference between HTML and HTML5?
A: HTML5 introduced new semantic elements, multimedia support, and improved form features.
Q: What are semantic HTML elements? Give examples.
A: Elements that clearly describe their meaning: <header>, <article>, <footer>, <section>, etc.
CSS Questions
Q: What is the Box Model in CSS?
A: It includes content, padding, border, and margin that define the layout of an element.
Q: What are media queries?
A: Media queries apply styles based on screen size or device type for responsive design.
Q: What is Flexbox in CSS?
A: Flexbox is a layout model for arranging items in a row or column with flexible alignment and spacing.
JavaScript Questions
Q: What is the difference between var, let, and const?
A: var is function-scoped; let and const are block-scoped. const can't be reassigned.
Q: What is the DOM? How do you manipulate it using JavaScript?
A: The DOM is the document structure. You can use JS to select and change elements.
Q: What is the difference between == and ===?
A: == compares values with type coercion, === compares both value and type strictly.