The instructions state to " 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." however, where to add the _blank value is unclear. I’m not sure where to add this in… adding it to the “anchor element’s opening tag” leads me to think rightaround the <a href but every place I’ve tried is incorrect
**My code so far:
<p>Click here to view more <a_blank href="https://freecatphotoapp.com">cat photos</a>.</p>
I’ve edited your post 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.
I’m not trying to be sarcastic, I’m just trying to understand where to add the _blank. Rather than comment what I’m not doing in a post that’s seeking information, would you mind providing me with the information that I’m seeking? Step 8 is not helpful for me, I’m just not understanding where to put this
This img element has a src attribute set equal to the value of "https://www.your-image-source.com/your-image.jpg". You do literally the exact same thing, but you need to use a target attribute and set it equal to _blank.
Or, if you want a different example, its like how you set the href attribute here:
href="https://freecatphotoapp.com"
myAttribute="someValue" is the syntax you’ve been using - now you need to use the same syntax with a different attribute, the target attribute.
I’m hoping this is close <target _blank="https://freecatphotoapp.com"> <p>Click here to view more <a href="https://freecatphotoapp.com">cat photos</a>.</p>
@cgall219
It might help to revisit how HTML tags are structured, especially around nomenclature.
HTML <tags> have things called attributes attached to them, you can think of them like options or additional information relating to the tag it is attached to.
E.g. <img> is a type of HTML tag, we can call it an img tag: img HTML tags have an attribute called src attached to them. The img tag with the src attribute attached to it would look like this: <img src>. - technically, the img tag now has an empty src attribute. To make this valid HTML markup, we would need to change the attribute’s value to look something like this <img src="picture_name.jpg">. Does this clear up your confusion?