Test your skills: Styling basics

The aim of this practice is to assess whether you've understood our Styling web forms article.

Note: You can try out solutions by editing the starting point file locally, however it may be helpful to put your code in an online tool such as CodePen, jsFiddle, or Glitch to work on the tasks.


Styling basics 1

Our basic form styling assessment is fairly free-form, and you have a lot of flexibility over what you do here. But your CSS should aim to fulfill the following requirements:

  1. Add some lightweight "reset" to make fonts, padding, margin, and sizing more consistent.
  2. On top of that, add some nice, consistent styling for the inputs and buttons.
  3. Use some layout techniques to make the inputs and labels line up neatly.

Download the starting point for this task to work in your own editor or in an online editor.



Source: Mozilla, https://developer.mozilla.org/en-US/docs/Learn/Forms/Test_your_skills:_Styling_basics
Creative Commons License This work is licensed under a Creative Commons Attribution-ShareAlike 2.5 License.

Last modified: Tuesday, 22 August 2023, 1:24 PM