FlashcardNot attempted
Separation of concerns
Recall it before you reveal
Why keep structure, presentation and behaviour separate in a vanilla project?
Space to reveal
Show answer & explanation
HTML = structure and meaning, CSS = presentation, JS = behaviour. Keeping them apart (and even splitting data from rendering logic in JS) means each can change without breaking the others, semantics and accessibility come from HTML rather than scripts, and the page still works (and stays readable) when CSS or JS fails to load.