Learn Typography by Building a Nutrition Label - Step 6

i have been asked to create an html selector to change the font-size of the paragraphs in my css code,i did it but the code is not running
Your code so far

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

body {
font-family: 'Open Sans', sans-serif;
  **Your browser information:**

User Agent is: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/104.0.5112.79 Safari/537.36

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

Link to the challenge:

It’s selector for p, not for html

You are right but the code is not running still.

Post here your updated code please.
In case you have questions how to do it, I will leave this iinstruction:

p {
font-size: 16px;

This a css code which tells the paragraphs in the html code to give the p a font-size of 16px

p {
font-size: 16px;

Again, you don’t need selector for paragragh
You need selector for html element

In the first post I quoted your incorrect solution

It was not example ‘how to solve it’

We can point your mistakes, but we don’t solve tasks for you here.

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