Skip to content

Commit

Permalink
remove end tag and prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
hamishwillee committed Nov 1, 2024
1 parent 218ebb0 commit 1d3fa43
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions files/en-us/web/html/global_attributes/autocorrect/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ The default value for elements that are not nested inside a `<form>` is `on`.
When nested in a `<form>`, the following elements inherit their their default value of `autocorrect` from the form if it has been set: {{htmlelement("button")}}, {{htmlelement("fieldset")}}, {{htmlelement("input")}}, {{htmlelement("output")}}, {{htmlelement("select")}}, and {{htmlelement("textarea")}}.

## Examples

### Basic example

This example demonstrates basic `autocorrect` attribute usage.
Expand All @@ -52,11 +53,11 @@ We include two text `<input>` elements with different values for their `autocorr

<label for="fruit">A fruit: </label>
<input id="fruit" name="fruit" type="text" autocorrect="off" />
```end
```

#### Results

{{EmbedLiveSample("Basic example", "100%", "250")}}
{{EmbedLiveSample("Basic example", "100%", "75")}}

Enter invalid text into the fruit and vegetable text entry boxes above.
If auto-correction is enabled on your browser, a typo in a vegetable name should be auto-corrected, but not in a fruit name.
Expand Down

0 comments on commit 1d3fa43

Please sign in to comment.