Change the Font Size of an Element challenge question

hi all! i am attempting to tackle the first few challenges in the front end development certification. currently i am working on the Change the Font Size of an Element challenge and am having some difficulty getting the syntax right. i am trying to give the p elements a font size of 16px. very basic question, thanks in advance!!

code:

<style>
  .red-text {
    color: red;
  }
  p {
    font-size: 16x;
  }
</style>

<h2 class="red-text">CatPhotoApp</h2>

<p class="red-text">Kitty ipsum dolor 
</p>
<p>purr jump eat the grass
</p>

it seems like my code didnt copy and paste accurately, so here is a second question- how do i share bits of code effectively?

thanks again!

OK :

  • You made a mistake (typos), β€˜p’ is missing. To be correct it’s font-size: 16px;

  • To share your code on the forum copy-paste them on the editor, then select them all and choose the prefomatted text or the blockquote option.

2 Likes

I cleaned up your code.
You need to use triple backticks to post code to the forum.
See this post for details.

2 Likes