Jump to content

Websites that use #tag to focus on a part of a page

RankUpGamers

I've seen many websites use this, and I've used it in the past. I am using my school's crappy builder tools and only have HTML access to specific parts of the page, and my old style of doing it won't work. Does anyone know of a tutorial, because google didn't seem to offer up any ideas. Thanks!

Come fold while not gaming! http://linustechtips.com/main/forum/37-foldinghome-boinc-and-coin-mining/

Gaming Rig: i7-9700k 5GHz all core, GTX 1070, 16GB TridentZ, Buncha ssds...

Stream Machine: R7 1700, GTX 660 (lol), 16GB Corsair Somethingoranother, 120 GB SSD i've had since 2012. 

Mobile Workstation: MSI-ALPHA :R7 3750H, RX 5500M, 16GB of some ram, 500GB SSD.

 

 

 

Link to comment
Share on other sites

Link to post
Share on other sites

Do you mean HTML anchors? They're used to link to a specific part of the page. You make them like this:

<a name="whatever"></a><p>Some important piece of content</p>

and make links that reference them like this:

Click <a href="#whatever">here</a> to go to some important piece of content
Link to comment
Share on other sites

Link to post
Share on other sites

I haven't seen name used before, but id also works

<div id="anchor"><a href="#anchor">When you click this it will jump to the top of the div</a></div><a href="#anchor">It doesn't have to be within the div to work either</a>

HTTP/2 203

Link to comment
Share on other sites

Link to post
Share on other sites

 

I haven't seen name used before, but id also works

 

 

You are right, you should probably use id, even though name will work. I had a bit of a brain fart and just took what was written on the page I linked to as correct

Link to comment
Share on other sites

Link to post
Share on other sites

Use can use ids to do this.. 

e.g 

<div id="idtag"></div>

<p id="anotherid"></p>

 

A good example in on the wiki page for computers http://en.wikipedia.org/wiki/Computer. They have made a span with the id "History_of_computing"

So going to http://en.wikipedia.org/wiki/Computer#History_of_computing will scroll you down to the span.

CPU: i7 4770k | GPU: Sapphire 290 Tri-X OC | RAM: Corsair Vengeance LP 2x8GB | MTB: GA-Z87X-UD5HCOOLER: Noctua NH-D14 | PSU: Corsair 760i | CASE: Corsair 550D | DISPLAY:  BenQ XL2420TE


Firestrike scores - Graphics: 10781 Physics: 9448 Combined: 4289


"Nvidia, Fuck you" - Linus Torvald

Link to comment
Share on other sites

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

×