Validate HTML Forms with JavaScript and HTML

ofrecido por
Coursera Project Network
En este proyecto guiado, tú:

Explain the importance of verifying the data values entered on a form.

Write JavaScript code that validates values entered on an HTML form.

Demonstrate techniques for validating values entered on a form using HTML built-in validation.

Clock2 hours
IntermediateIntermedio
CloudNo se necesita descarga
VideoVideo de pantalla dividida
Comment DotsInglés (English)
LaptopSolo escritorio

By the end of this project, you will have written and tested JavaScript and HTML code that validates data values entered into input fields on an HTML form. Data validation is a valuable skill in web development. Notifying users of input errors not only improves the user experience it also helps to ensure that any data collected via a form is as accurate as possible before sending it to a server for processing. Note: This course works best for learners who are based in the North America region. We’re currently working on providing the same experience in other regions.

Habilidades que desarrollarás

  • Client-side Form Validation
  • HTML5 Built-in Form Validation
  • Javascript Methods
  • Data Validation
  • JavaScript

Aprende paso a paso

En un video que se reproduce en una pantalla dividida con tu área de trabajo, tu instructor te guiará en cada paso:

  1. Compare client- and server-side validation as you investigate when and where to validate data values to reduce data input errors.

  2. Use JavaScript code to check an input field on a form to ensure that it has been filled in and display an error message if the field is empty.

  3. Use JavaScript to test the value entered into a form field to determine its length and/or whether it falls within a range of numeric values and display an error message if that is not the case.

  4. Test the value entered into a form to ensure that it matches an email address format and display an error message if it does not.

  5. Modify HTML code to include built in form validation to check for a range of numbers, a list of values and the correct format for an email address.

Cómo funcionan los proyectos guiados

Tu espacio de trabajo es un escritorio virtual directamente en tu navegador, no requiere descarga.

En un video de pantalla dividida, tu instructor te guía paso a paso

Preguntas Frecuentes

Preguntas Frecuentes

¿Tienes más preguntas? Visita el Centro de Ayuda al Alumno.