webmanz Posted November 27, 2017 Report Posted November 27, 2017 I have everything identical except for: <p>Check out a list of <a href="my-friends.html">my friends.</a></p> My results show the whole sentence hyperlink instead of just "my friends" as in video. Skip to 3.27 of Stef's video: https://www.youtube.com/watch?v=RYwoM8JVG38&index=19&list=PL4WWE_tMSca2ud8vp2cdtLsv3yADiJPiR This is what I typed in Sublime. <!doctype html> <html> <head> <title>Home Page</title> </head> <body> <p>Welcome to my personal <a href="index.html"> home page.</p> <p>Check out a list of <a href="my-friends.html">my friends.</a></p> <p>Check out a list of <a href="my-plans.html">my friends.</a></p> <p>Check out a list of <a href="my-work.html">my friends.</a></p> <p>Check out a list of <a href="my-friends">my friends.</a></p> </body> </html> What did I do wrong? Quote
webmanz Posted November 27, 2017 Author Report Posted November 27, 2017 my friends was hypherlinked before I added <a href=""</a> to it. After I added <a href=""</a> , as I said before the whole sentence became hyperlinked. Quote
Bake76 Posted November 27, 2017 Report Posted November 27, 2017 Hi webmanz, you forgot to close the first <a>. The next </a> is after "my friends" so the whole sentence before it is shown as a link. It should be like this: <p>Welcome to my personal <a href="index.html"> home page.</a></p> 1 Quote
webmanz Posted November 27, 2017 Author Report Posted November 27, 2017 (edited) 12 hours ago, Bake76 said: Hi webmanz, you forgot to close the first <a>. The next </a> is after "my friends" so the whole sentence before it is shown as a link. It should be like this: <p>Welcome to my personal <a href="index.html"> home page.</a></p> Thanks Bake76 Edited November 27, 2017 by webmanz Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.