Using empty links as top menu items
-
Sometimes designer or users want “empty” top level links in menus. In this case we normally use create custom link with URL
#
and Link text can be anything. Then user would add sub items for that link.This would create markup like this:
<li> <a href="#">Some text</a> <ul class="sub-menu"> <li><a href="https://example.com/page-1">Page 1</a></li> </li><a href="https://example.com/page-2">Page 2</a></li> <li><a href="https://example.com/page-3">Page 3</a></li> </ul> </li>
Now the question is, would this be bad for accessibility point of view?
We can argue if that’s good user experience or not but I’m mostly wondering how
<a href="#">Some text</a>
would be for accessibility.
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
- The topic ‘Using empty links as top menu items’ is closed to new replies.