This is the original code available when you begin the step:
<p>Click here to view more <a href="https://freecatphotoapp.com">cat photos</a>.</p>
The step asks you to add the attribute
target to your
anchor element, and set the value of this new attribute to
_blank. You say you haven’t been taught how to use attribute targets, that is partly true. In previous steps you have already dealt with attributes:
<img src="https://cdn.freecodecamp.org/curriculum/cat-photo-app/relaxing-cat.jpg" alt="A cute orange cat lying on its back.">
alt are attributes. Attributes have different uses, in this case
src sets the ‘source’ of the image the
img element should present, and
alt sets the alternate text that should replace the image, if there is a problem loading it or finding it (e.g, a case where the
src attribute is incorrect or leads to nothing).
href attribute that you added in a previous step sets the address to which the element within your
anchor element should direct. In other words, what website it should lead to.
target attribute sets where it should open said website. When assigned the value ‘_blank’, it will open in a new tab. You can learn more about the
target attribute here: HTML a target Attribute. This is a w3chools page, generally speaking w3schools is a really useful resource you can use and research by yourself when there is something you don’t understand, such as this case.
In order to know how to add the attribute
target to your
anchor element, and set its value to
_blank to complete this step, let’s look at what the correct syntax for an attribute is:
As you can see, this is the syntax you followed in a previous step, when adding the
href attribute to your
<a href="https://freecatphotoapp.com">cat photos</a>
It’s possible to add more than one attribute to an element. To do this you must simply separate them with a space. When an element has more than one attribute, their order does not matter.