PDA

View Full Version : Could someone please tell me these codes? +REP



myke
12-11-2006, 03:37 PM
Hey, + Rep if you can help me.

The code which will take you to a piece of text on that page for e.g.

'Habbo' and you click it and it scrolls to that word.

and the code to take you back to the top. like Back to top


bomb-head (forum moderator) - Moved to coding.

Jackboy
12-11-2006, 03:39 PM
<a href="pagename.html#habbo>Habbo</A>


AND U MUST HAVE THIS ON YOUR PAGE:



<div name="habbo">
Habbo stuff goes here ok
</DIV>

omgDAN!
12-11-2006, 03:44 PM
<a href="#habbo">Skip to Habbo Section</a>

<a name="habbo">This is the habbo section</a>

Mentor
12-11-2006, 04:07 PM
<a href="#habbo">Skip to Habbo Section</a>

<a name="habbo">This is the habbo section</a>
Exactly - the #ed link means your linking to the anchor within the page, the anchor which doesnt have a link attached and only a name, is what you link to :)

Jackboy
12-11-2006, 04:08 PM
divs would work too..

Heinous
12-11-2006, 09:28 PM
<a href="pagename.html#habbo>Habbo</A>
AND U MUST HAVE THIS ON YOUR PAGE:



<div name="habbo">
Habbo stuff goes here ok
</DIV>



</div> not </DIV>

>_>


divs would work too..
Or any element.

myke
12-11-2006, 09:40 PM
thanks guys got to spread

Jackboy
12-11-2006, 09:40 PM
Rofl!

Who cares bout capitals

omgDAN!
12-11-2006, 09:42 PM
Rofl!

Who cares bout capitals

I was just thinking that

PERFECTIONIST!

Mentor
12-11-2006, 09:47 PM
Rofl!

Who cares bout capitals

anyone who uses xhtml?

Heinous
12-11-2006, 09:47 PM
Rofl!

Who cares bout capitals
The World Wide Web consortium do.

XHTML 1.x fails if you use ANY capitals in tags.

So, you were saying again?

Jackboy
13-11-2006, 05:52 AM
when i was new to html i used capitals all the time.

They work..

omgDAN!
13-11-2006, 07:28 AM
Does it matter about some stupid test.
As long as a site works in the 4 popular browsers then it doesn't matter really.

Jackboy
13-11-2006, 03:42 PM
Exactly, its not like anyones paying me to code it fgs.

Heinous
14-11-2006, 12:10 AM
Exactly, its not like anyones paying me to code it fgs.
But yet you CLAIM to be a "web developer", if you have that attitude, you're not.

Jackboy
14-11-2006, 05:50 AM
rofl.

Your comments are invalid ;P

You have never seen an example of my work so you can not give your opinion really.

Just because i did a little html script with capitals that WORKS, you go on about XHTML 1.x

Ok? Its not like this dudes site is going to be famous lol

Its probably some habbo fansite :)

nets
14-11-2006, 06:21 PM
rofl.

Your comments are invalid ;P

You have never seen an example of my work so you can not give your opinion really.

Just because i did a little html script with capitals that WORKS, you go on about XHTML 1.x

Ok? Its not like this dudes site is going to be famous lol

Its probably some habbo fansite :)
the point is you didn't realise, which is funny. i don't care, nor does anyone else, whether that guy's site validates.

Jackboy
14-11-2006, 08:24 PM
Lol ok if u say so

Heinous
14-11-2006, 09:10 PM
the point is you didn't realise, which is funny. i don't care, nor does anyone else, whether that guy's site validates.
I don't care if it validates either, but it's not good giving a newbie (to webdev) false information. Or, in this case, half false.


rofl.

Your comments are invalid ;P

You have never seen an example of my work so you can not give your opinion really.

Just because i did a little html script with capitals that WORKS, you go on about XHTML 1.x

Ok? Its not like this dudes site is going to be famous lol

Its probably some habbo fansite :)
My comments are invalid why? Because it's obvious I know more than you in this field? I don't need to see your work; you proved you don't know anything about webdev if you think <div> and </DIV> work together. Care to know why they don't? One, you should NEVER have ANY capitals in tags, this includes, but not limited to, "onLoad", you need to have "onload".

It WORKS, until a browser renders it wrongly, and then he probably won't even know why, because he took the advice from a "web developer", a wannabe one at that. :)

It's funny when children claim to be web developers, but can't even get one tag correct.

Jackboy
15-11-2006, 05:45 AM
You probably do know more than me in this field..

I don't specialise in html do i? Im not really into it immensely, just do the basic stuff.

But anyway the point is i just quickly typed something to try and help out, and it works.

Heinous
15-11-2006, 11:48 AM
You probably do know more than me in this field..

I don't specialise in html do i? Im not really into it immensely, just do the basic stuff.

But anyway the point is i just quickly typed something to try and help out, and it works.
You're a web developer but just "do the basic stuff" in HTML? How does that work exactly?

Hey, I have no problem that it was quick, but you didn't accept a correction, you shot it down with a load of crap.

Jackboy
15-11-2006, 03:59 PM
Lol ok lets end this now :P

Im more of a php web developer any how lol

ScottDiamond
15-11-2006, 08:58 PM
Why are you arguing over HTML and XHTML? :p

I thought that "onLoad" worked xS

Thanks for telling me it has to be "onload" :)

Heinous
16-11-2006, 04:53 AM
Lol ok lets end this now :P

Im more of a php web developer any how lol
Sure. But just remember, php is useless if it can't send anything to the browser. ;)

Why are you arguing over HTML and XHTML? :p

I thought that "onLoad" worked xS

Thanks for telling me it has to be "onload" :)
It works, but with the stricter doctypes it returns an error in validation. Because all tags must be all lowercase. Either works in any version of (X)HTML, but for 1.0 strict and 1.1 you need "onload".

Jackboy
16-11-2006, 05:29 AM
Sure. But just remember, php is useless if it can't send anything to the browser. ;)

Yeah spose u have a point rofl ;) :P

Want to hide these adverts? Register an account for free!