Giter Site home page Giter Site logo

layout_html-form's Introduction

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 protected]'. Add attribute data-qa="field-placeholder" to test it correctly.
  • The text fields should have disabled autocomplete.
  • Add a button which submits the form.
  • Add onsubmit="onSubmit(event)" attribute to show form value on form submit
  • 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

layout_html-form's People

Contributors

ivadimko avatar ost-ptk avatar yuriiholiuk avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.