Text that shows an underline on hover

css, html

Solution

<span class="txt">Some Text</span>

.txt:hover {
    text-decoration: underline;
}

Problem

Can you underline a text on hover using css? (Like the behavior of a link but not an actual link.) - you have the following text Hello work - when you hover your mouse over the text it underlines it using css (the text is not a link)

Original source