Change the font size

Report a typo

Consider the code below. What will be the font size enclosed in the <b> tag in pixels?

<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8">
    <title>Change the font size</title>
  </head>
  <body>
     <p>Change the <b>font size</b></p>
  </body>
</html>
p {
  font-size: 26px;
}

b {
  font-size: 3rem;
}

Tip: Remember on which element you should base the calculation of rem. Hopefully, you also remember the default font size in browsers!

Enter a number
___

Create a free account to access the full topic