1

It protects the legitimacy of the interaction between the user and the "original" website from malicious Javascript executed on the "other origin." Suppose I am logged into a super-secret admin portal A. I've finished doing my admin work, so I decide to go off browsing and find myself on dodgy website B. Dodgy website B executes some javascript that ...


1

There is no particular reason. The libraries just grew like that, naturally. Libraries such as Bootstrap were promising that there will be no custom styling any longer. Instead of spending hours writing CSS code (and days adjusting the CSS you wrote for Internet Explorer), you would simply include the library in your project, and add semantic classes where ...


1

I think you are right to point out that some CSS classes like .inline-block { display: inline; } are generally pointless. There are three reasons why such classes might still be used: Cargo-culting of “best practices”. You're generally supposed to use classes in place of inline styles, so some people even use CSS classes where they do not bring any benefit. ...


Only top voted, non community-wiki answers of a minimum length are eligible