thinkful-ed / css_layout_exercises_starter_files Goto Github PK
View Code? Open in Web Editor NEWSolutions for CSS Layout Exercises
Solutions for CSS Layout Exercises
It is quickly becoming safe to use having landed in Chrome, Firefox, coming soon to Safari. Mostly just waiting on Edge.
http://caniuse.com/#search=grid
📛 This is a serious violation of WCAG 2.0 Level A 📛
The <HTML>
element should always have a lang attribute set. No exceptions.
If there are any questions or concerns resources can be provided but the TL;DR is that otherwise you wind up with screen readers reading the page in English with a French accent.
There is a render-blocking request for the largest asset on the page. As it is now, the font has to be loaded before the stylesheet or any of our HTML content.
This can be resolved using a nifty pattern of JavaScript (onload
) and a <noscript>
tag.
<link href="https://fonts.googleapis.com/css?family=Roboto" rel="stylesheet" media="none" onload="this.media='all'">
This will prevent the browser from seeing the stylesheet as a blocking request and then will set the media attribute to all (or screen, or whatever) on load. Problem is, if JavaScript is disabled, onload
won't happen. So we use a <noscript>
fallback.
Finally, our entire pattern looks like so:
<link href="https://fonts.googleapis.com/css?family=Roboto" rel="stylesheet" media="none" onload="this.media='all'">
<noscript><link href="https://fonts.googleapis.com/css?family=Roboto" rel="stylesheet" media="all"></noscript>
Furthermore, we should be putting the <link>
that loads the fonts at the bottom of <head>
so as to not promote bad habits. The main style sheet should always be included before fonts and definitely before any scripts.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.