Learn HTML by building a cat photoapp-step 41

question 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.

<input type=“text” name=“catphotourl” placeholder=“cat photo URL” required">

You have a stray quotation mark.

If you would like help with the challenges, please click on the help icon which appears when you have failed to submit the correct code three times. It will be much easier to help that way, as it creates a forum post with your full code and a direct link to the challenge.

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.