Skip to content

Commit

Permalink
Use <p> instead of <div> to separate form controls (mdn#35541)
Browse files Browse the repository at this point in the history
  • Loading branch information
dragunovartem99 authored Aug 21, 2024
1 parent 7f4dc4e commit 4414bc2
Showing 1 changed file with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -77,15 +77,14 @@ Suppose our HTML declares a `<form>` element:

```html
<form id="userinfo">
<div>
<p>
<label for="username">Enter your name:</label>
<input type="text" id="username" name="username" value="Dominic" />
</div>

<div>
</p>
<p>
<label for="avatar">Select an avatar</label>
<input type="file" id="avatar" name="avatar" required />
</div>
</p>
<input type="submit" value="Submit" />
</form>
```
Expand Down

0 comments on commit 4414bc2

Please sign in to comment.