Having trouble with the link part

Tell us what’s happening:
Describe your issue in detail here.

  **Your code so far**
\ file: <!DOCTYPE html>
<html lang="en">
<head>
   <link><a href="https://fonts.googleapis.com/css?family=Open+Sans:400,700,800" rel="stylesheet"></link></a>
  <link><a href="styles.css"></link></a>
  <meta charset="UTF-8">
  <title>Nutrition Label</title>

</head>
<body>
  <h1>Nutrition Facts</h1>
  <p>8 servings per container</p>
  <p>Serving size 2/3 cup (55g)</p>
</body>
</html>
<!DOCTYPE html>
<html lang="en">
<head>
   <link><a href="https://fonts.googleapis.com/css?family=Open+Sans:400,700,800" rel="stylesheet"></link></a>
  <link><a href="styles.css"></link></a>
  <meta charset="UTF-8">
  <title>Nutrition Label</title>

</head>
<body>
  <h1>Nutrition Facts</h1>
  <p>8 servings per container</p>
  <p>Serving size 2/3 cup (55g)</p>
</body>
</html>
\ file: 

I keep getting an error but i thought i put the right code in

  **Your browser information:**

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

Challenge: Step 4

Link to the challenge:

Hi,
You don’t need to put an anchor <a> element in. Head links and anchor elements aren’t the same thing.

Link tags also are self closing elements, you don’t need a closing tag for them.

hope this is helpful!

this was very helpful. i made the adjustments and it worked. Thank you for your help!!!

1 Like