Click here to view more cat photos.
Things cats love:
- cat nip
- laser pointers
- lasagna
Top 3 things cats hate:
- flea treatment
- thunder
- other cats
input
element before your user has inputted anything.
You can create placeholder text like so:
<input type="text" placeholder="this is placeholder text">
input
elements are self-closing.
placeholder
value of your text input
to "cat photo URL".
placeholder
attribute to the existing text input
element.
testString: assert($("input[placeholder]").length > 0);
- text: You should set the value of your placeholder attribute to cat photo URL
.
testString: assert($("input") && $("input").attr("placeholder") && $("input").attr("placeholder").match(/cat\s+photo\s+URL/gi));
- text: The finished input
element should not have a closing tag.
testString: assert(!code.match(/input
element should have valid syntax.
testString: assert($("input[type=text]").length > 0);
```
Click here to view more cat photos.
Things cats love:
Top 3 things cats hate:
Click here to view more cat photos.
Things cats love:
Top 3 things cats hate: