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
Locked
Howto
Banned
Posts: 70
Joined: Thu May 12, 2011 12:03 pm

Html difficulty

Post by Howto »

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 »

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 »

okay got it thanks!
Locked

Return to “Programming”