A complete link style considers several states. Visited links help users know where they have been. Hover helps mouse users. focus-visible helps keyboard users. Active gives feedback while the link is pressed.
Native markers are accessible and simple. Use ::marker for color and size changes, or pseudo-elements when you need custom icons. If you remove list-style, replace it with clear visual structure.
A navigation menu is a list of links. Keeping the list structure helps assistive technology and makes responsive layout easier with flex or grid.
a {
color: #2563eb;
text-decoration-thickness: 2px;
text-underline-offset: 3px;
}
a:hover,
a:focus-visible {
color: #1d4ed8;
outline: 2px solid #93c5fd;
outline-offset: 3px;
}
.nav a[aria-current="page"] {
font-weight: 700;
color: #0f172a;
}
<ul class="feature-list">
<li>Keyboard-friendly navigation</li>
<li>Visible focus styles</li>
<li>Readable spacing between items</li>
</ul>
.article-list li::marker {
color: #2563eb;
font-weight: 700;
}
.article-list li {
margin-block: 0.65rem;
line-height: 1.6;
}
.nav-list {
display: flex;
flex-wrap: wrap;
gap: 0.75rem 1rem;
list-style: none;
padding: 0;
}
.nav-list a {
display: inline-flex;
min-height: 44px;
align-items: center;
}
Keyboard users need a clear indicator showing which link currently has focus.
Yes. Use ::marker or list-style while keeping the ul or ol structure.
Color alone may not make links distinguishable for every reader.
Practice, interview questions, and compiler links for CSS.
Finish the concept here, then reinforce it with hands-on coding, interview prep, or a tool that matches the topic.
Explore 500+ free tutorials across 20+ languages and frameworks.
Fresh tutorials, interview guides, and coding practice in your inbox.