Learn HTML by Building a Cat Photo App - Step 14

*Tell us what’s happening:
What is the meaning of these sentences?
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.

Your code so far

`type or paste code here`
```html
<html>
  <body>
    <main>
      <h1>CatPhotoApp</h1>
      <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.">
    </main>
  </body>
</html>

```html
<html>
  <body>
    <main>
      <h1>CatPhotoApp</h1>
      <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.">
    </main>
  </body>
</html>

Your browser information:

User Agent is: Mozilla/5.0 (X11; CrOS x86_64 14989.107.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/105.0.0.0 Safari/537.36

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

Link to the challenge:

can try and fix on own not want give answer but here can be information attribute can be things already put like href src class id and value can be typed after here target can be name for your attribute code and than can _blank be your value for put after add to your a element which can be mosty for websites and person can click on your website the target and black can open new computer page when area for a can be clicked by computer write code not worry about what the names mean make code and than check how can work in preview hope can help fix code thank you take care

target is an attribute and _blank is its value that you need to insert in your achor tag, attribute is an additional information to the element just like class, id, alt ect… good luck on your coding journey

can you explain more?

thank you can be kind ask for explain now if can need help with code
first code can be ok start with just view element a already put in element a can type href href can be attribute than put the website name in lines quote that can be your value you put for your code now can do same for question put here now target can be attribute and _blank can be value and try and do same as did for href and put inside of element a make sure use your space key between putting new attributes inside a element hope this can help a little if not than can send message again and can try explain from what you have tried on your code thank you take care gn gm fren when you type it can understand is simple try not look for answer on computer and do yourself take care

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