Click here to view more cat photos.
- +Things cats love:
- cat nip
form
element, and add the action="https://freecatphotoapp.com/submit-cat-photo"
attribute to the form element.
+
+Nest the existing input element inside a form
element and assign `"https://freecatphotoapp.com/submit-cat-photo"` to the action
attribute of the form
element.
+
form
element, and add the actio
```yml
tests:
- - text: Your text input element should be nested within a form
element.
- testString: assert($("form") && $("form").children("input") && $("form").children("input").length > 0);
+ - text: The existing input
element should be nested within a form
element.
+ testString: const inputElem = document.querySelector('form input'); assert(inputElem.getAttribute('type') === 'text' && inputElem.getAttribute('placeholder') === 'cat photo URL');
- text: Your form
should have an action
attribute which is set to https://freecatphotoapp.com/submit-cat-photo
testString: assert($("form").attr("action") === "https://freecatphotoapp.com/submit-cat-photo");
- text: Your form
element should have well-formed open and close tags.
@@ -76,9 +78,9 @@ tests:
CatPhotoApp
Click here to view more cat photos.
-
+
-
+
Things cats love:
- cat nip