Changing the Font Size of an Element CSS

Tell us what’s happening:
I am attempting to change the size of font using CSS on an HTML script. I have formatted the style tag correctly (I think) so that “font-size: 16px;” but when I add font-size=16px to the HTML scrip the font size does not change.

What am I doing wrong?

Many thanks in advance!

Your code so far

  .red-text {
    color: red;
  font-size: 16px;

<h2 class="red-text">CatPhotoApp</h2>
  <p font-size=16px 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="/submit-cat-photo">
    <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:

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.16 Safari/537.36.

Link to the challenge:

You missed the p tag in the CSS

Thanks for your help! I am still having trouble however.

When I apply the p tag into CSS style guide it still does not reflect the font size into the HTML letters, even after I have added font-size=16px to the HTML script.

Is there something wrong with my p tag in CSS

<p font-size: 16px;

Just to be clear, you are missing the p selector (it’s not a tag). You are also missing the opening bracket on the style rule.

selector {
  property: value;

got it!! Thanks so much

.p {
    font-size: 16px;>

p is an element selector, not a class selector.

Element selector

p {


Class selector

.p {

1 Like

Thanks for the help!