CSS encapsulation

What is encapsulation? Among the many good answers that can be easily found around the web, the one given by the software engineer Edward V. Berard is perhaps the most exhaustive one:

The concept of encapsulation as used in an object-oriented context is not essentially different from its dictionary definition. It still refers to building a capsule, in the case a conceptual barrier, around some collection of things.
The quote comes from the "Abstraction, Encapsulation, and Information Hiding article by Edward V. Berard." The whole article text can be found at http://www.tonymarston.co.uk/php-mysql/abstraction.txt.

When thinking about encapsulation in object-oriented programming, the best example we can come up with is probably ...

Get ASP.NET Core 2 and Angular 5 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.