Comparison of the Example links

Pointers

  • Example 1.<a href="#tables">the tables</a>
  • Example 2.<a href="http://Fantasy-sci-fi-vision.com/science-fiction-prophesies-product-reviews/kobo-ereader-review/#tables">product specifications</a>
  • Example 3.<a href="#top">Read with Kobo</a>

If you look at the pointer links you can see the basic format.

Initially we have the start of the anchor tag. For example 1 and 3 this includes the hash tag while example 2 includes the Page or Post URL and then the hash tag.

  • 1.<a href=“#tables”>
  • 2.<a href="http://Fantasy-sci-fi-vision.com/science-fiction-prophesies-product-reviews/kobo-ereader-review/#tables">
  • 3.<a href="#top">

Then we put in the Text we need to click on to get to where we want to go followed by the closing anchor tag. Make sure the text is meaningful. For example if I click on ‘the tables’ and my anchor is placed just before the destination text Tables then that is where I will go to.

  • 1.the tables</a>
  • 2.product specifications</a>
  • 3.Read with Kobo</a>

Now let us look at the target end of the links. Note that in these examples two of the targets, examples 1 and 2, are going to the same place, one from inside that page and one from a separate post.

Targets

  • Example 1.<a name="tables"></a>
  • Example 2.<a name="tables"></a>
  • Example 3.<a name="top"></a>

If you look at the target links you can again see the basic format.

Initially we have the start of the anchor tag. Note that he href= has been replaced with name and the # has been dropped.

  • 1.<a name="tables">
  • 2.<a name="tables">
  • 3.<a name="top">

And then the closing anchor tag </a>. Note that I have included no text between the ><. When you go to the top of a page you don’t need it as you don’t need some gratuitous words to show where you have landed. Also I found, as the anchor for the other two links are right in front of where I want to end up and the hash tag matches or nearly matches the following text I don’t put anything here or you end up with more gratuitous words.



Join the Discussion
Write something…
Recent messages
Prestones Premium
Hi Helen -

I just did a similar blog at - amazing!

I'll go back and edit the blog to send folks this way!

One other note - I believe that since the "#anchor text" is part of a link, the name following the hashtag has to begin with a letter, followed by letters, digits, hyphens, or underscores - no spaces are allowed.

Perhaps you could verify my suspicion?

Great work!

Dennis
Reply
HelenpDoyle Premium
Just added your blog link to this.
Reply
JSakanee Premium
Wow. Thanks, Helen.
This will be good for some of my long list posts.
Reply
Shawn Martin Premium
Nice work!
Reply
JAHBOBCLATO Premium
Back in 19901, I used to do that in Old School HTML. it works well in PHP too.
Reply
HelenpDoyle Premium
OK so if you are implying I'm a dinosaur you are right! If the old ways work why change unless you find something new and better. I am always agreeable to learning. So what is PHP?
Reply
JAHBOBCLATO Premium
Naww , not calling you names. You reminded me of my beginnings.

Just picking on you.

-----------------------------------------
Remember "Geocities.com"????
PHP is one of the new web programming languages that Wordpress is written in.
--------------------------------------------------------

Like JAVA, CSS....stuff like that.
If you peek into the text mode, you see what PHP looks like.

If you have taken a class in C, C++, or c#( C sharp), you will be familiar with the structure of PHP.

Honestly, I liked the old way, but since technology increased, it was developed as a scripting language best suited for to server-side web development.
Reply
HelenpDoyle Premium
Now Robert, I started programming with Fortran and that's really an old dinosaur. Then Pascal for engineering programming. Then I ran away and hid from coding until now. When I look at coding now it looks like hieroglyphics to me.
Reply
JAHBOBCLATO Premium
eeeeee... i did tooo. Fortran 77.
I saw pascal being tutored.

I used to be a computer tutor myself.
I did fortran 77 get this.. on the old Boroughs terminals...in 1987, VB 6 in 1998.
I don't feel so bad now.
OOhhh
my first """computer""" was a TRASH 80.
Get it..... ??? TRSash80

1982
Reply
JAHBOBCLATO Premium
nice to learn this new term.. Jump Linking.
Reply
Top