Code Monkey home page Code Monkey logo

fe-lesson-1-practice-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.

The basic implementation of this form you can find here

Screenshot of this form: screenshot

Stretch goal:

Send data with AJAX instead of standard form submission. When trying to achieve this, you'll learn what's CORS. Learn how to workaround it. Try to find a working solution.

Common mistakes

  • Validate your html with https://validator.w3.org/
  • 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 has textarea and select elements.

Every field should has label which focus the input by click. Every field should has name attribute.

You should use every of this attribute at least one time - required, min, max, minlength, maxlength, etc At least one field should have default value. At least one field should have placeholder value. At least one field should has disabled autocomplete.

The final solution should be hosted on Github Pages and should show Success page after submit.

How this app is working

Simple request/response nodejs app with Pug and Express. The app hosted in heroku

How to run:

  • install heroku
  • npm i
  • heroku local web

Full guide: https://devcenter.heroku.com/articles/getting-started-with-nodejs

To push changes on production do git push heroku master

fe-lesson-1-practice-form's People

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Forkers

milaeva

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.