Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialNicholas Wallen
12,278 PointsWhy are we calling it 'target'?
She said "or in our case, we will use 'target'".
Why though?
2 Answers
Steven Parker
231,269 PointsWhen using the attribute
method, the first argument is the name of the attribute, and "target" is the name of the attribute that will be changed.
Setting the "target" attribute to "_blank
" tells the browser to open the link in a new tab or window, and that's the behavior this code is intended to achieve.
maya sophie
5,754 Pointsis 'target' because you will click random on one of links and target follows your click = I click this link or that link(target = what you click only)...in simple common words:)))