LinkedIn CSS Skill Assessment Quiz Answers

Using the following HTML and CSS example, what will equivalent pixel value be for .em and .rem elements?

Latest Update on 23rd March, 2022 by Certification Course Answers

Using the following HTML and CSS example, what will equivalent pixel value be for .em and .rem elements?

html {
  font-size: 10px;
}
body {
  font-size: 2rem;
}
.rem {
  font-size: 1.5rem;
}
.em {
  font-size: 2em;
}
<body>
  <p class="rem"></p>
  <p class="em"></p>
</body>
  1.  The .rem will be equivalent to 25px; the .em value will be 20px.
  2.  The .rem will be equivalent to 15px; the .em value will be 20px.
  3.  The .rem will be equivalent to 15px; the .em value will be 40px.
  4.  The .rem will be equivalent to 20px; the .em value will be 40px.

Correct Answer:

  •  The .rem will be equivalent to 15px; the .em value will be 40px.

Latest Updates

No posts found in this category.