Skip to content

Instantly share code, notes, and snippets.

@dotZak
Last active May 12, 2017 09:54
Show Gist options
  • Save dotZak/1276d0e05844fe496055e95776d84ffd to your computer and use it in GitHub Desktop.
Save dotZak/1276d0e05844fe496055e95776d84ffd to your computer and use it in GitHub Desktop.
Accessible Search Form
<form role="search">
<label for="directorysearchfield">Search <abbr title="Required">*</abbr></label><!-- '*' is an abbreviation of "required". -->
<input id="directorysearchfield" name="search" type="search" placeholder="Enter a search term…" required aria-required="true">
<input type="submit" name="submit">
</form>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment