One of my <h2> headers is turning into a link (not purposefully)

Tell us what’s happening:
Sorry for the messy code/page I haven’t really gotten into the CSS portion just yet. I have an image linked to a project of mine, but it’s also linking an

to the same area, despite closed tags and closed divs on both elements. Code is below but I will also link to the project itself.

Your code so far

    <div>
      <a href="https://codepen.io/jadesbeach/full/oNNmaoN"
         target="_blank"
         class="project-tile" />
      <img src="https://upload.wikimedia.org/wikipedia/commons/thumb/6/61/HTML5_logo_and_wordmark.svg/2000px-HTML5_logo_and_wordmark.svg.png"
           alt="HTML logo"/>
  </div>
    </div>
</section>
 
  
  
<!-- Footer will be here-->
  
<div>
  <h2> Let's set something up! </h2>
</div>

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.108 Safari/537.36.

Challenge: Build a Personal Portfolio Webpage

Link to the challenge:

Last HTML project, could not post the link since I linked my project as well.

Just realized I accidentally posted the whole code, I’m a mess, but I’ll comment it on the project itself to show where I’m having the problem.

Hi! Welcome to the freeCodeCamp community :slight_smile:

I took a look at your project, and it looks like you’re not properly closing your <a> tags. Here’s a link to how to use them: https://www.w3schools.com/tags/tag_a.asp

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.

See this post to find the backtick on your keyboard. The “preformatted text” tool in the editor (</>) will also add backticks around text.

Note: Backticks are not single quotes.

markdown_Forums

Oh oops! Thank you, I was pretty tired when I wrote the code!

Thank you! I could have sworn I used the backtick but my keyboard must be formatted weird!

I am guessing your issue is solved?
P.S.
Black text on a black background is not a good idea, I had to highlight to read anything

Yes it’s solved! I know, I hadn’t touched the CSS yet aside from adding that textured background, it will be much different once I’m done, I just wanted to fix the link issue first, it was bothering me pretty bad lol