Web Dev Flashcards

(9 cards)

1
Q

What is HTML and its primary purpose?

A

HTML (HyperText Markup Language) is used to create the content and structure of web pages.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is the role of the id and class attributes in HTML?

A

id uniquely identifies an element; class associates elements with CSS styles or JavaScript behaviors.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is CSS used for in web development?

A

CSS (Cascading Style Sheets) controls the presentation, layout, and visual styling of HTML elements.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What is JavaScript’s role in web pages?

A

JavaScript adds interactivity and dynamic behavior to web pages.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What is the Document Object Model (DOM)?

A

A programming interface representing the page structure as a tree of objects that JavaScript can manipulate.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What is event-driven programming in JavaScript?

A

Programming where code responds to user actions or events like clicks, keypresses, or page loads.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What is the difference between var, let, and const in JavaScript?

A

var is function-scoped, let and const are block-scoped; const variables cannot be reassigned.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What is responsive web design?

A

Designing web pages that adapt layout and content to different screen sizes and devices.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What is the difference between inline, block, and inline-block elements in HTML/CSS?

A

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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly