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.
通过 Coursera Plus 解锁访问 10,000 多门课程。开始 7 天免费试用。


您将学到什么
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.
您将练习的技能
要了解的详细信息

添加到您的领英档案
仅桌面可用
了解顶级公司的员工如何掌握热门技能

在 2 小时内学习、练习并应用岗位必备技能
- 接受行业专家的培训
- 获得解决实训工作任务的实践经验
- 使用最新的工具和技术来建立信心

关于此指导项目
分步进行学习
在与您的工作区一起在分屏中播放的视频中,您的授课教师将指导您完成每个步骤:
Compare client- and server-side validation as you investigate when and where to validate data values to reduce data input errors.
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.
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.
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.
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.
推荐体验
Basic knowledge of JavaScript and HTML (with exposure to forms) is recommended.
5个项目图片
位教师

提供方
学习方式
基于技能的实践学习
通过完成与工作相关的任务来练习新技能。
专家指导
使用独特的并排界面,按照预先录制的专家视频操作。
无需下载或安装
在预配置的云工作空间中访问所需的工具和资源。
仅在台式计算机上可用
此指导项目专为具有可靠互联网连接的笔记本电脑或台式计算机而设计,而不是移动设备。
人们为什么选择 Coursera 来帮助自己实现职业发展




您可能还喜欢
状态:免费
状态:免费试用University of California, Davis
状态:免费试用Microsoft
状态:预览Scrimba
常见问题
购买指导项目后,您将获得完成指导项目所需的一切,包括通过 Web 浏览器访问云桌面工作空间,工作空间中包含您需要了解的文件和软件,以及特定领域的专家提供的分步视频说明。
由于您的工作空间包含适合笔记本电脑或台式计算机使用的云桌面,因此指导项目不在移动设备上提供。
指导项目授课教师是特定领域的专家,他们在项目的技能、工具或领域方面经验丰富,并且热衷于分享自己的知识以影响全球数百万的学生。



