css add text code example Example 1: css bold text .text { font-weight: bold; } Example 2: how to display text in css display: inline-block;