General - HTML & CSS Basics Flashcards

(6 cards)

1
Q

Q: What are the three elements of document design in web development?

A

A: Structure (HTML), Presentation (CSS), Behavior (JavaScript)

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

Q: Why is it good practice to separate HTML and CSS?

A

A: Maintains clean code, improves readability, enables reuse of styles, supports consistent design.

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

Q: What is meant by “semantic HTML”?

A

A: Using tags that describe their content’s meaning (e.g., <.article>, <.nav>, <.header>), improving accessibility and SEO.

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

Q: What is a CSS rule made of?

A

A: Selector, property, and value.

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

Q: Difference between class and id in CSS?

A

A: Class is reusable and marked with ., id is unique and marked with #.

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

Q: What are the three aspects?

A

Content - what the user sees
Presentation - how you want it to appear
Structure- the way you use tables, headings, paragraphs etc

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