# I created a basic form

**URL:** <https://forum.freecodecamp.org/t/i-created-a-basic-form/489602>\
**Category:** I Built This\
**Created:** [December 22, 2021, 5:33am UTC](https://forum.freecodecamp.org/t/i-created-a-basic-form/489602 "2021-12-22T05:33:04Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Aclixion](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/aclixion/32/48555_2.png) [@Aclixion](https://forum.freecodecamp.org/u/Aclixion)\
**Post date:** [December 22, 2021, 5:33am UTC](https://forum.freecodecamp.org/t/i-created-a-basic-form/489602/1 "2021-12-22T05:33:04Z")

</div>

> **[Form Test](https://codepen.io/Aclixion/pen/oNGeVZr)**
>
> ...

Any feedback, best practices, and suggestions are fine.

---

<div class="post-metadata">

**Author:** ![divyansh.sharma07112](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/divyansh.sharma07112/32/242642_2.png) [@divyansh.sharma07112](https://forum.freecodecamp.org/u/divyansh.sharma07112)\
**Post date:** [December 22, 2021, 6:27am UTC](https://forum.freecodecamp.org/t/i-created-a-basic-form/489602/2 "2021-12-22T06:27:47Z")

</div>

good bro it is looking greet

---

<div class="post-metadata">

**Author:** ![Roma](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/roma/32/112899_2.png) [@Roma](https://forum.freecodecamp.org/u/Roma)\
**Post date:** [December 22, 2021, 6:35am UTC](https://forum.freecodecamp.org/t/i-created-a-basic-form/489602/3 "2021-12-22T06:35:23Z")

</div>

It looks good @Aclixion. Some things to revisit;

- The form should throw an HTML5 error if the user does not enter a username and/or password and clicks the submit button
- Change the cursor to a pointer when hovering over the submit button

---

<div class="post-metadata">

**Author:** ![Aclixion](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/aclixion/32/48555_2.png) [@Aclixion](https://forum.freecodecamp.org/u/Aclixion)\
**Post date:** [December 22, 2021, 6:43pm UTC](https://forum.freecodecamp.org/t/i-created-a-basic-form/489602/4 "2021-12-22T18:43:09Z")

</div>

What about the CSS though? Is there anything I should change or are there best practices I could follow?

---

<div class="post-metadata">

**Author:** ![Roma](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/roma/32/112899_2.png) [@Roma](https://forum.freecodecamp.org/u/Roma)\
**Post date:** [December 23, 2021, 4:34pm UTC](https://forum.freecodecamp.org/t/i-created-a-basic-form/489602/5 "2021-12-23T16:34:40Z")

</div>

- Rather than using fixed dimensions on elements, use max-width/height and relative units like %, em, rem and vw to keep everything responsive.
- Provide a default fallback font. It’s possible that not every OS will have the font you specify or if calling a font the call may fail.
- Style for user’s that use the keyboard to navigate.  
For instance, there’s a hover effect for the submit button. Provide that same effect for someone that’s used the keyboard to get to the submit button.

Something else I noticed on looking at your form a second time.  
When the user types in a password, it should not be shown in plaintext. This would be a bad UX. Hide that password.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/freecodecamp/original/3X/e/1/e1c433102e34b46dfaa3e15d13ab9a514b127078.svg) [@system](https://forum.freecodecamp.org/u/system)\
**Post date:** [June 24, 2022, 4:35am UTC](https://forum.freecodecamp.org/t/i-created-a-basic-form/489602/6 "2022-06-24T04:35:06Z")

</div>

Closed on June 24, 2022, 4:35am UTC

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.
