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

      <a href=""
         class="project-tile" />
      <img src=""
           alt="HTML logo"/>
<!-- Footer will be here-->
  <h2> Let's set something up! </h2>

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:

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.


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?
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