css property bold code example Example 1: css bold text .text { font-weight: bold; } Example 2: css font in bold font-weight: bold;