Use aria-current
HTML
Medium
2 views
Problem Description
Create a nav where Topics link is current page using aria-current.
Output Format
Print the HTML code.
Constraints
Use aria-current='page'.
Official Solution
<!doctype html>
<html lang='en'>
<head>
<meta charset='utf-8'>\
<meta name='viewport' content='width=device-width, initial-scale=1'>
<title>meetcode</title>
</head>
<body>
<nav aria-label='Primary'>
<a href='/'>Home</a>
<a href='/topics' aria-current='page'>Topics</a>
<a href='/login'>Login</a>
</nav>
</body>
</html>
Solutions (0)
No solutions submitted yet. Be the first!
No comments yet. Start the discussion!