font decoration underline css code example Example 1: how to underline text in css h3 { text-decoration: underline; } Example 2: text-decoration: text-decoration: