DEV Community

Discussion on: Why your website should work without JavaScript.

Collapse
 
nassirdreffy profile image
Nassir Amakran

Very nice article, thank you ! I made my thoughts aboute that.
Html is for semantic structuring data. Css for styling. Js for interactions...We could use html tricks instead js, but it would be broken some semantic rules of the tag in this context maybe.

What do you think?

Collapse
 
shadowfaxrodeo profile image
Nathaniel

Thanks. I think that’s generally a good idea. But not to be too strict with it.

Sometimes the end result is better when you use in built html functionality, or to style something with JS, or display content using css, e.g. background images.

Different if you’re working with a team. Which I don’t have a lot of experience with.