Sometimes it might be useful to style only those links that have no class names. a:not([class]) { color: #0055ff; text-decoration: none; } a:not([class]):hover, a:not([class]):hover { text-decoration: underline; } Links Codepen