Learn HTML by Building a Cat Photo App - Step 14

I don’t know how to add a target to the anchor
Please guide me.

I’m in step 14 of learning html

      <h2>Cat Photos</h2>
      <!-- TODO: Add link to cat photos -->

<!-- User Editable Region -->

      <p>See more <a href="https://freecatphotoapp.com">cat photos</a> in our gallery.</p>

<!-- User Editable Region -->

      <img src="https://cdn.freecodecamp.org/curriculum/cat-photo-app/relaxing-cat.jpg" alt="A cute orange cat lying on its back.">

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/ Safari/537.36

Challenge: Learn HTML by Building a Cat Photo App - Step 14

Link to the challenge:

You can add as many attributes as you need to an opening tag of an element by separating them with spaces. The syntax for adding attributes is attribute="value". In this case the attribute is target and the value is _blank.

how? please give specific instruction

Here’s an example of how to add multiple attributes to a single element:

<p class="bold" id="description" style="color:red;">This is a paragraph element with three attributes</p>

They all have the same syntax (attribute="value") and are separated with spaces.
So, add a target attribute with the value _blank to the anchor element in your challenge, using the same syntax.

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.