Kamzed / layout_html-form

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Frontend practice with html forms

Main goal:

Create HTML page with form. On form submit send form data to https://mate-academy-form-lesson.herokuapp.com/create-application

Screenshot of this form: screenshot

Common mistakes

  • Every field should have name attribute
  • Every field should have label, which focuses input on label click
  • Do not use tabs. Use 2 spaces for indentation
  • Most of the time you want each tag in new line

Requirements:

Form should have different inputs with such types:

  • text
  • number
  • email
  • checkbox
  • radio
  • password
  • range
  • time
  • color
  • date

Also form should have textarea and select elements.

Every field should have label which focus the input by click. See reference screenshot for label names. Every field should have name attribute.

  • You should use every of this attribute at least one time - required, min, max, minlength, maxlength, etc
  • The number field should have default value: '12'. Add attribute data-qa="field-value" to test it correctly.
  • The email field should have placeholder value: 'email@example.com'. Add attribute data-qa="field-placeholder" to test it correctly.
  • The text fields should have disabled autocomplete.
  • Add a button which submits the form.
  • Vertical distance between inputs should be 10px
  • Vertical distance between blocks with inputs should be 20px
  • Any other styles should be browser's default

Read the guideline before start

Guideline

Result

About

License:GNU General Public License v3.0


Languages

Language:JavaScript 74.1%Language:HTML 16.0%Language:Shell 9.8%