What is HTML and its primary purpose?
HTML (HyperText Markup Language) is used to create the content and structure of web pages.
What is the role of the id and class attributes in HTML?
id uniquely identifies an element; class associates elements with CSS styles or JavaScript behaviors.
What is CSS used for in web development?
CSS (Cascading Style Sheets) controls the presentation, layout, and visual styling of HTML elements.
What is JavaScript’s role in web pages?
JavaScript adds interactivity and dynamic behavior to web pages.
What is the Document Object Model (DOM)?
A programming interface representing the page structure as a tree of objects that JavaScript can manipulate.
What is event-driven programming in JavaScript?
Programming where code responds to user actions or events like clicks, keypresses, or page loads.
What is the difference between var, let, and const in JavaScript?
var is function-scoped, let and const are block-scoped; const variables cannot be reassigned.
What is responsive web design?
Designing web pages that adapt layout and content to different screen sizes and devices.
What is the difference between inline, block, and inline-block elements in HTML/CSS?
Inline elements flow within text, block elements start on a new line and take full width, inline-block elements flow inline but respect width and height.