Jump to content
Stef's Coding 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

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

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...