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!
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 trial
Davis Rousseau
6,670 PointsWhat tag is this?
Some one asked me about what tag is this? Saying they need to allocate the tag to a specific type. This is for a banner ad. I'm new to Javascript not sure how to answer this.
Here the Javascript I came up with thanks
<script type='text/javascript'> var img = new Image(); img.src = 'http://www.medline.com/media/assets/images/ads/Web-Ad-Gloves-Super-Rectangle-Ad-final.gif'; img.onclick = function() { window.location.href = 'http://www.aloetouch.com/request-samples.asp?cmpid=bid=PO:Aloetouch-Request-a-Free-Sample:BANNER'; }; document.body.appendChild(img); </script>
3 Answers

Kerel Lacy
8,474 PointsCould you put this in JSFiddle ?

Matt Monaco
2,563 Pointsas far as I know there is no "type" attribute for <img> tags list of img attributes: http://www.w3schools.com/TAGS/tag_img.asp
do they possibly want a data-type? i.e.
<img src="" data-type="" />

Davis Rousseau
6,670 PointsThanks they wanted a javascript tag