Click here to Skip to main content
15,889,931 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
So I was learning how to make a website but while I was doing that I added a link to a paragraph. The problem was that I later added a heading but the last link on the paragraph added itself to my new heading and I don't know how to remove it.
Here's what the code I made looks like:

<div>
           <p>This is the main website I used to learn what I know now:<a href="https://www.w3schools.com/html/default.asp" target="_blank"/>W3schools</p>
       </div>
   </main>
   <hr>
       <article>
           <section>
               <h2>What I've learned.</h2>
                   <p><a href="https://www.youtube.com/embed/watch?v=dQw4w9WgXcQ" target="_blank"/>This is what you call an iframe.
                   If it does not work, click me.</p>
                   <iframe width="40%" height="50%"
                       src="https://www.youtube.com/embed/watch?v=dQw4w9WgXcQ">
                   </iframe>
           </section>
       </article>


What I have tried:

I've looked it up so many times and even went to the second page and there are still no answers. I tried to separate them but it's still there and I have no clue how to solve it. Any help I can get is appreciated.
Posted
Updated 16-Nov-18 7:17am

1 solution

Your question is very unclear; however, just looking at your code I can see that you never close off your a tag.

It should be
<a href="someurl">Text I want user to see linked</a>

You don't have the closing a tag.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900