CSS Property Value How to - font: bold 11pt Arial;








Question

We would like to know how to font: bold 11pt Arial;.

Answer


<!DOCTYPE html>
<html>
<head>
<style type='text/css'>
#bodycopy p strong {<!-- w  ww . ja  v  a 2 s  .co  m-->
  font: bold 11pt Arial;
}

#bodycopy p:first-child strong {
  font: bold 20pt "Times New Roman";
}
</style>
</head>
<body>
  <div id="bodycopy">
    <p>
      <strong>Old style headline</strong>
    </p>
    <p>
      Here is paragraph text that can contain <strong>bolded</strong> text.
    </p>
  </div>
</body>
</html>

The code above is rendered as follows: