diff --git a/files/en-us/learn/forms/your_first_form/index.md b/files/en-us/learn/forms/your_first_form/index.md index 3fcbdb523c9ff65..a747a3e4061a60a 100644 --- a/files/en-us/learn/forms/your_first_form/index.md +++ b/files/en-us/learn/forms/your_first_form/index.md @@ -93,26 +93,24 @@ In terms of HTML code we need something like the following to implement these fo ```html
- +

+ + +

+

+ + +

+

+ + +

``` Update your form code to look like the above. -The {{HTMLelement("li")}} elements are there to conveniently structure our code and make styling easier (see later in the article). +The {{HTMLelement("p")}} elements are there to conveniently structure our code and make styling easier (see later in the article). For usability and accessibility, we include an explicit label for each form control. Note the use of the [`for`](/en-US/docs/Web/HTML/Attributes/for) attribute on all {{HTMLelement("label")}} elements, which takes as its value the [`id`](/en-US/docs/Web/HTML/Global_attributes/id) of the form control with which it is associated — this is how you associate a form control with its label. @@ -152,12 +150,12 @@ by default this element is filled with this text ### The ` - +

``` The {{htmlelement("button")}} element also accepts a `type` attribute — this accepts one of three values: `submit`, `reset`, or `button`. @@ -202,13 +200,7 @@ form { border-radius: 1em; } -ul { - list-style: none; - padding: 0; - margin: 0; -} - -form li + li { +p + p { margin-top: 1em; } @@ -275,22 +267,20 @@ Let's look at some of our form code again: ```html
- +

+ + +

+

+ + +

+

+ + +

+ + …
```