Cat Photos
Click here to view more cat photos.
Cat Lists
Things cats love:
- cat nip
- laser pointers
- lasagna
Top 3 things cats hate:
- flea treatment
- thunder
- other cats
--- id: 5ef9b03c81a63668521804d6 title: Part 34 challengeType: 0 dashedName: part-34 --- # --description-- Now you will add a web form to collect information from users. After the `Cat Form` heading, add a `form` element. # --hints-- Your `form` element should have an opening tag and closing tag. You may be missing one or both of the required tags, or have them in the wrong order. ```js assert(document.querySelector('form') && code.match(/<\/form>/g)); ``` Your `form` element tags are not in the correct order. ```js const noSpaces = code.replace(/\s/g, ''); assert(noSpaces.indexOf('
')); ``` The `form` element nested in the last `section` element should be below the `h2` element. You have the `h2` element and the `form` element in the wrong order. ```js assert(document.querySelector('form').previousElementSibling.nodeName === 'H2'); ``` The `form` element should have no content. Remove any HTML elements or text between the `form` element's tags. ```js assert($('form')[0].innerHTML.trim().length === 0); ``` # --seed-- ## --seed-contents-- ```htmlClick here to view more cat photos.