Learn Typography by Building a Nutrition Label - Step 4

Can anyone explain to me why we need to define or include the “rel” attribute while importing font family from Google? what is the purpose of “rel” in importing font?

Your code so far

 <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Open+Sans:400,700,800">

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/116.0.0.0 Safari/537.36

Challenge: Learn Typography by Building a Nutrition Label - Step 4

Link to the challenge:

The rel attribute defines the relationship between a linked resource and the current document. Valid on <link>, <a>, <area>, and <form>. The html has to know that your font is a CSS.

2 Likes

Thanks for clarifying :smiley:

Confession: It was google… :wink:

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.