HTML is the bones of the website while CSS is the flesh. The bones are merely a suggestion for where the flesh may grow, but it isn't always entirely accurate to what the flesh turns out to look like.
I think you might need to meet more people before giving out analogies. I mean, it’s right, but I think maybe face to face it’s not going to come across as well.
You're right, which is why I go with the much less accurate, but more relatable analogy of a house when speaking in person. HTML is the foundation and walls while CSS is the paint, siding, and overall decoration. The problem with that analogy, however, is that it doesn't include CSS's ability to move the HTML around the webpage.
Do you have any better ones that are both accurate and not morbid as fuck?
I'm trying! I'm fairly late on one project since I got completely stumped on another project for another class (same professor for both, so shot myself in the foot there).
In a perfect world the HTML should be the structure but you’re right that you can break that with CS to an extent. If your HTML structure is wrong it’ll create a ton of a11y issues.
You can hide things, make things appear, make them move vertically and horizontally which to a layperson would appear like structure changes but I take your point. I think it's better to say HTML is your content
10
u/itsallgoodie Dec 16 '18
Technically the HTML is the structure...