|
Unit 8
Mar 13, 2016 0:09:35 GMT -8
Post by Josh Lum on Mar 13, 2016 0:09:35 GMT -8
|
|
|
Unit 8
Mar 15, 2016 1:34:01 GMT -8
Post by Judy Fontanella on Mar 15, 2016 1:34:01 GMT -8
Your code is much cleaner this time. That's great. You have a good start on your form. You just need to fix it a bit and you'll be all done. The directions tell you to attach the labels to the form elements with the "for" attribute. It is much better for styling and does not interfere with how a few of the form elements work. Here is an example of what I mean.
<form action="/login" method="post"> <fieldset> <legend>Login</legend> <p><label>First name</label> <input type="text" name="username" id="username" ></p> <p><label for="lastname">Last name</label> <input type="text" name="lastname" id="username"></p> </fieldset>
Note that the label tags only surround the labels - not the label and the form element as you have. The "for" attribute is added to the label tags. The "id" element has to be added to the form tags, as well.
On your second fieldset, put the legend right after the opening fieldset tag - not after a form element.
Let me know if you need any help. I'd like to meet with you on campus soon and we can take care of some of these little things.
|
|
|
Unit 8
Mar 29, 2016 8:23:36 GMT -8
Post by Josh Lum on Mar 29, 2016 8:23:36 GMT -8
Alright, I think I got it.
|
|
|
Unit 8
Mar 31, 2016 22:50:33 GMT -8
Post by Judy Fontanella on Mar 31, 2016 22:50:33 GMT -8
It looks to me as though your label tags are still surrounding both the label content AND the form element. They shouldn't surround both - just the label content.
|
|