Button With aria-label (Icon)
HTML
Hard
2 views
Problem Description
Create an icon-only button for search with aria-label 'Search on meetcode'.
Output Format
Print the HTML code.
Constraints
Button needs accessible name.
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>
<button type='button' aria-label='Search on meetcode'>
<span aria-hidden='true'>Search</span>
</button>
</body>
</html>
Solutions (0)
No solutions submitted yet. Be the first!
No comments yet. Start the discussion!