According to Code Academy's Make a Website: CSS Styling:
<head>
<link href="font.css" rel="stylesheet">
<link href="main.css" rel="stylesheet">
</head>
"In the head element, there are two link elements that should be ordered correctly.
The font.css link should come before the main.css link so that the custom font is available for use.
When the browser first sees the font.css link, it makes the font accessible to the page. Then, when it encounters the main.css link, the custom font can be utilized for styling."
I am looking for an explanation on why the order matters (linking to fonts before the main CSS stylesheet).
Even though I tried linking to the main stylesheet before the fonts, it still worked correctly.