Target attribute

how do i add a target attribute? please find below my code

<p>Click here to view more <a href="" "_blank">cat photos</a>.</p>

You add it just like you add any other attribute, such as the href attribute, using the format:


Where you replace name with the name of the attribute (target in this case) and value with the value you want to set the attribute to.

I’ve edited your code for readability. When you enter a code block into a forum post, please precede it with a separate line of three backticks and follow it with a separate line of three backticks to make it easier to read.

You can also use the “preformatted text” tool in the editor (</>) to add backticks around text.

See this post to find the backtick on your keyboard.
Note: Backticks (`) are not single quotes (').

HI @Krash !

Welcome to the forum!

In the future, it is best to use the Ask for help button in the challenge which will generate your code with the challenge link. :+1:

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