bold paragraph css code example

Example 1: css bold text

.text {
	font-weight: bold;
}

Example 2: css bold text

/* Keyword values */
font-weight: bold;

/* Keyword values relative to the parent */
font-weight: bolder;

/* Numeric keyword values */
font-weight: 700; // bold
font-weight: 800;
font-weight: 900;

Example 3: css paragraph ellipsis

max-width: 100px;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;

Example 4: html bold text

<html>
 <head>
   <title>Bold text</title>
 </head>
 <body>
   <p>Use the strong element to <strong>indicate strongly emphasized</strong> content.</p>
 </body>
</html>

Example 5: css bold text

we can set text bold using css property named 'font-weight'
Syntax:
selector{
  font-weight: bold;
}

Tags:

Misc Example