Welcome to the Treehouse Community
Looking to learn something new?
Stanley Nkosi4,233 Points
Give the image tag a src attribute with a file path of" images/spain.jpg" Stanley
How do you give the image tag a src attribute with a file path of" images/spain.jpg".?
Jamie ReardonTreehouse Project Reviewer
An attribute tag needs to be within the opening tag of an element, like so:
Jonathan GrieveTreehouse Moderator 90,705 Points
An attribute is kind of like a special "setting" that you can give a HTML tag. 2 of the most common are "alt" and "src". In the main you'll use "src" for image tags and this is how you define a path.
It works like this
<img src="path/to/image.png" alt="Altternative text goes here" />
Now the type of file path used here is known as a relative file path. That means it's referring to the path from the location on of the current HTML document.