Advertising (This ad goes away for registered users. You can Login or Register)

Html difficulty

Programming on your favorite platform, for your favorite platform? Post here
Post Reply
Howto
Banned
Posts: 70
Joined: Thu May 12, 2011 12:03 pm

Html difficulty

Post by Howto » Thu Dec 06, 2012 8:24 pm

Hello guys!

Well i know html is not a programming language but i didn't know where to make the thread so i made it here and moderators will move it if they think it's necessary

So, i am studying html for a week now and i find a difficulty in understanding what the "name" attribute is which is used in the link element( that means <a>)
I saw this and w3schools(this is where i learn html) says it specifies the name of an anchor.

Which means?
Please explain me and if it's possible make an example for me.

Thanks
Advertising

Different55
Posts: 130
Joined: Thu Jun 07, 2012 9:28 pm

Re: Html difficulty

Post by Different55 » Thu Dec 06, 2012 11:49 pm

Ok, so let's say you have this:

Code: Select all

<h1><a name="LOLBRO">LOLBRO</a></h1>
Let's say this code is in a file called index.html. So then if you did this:
website.com/index.html#LOLBRO then it would automatically scroll down so that the LOLBRO link would be at the top of the screen.
Advertising

Howto
Banned
Posts: 70
Joined: Thu May 12, 2011 12:03 pm

Re: Html difficulty

Post by Howto » Fri Dec 07, 2012 7:06 pm

okay got it thanks!

Post Reply

Return to “Programming”