Skip to content

Commit

Permalink
Makes tel.html a little bit more accessible (#2625)
Browse files Browse the repository at this point in the history
Here is a suggestion to make the format suggestion a little bit more accessible to screenreaders and people with a zoom activated. Let's make this doc more accessible :)
  • Loading branch information
geoffreycrofte authored Jan 19, 2024
1 parent fd7893d commit dd375a7
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions live-examples/html-examples/input/tel.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<label for="phone">Enter your phone number:</label>
<label for="phone">
Enter your phone number:<br>
<small>Format: 123-456-7890</small>
</label>

<input type="tel" id="phone" name="phone" pattern="[0-9]{3}-[0-9]{3}-[0-9]{4}" required />

<small>Format: 123-456-7890</small>

0 comments on commit dd375a7

Please sign in to comment.