.txt:hover { text-decoration: underline; } code example Example: .txt:hover { text-decoration: underline; } &:hover { text-decoration: underline; }