Self closing link

<!DOCTYPE html>
<html lang="en">
    <meta charset="UTF-8">
    <title>Nutrition Label</title>
    <link rel="stylesheet" href=",700,800">
    <h1>Nutrition Facts</h1>
    <p>8 servings per container</p>
    <p>Serving size 2/3 cup (55g)</p>

please tell why my self closing link isn’t working because my code cannot pass

Please link to the lesson you are doing, it is hard to help without that information.

Learn Typography by Building a Nutrition Label: Step 4 |

Right so this link element is the issue


What attribute do links need to work?

Second, it needs the same rel as your other link element.

its the href attribute, i used it as well but it didn’t work

i put this /> and the code didn’t pass

1 Like

Please show me the updated code. I can’t help without seeing your code.

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