General - HTML & CSS Basics Flashcards
(6 cards)
Q: What are the three elements of document design in web development?
A: Structure (HTML), Presentation (CSS), Behavior (JavaScript)
Q: Why is it good practice to separate HTML and CSS?
A: Maintains clean code, improves readability, enables reuse of styles, supports consistent design.
Q: What is meant by “semantic HTML”?
A: Using tags that describe their content’s meaning (e.g., <.article>, <.nav>, <.header>), improving accessibility and SEO.
Q: What is a CSS rule made of?
A: Selector, property, and value.
Q: Difference between class and id in CSS?
A: Class is reusable and marked with ., id is unique and marked with #.
Q: What are the three aspects?
Content - what the user sees
Presentation - how you want it to appear
Structure- the way you use tables, headings, paragraphs etc