I’m trying to turn a picture into a link and I don’t know how to do that. I’ve tried everything I’ve learned so far (which isn’t much lol). Can you help?
tags often but not always come in pairs:
this is an opening paragraph tag <p>
this is a closing paragraph tag </p>
tags can go inside of other tags, often called ‘nesting’
the opening tag is where attributes are put.
attributes can do many things,
an href tells the browser where to go when a link is clicked,
a src attribute tells the browser where to find an image
your <img> tag with its atributes should be between an anchors opening and closing tag, (it should be ‘nested’ inside an anchor)
example of nesting
<header>
<h1></h1>
</header>
your href attribute should be inside the opening anchor tag, the same way your src attribute is inside the <img> tag