General - HTML & CSS Basics Flashcards
1
Q
Q: What are the three elements of document design in web development?
A
A: Structure (HTML), Presentation (CSS), Behavior (JavaScript)
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.
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.
4
Q
Q: What is a CSS rule made of?
A
A: Selector, property, and value.
5
Q
Q: Difference between class and id in CSS?
A
A: Class is reusable and marked with ., id is unique and marked with #.