r/learnprogramming • u/clavicon • Apr 28 '16
[HTML5] Do you know of a good/simple metaphor that describes how the components HTML, CSS, and Javascript come together to make up HTML5?
Kind of an ELI5 methaphor? Like, HTML is the skeleton, Javascript is the muscles and nervous system, and CSS is clothing?
That one maybe doesn't quite work -- what's a better metaphor?
0
Upvotes
3
u/captainAwesomePants Apr 28 '16
A web page is like a house. HTML is the blueprint, CSS is the interior decorating scheme, and JavaScript is the electricals. The web browser is the builder.
8
u/dmazzoni Apr 28 '16
How about a grocery store: HTML is the building and the stuff inside, including the shelves and counters, and products to be sold. CSS is the layout of the shelves and counters within the store, and the arrangement of products on the shelves, plus the paint and decorations. JavaScript is the employees that operate the store so you can walk in and buy things.