From ab3cbbe980fa51714d4ee46a6f840c594bde0e43 Mon Sep 17 00:00:00 2001 From: zxc-w <163780208+zxc-w@users.noreply.github.com> Date: Wed, 26 Feb 2025 18:19:45 +0200 Subject: [PATCH] fix(curriculum): add an example for the "required" attribute (#58993) --- .../5ef9b03c81a63668521804db.md | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/curriculum/challenges/english/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804db.md b/curriculum/challenges/english/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804db.md index 9d903089234..de55c035ef5 100644 --- a/curriculum/challenges/english/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804db.md +++ b/curriculum/challenges/english/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804db.md @@ -7,7 +7,15 @@ dashedName: step-43 # --description-- -To prevent a user from submitting your form when required information is missing, you need to add the `required` attribute to an `input` element. There's no need to set a value to the `required` attribute. Instead, just add the word `required` to the `input` element, making sure there is space between it and other attributes. +To prevent a user from submitting your form when required information is missing, you need to add the `required` attribute to an `input` element. + +Here is an example of an input field with the `required` attribute: + +```html + +``` + +There's no need to set a value to the `required` attribute. Instead, just add the word `required` to the `input` element, making sure there is space between it and other attributes. # --hints--