From the course: Building a Resilient Web
Unlock this course with a free trial
Join today to access over 24,000 courses taught by industry experts.
Progressive CSS
From the course: Building a Resilient Web
Progressive CSS
- [Instructor] With semantic, accessible HTML in place, the next step up the layer cake of web development is the presentation layer, CSS. This is where progressive enhancement kicks in full force. First of all, CSS already has a form of progressive enhancement built in, thanks to its declarative nature. As long as the markup is properly formed, the browser will try its best to interpret every selector and property and value. If it has support for the feature, it renders it. If not, it simply ignores it and moves on. That means we can safely add modern selectors and properties and values to our style sheets even though we know older browsers don't support them. The very worst thing that can happen is the rule set or property or value is not rendered in the viewport. This, combined with the cascade, allows us to write CSS with progressive enhancement built right into the code. Say, for example, you want to use the ch unit…
Contents
-
-
-
-
-
-
(Locked)
Progressive enhancement2m 43s
-
(Locked)
HTML as the baseline3m 23s
-
(Locked)
Accessible, by default3m 30s
-
(Locked)
Progressive CSS4m 24s
-
(Locked)
Progressive JavaScript2m 51s
-
(Locked)
Link persistency5m 23s
-
(Locked)
Service workers add reliability2m 10s
-
(Locked)
Web Components to the rescue2m 42s
-
(Locked)
-
-
-