5 ms·
I disagree - you still only have one element in markup which is the whole point.
by abritishguy 12y ago
I disagree - you still only have one element in markup which is the whole point.
- untog 12y agoBut when you're using CSS to turn one element into three... what is the "whole point", exactly?
- mononcqc 12y agoIt means you should be able to do more from semantic HTML only and CSS only, without mixing up markup and presentation.
- u124556 12y agoYet she uses a <div/> instead of an <img/>
- coldtea 12y agoThe whole point is that you're using one element on your HTML code.
- lstamour 12y agoYou're using CSS. That's the point. Many people still think CSS is still stuck in 2003. It's still limited, but it's come a long way... Heck, with just CSS you can have a webpage react to your turning off the lights on your phone.
- untog 12y agoSure... but it's specifically using CSS to add extra elements. So it makes the "just one div" thing feel a little silly. Surely you could do "just no divs" and do the same trick on the <body> tag?