General link for all custom google fonts

The link provided in the tutorial on left side works for only Lobster fontfamily i guess, Is there any general link of googlefont , by which we can use any custom family name? Also, how to find such a link ?

.red-text {
  color: red;

p {
  font-size: 16px;
  font-family: monospace;

<h2 class="red-text">CatPhotoApp</h2>
<p class="red-text">Click here to view more <a href="#">cat photos</a>.</p>

<a href="#"><img src="" alt="A cute orange cat lying on its back."></a>

  <p>Things cats love:</p>
    <li>cat nip</li>
    <li>laser pointers</li>
  <p>Top 3 things cats hate:</p>
    <li>flea treatment</li>
    <li>other cats</li>

<form action="">
  <label><input type="radio" name="indoor-outdoor" checked> Indoor</label>
  <label><input type="radio" name="indoor-outdoor"> Outdoor</label><br>
  <label><input type="checkbox" name="personality" checked> Loving</label>
  <label><input type="checkbox" name="personality"> Lazy</label>
  <label><input type="checkbox" name="personality"> Energetic</label><br>
  <input type="text" placeholder="cat photo URL" required>
  <button type="submit">Submit</button>
  **Your browser information:**


Challenge: Import a Google Font

Link to the challenge:

You can choose fonts from, it will give you the code to use to import the font

If you want different fonts you need to use different links, but you can use one link to import different weights and styles of the same font

1 Like

okay! thanks for replying promptly

`<link rel="preconnect" href="">`
<link rel="preconnect" href="" crossorigin>
<link href="" rel="stylesheet">

So these three links right for Lobster family?

Yes those are the correct links for the Lobster font.
They go inside the head section

<!DOCTYPE html>
<html lang="en">

  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <meta http-equiv="X-UA-Compatible" content="ie=edge">
  <title>HTML 5 Boilerplate</title>
  <!--Lobster font-->
  <link rel="preconnect" href="">
  <link rel="preconnect" href="" crossorigin>
  <link href="" rel="stylesheet">
  <!--custom stylesheet-->
  <link rel="stylesheet" href="style.css">

  <script src="index.js"></script>


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