Jump to content
Killersites Community
Sign in to follow this  
webmanz

Ch4 L4 hr tags video: my results differ, what did I do incorrectly?

Recommended Posts

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?

 

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

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>

 

  • Like 1

Share this post


Link to post
Share on other sites
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 by webmanz

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this  

×