There are more ways of styling links than just "line underline", dashed underline and dotted underline. You can style links in any way defined in the W3C's Cascading Style Sheets (CSS) specification. For example:
- Using the
text-decoration-style
property, you can apply a normal underline, a double underline, a dotted underline, a dashed underline or a wavy underline.
- Using properties for borders, you can set a border at the top, right, bottom, or left of the link, or any combination of these (and choose different colours and thickness for each border, should you be so inclined),
- Using background-related properties, you can change the background colour or even set a background image.
- You can of course also set a different text colour from the surrounding text.
- You can vary the above based on the link state (using CSS pseudo-classes), e.g. one style for unvisited links, another style for visited links, a third style for when the mouse pointer hovers over the link, a fourth style for when the link receives keyboard focus and a fifth style when the link is being activated (someone clicked on the link but the page has not yet disappeared).
That's a lot of options and freedom, and not all combinations and possibililties make sense if you want to make a website usable and accessible. In the "old days", when browser support for CSS was still limited, links were usually underlined. When CSS support improved and the use of navigation menus (to the left or right of the main content) increased, designers increasingly used colour instead of underlines to identify links.
Using JavaScript, developers also started using links to implement functionality that can be implemented using buttons, but for many years, browser support for styling buttons was very limited. Now that CSS support for buttons has improved, many developers still use links where buttons would be more appropriate (from a programming point of view).
In the screenshot from work.ua, the underlined words "accountant" and "sales" don't take you to a different page (or a different part of the same page) but fill in the underlined word in the form. So they need to be styled in a way that suggest that they do something without looking like (navigation) links. By contrast, the string "Advanced Search" works as a link and is implemented as a normal link. The issue in the screenshot is therefore how to distinguish between proper navigation links ("Advanced Search") and "links" that use JavaScript in order to work like buttons ("accountant"). Both real buttons (using the button
element) and "fake" buttons (a
elements with JavaScript event handlers) can be styled as buttons. However, if the conventional button style is rejected, there is no alternative convention to fall back on, as far as I know.