Cat Photos
--fcc-editable-region--Click here to view more cat photos.
--fcc-editable-region--
--- id: 5dfa2407b521be39a3de7be1 title: Step 13 challengeType: 0 dashedName: step-13 --- # --description-- Add a `target` attribute with the value `_blank` to the anchor (`a`) element's opening tag, so that the link opens in a new tab. # --hints-- Your `p` element should have a nested anchor (`a`) element with the text `cat photos`. You may have deleted it or have a typo. ```js const anchor = $('p > a'); assert( anchor.length && anchor[0].innerText.toLowerCase().replace(/\s+/g, ' ') === 'cat photos' ); ``` Your anchor (`a`) element does not have a `target` attribute. Check that there is a space after the opening tag's name and/or there are spaces before all attribute names. ```js assert(document.querySelector('a').hasAttribute('target')); ``` The value of the `target` attribute should '\_blank'. You have either omitted the value or have a typo. Remember that attribute values should be surrounded with quotation marks. ```js assert(document.querySelector('a').getAttribute('target') === '_blank'); ``` # --seed-- ## --seed-contents-- ```html
Click here to view more cat photos.
--fcc-editable-region--