line under the text css code example Example 1: how to underline text in css h3 { text-decoration: underline; } Example 2: line under text html <u> text </u>