Jump to content

linking

- - - - -

This topic has been archived. This means that you cannot reply to this topic.
24 replies to this topic

#1
kenex

kenex

    Learning Programmer

  • Members
  • PipPipPip
  • 32 posts
pls how can one link between html files,which of the code?assuming u want link from webpage1 to webpage2.thanx

#2
Orjan

Orjan

    Writes binary right handed and hex left handed

  • Moderators
  • 3,299 posts
you mean a normal link? Write this in webpage1.html, ofcourse, replace webnage2.html with the correct name of the page, and the "link to page 2" with the text you want to make the link.

<a href="webpage2.html">link to page 2</a>

if you want to link to a totally different website, you simply do this:

<a href="http://www.newdomain.com/webpage2.html">link to page 2</a>


#3
Xav

Xav

    Writes binary right handed and hex left handed

  • Members
  • PipPipPipPipPipPipPipPipPip
  • 13,118 posts
You may want to consider some CSS to make the links look more attractive, as the default blue ones are quite grotesque. Try this for a start:

[HIGHLIGHT=CSS]
a:link, a:visited
{
text-decoration: none;
color: *NORMAL LINK COLOUR HERE*;
}
a:hover
{
text-decoration: underline;
color: *HOVER LINK COLOUR HERE*;
}
[/HIGHLIGHT]
Jordan said:

Good members, like yourself, stick around and post for ages to come!
Mr. Xav | Blog | Forums

#4
TheCEOandPresident

TheCEOandPresident

    Learning Programmer

  • Members
  • PipPipPip
  • 96 posts
I asked the same question a couple days ago this must be a very popular topic lol

#5
Xav

Xav

    Writes binary right handed and hex left handed

  • Members
  • PipPipPipPipPipPipPipPipPip
  • 13,118 posts
A pretty simple question at that, I must say.
Jordan said:

Good members, like yourself, stick around and post for ages to come!
Mr. Xav | Blog | Forums

#6
Anju

Anju

    Newbie

  • Members
  • Pip
  • 3 posts
you can use anchor text for it and use anchor tag for it :)

#7
ReekenX

ReekenX

    Programmer

  • Members
  • PipPipPipPip
  • 134 posts
If you have any questions about HTML tags, visit w3schools website.
www.jarmalavicius.lt | www.github.com/reekenx | www.twitter.com/reekenx

#8
Orjan

Orjan

    Writes binary right handed and hex left handed

  • Moderators
  • 3,299 posts
or why not post questions here at codecall, and we'll try to do our best to answer...

#9
Guest_Jordan_*

Guest_Jordan_*
  • Guests
No question is too simple. Post any that you have here and we will try to answer, as Orjan states.

#10
Xav

Xav

    Writes binary right handed and hex left handed

  • Members
  • PipPipPipPipPipPipPipPipPip
  • 13,118 posts
Lots of questions are too simple. One Google search would have found the answer, without the need for a whole thread created here.
Jordan said:

Good members, like yourself, stick around and post for ages to come!
Mr. Xav | Blog | Forums

#11
Orjan

Orjan

    Writes binary right handed and hex left handed

  • Moderators
  • 3,299 posts
No, no questions are too simple. it's just a matter of attitude to new users, shall we chase them away with rude answers, or shall we care for them and maybe get them to become part of our community?

#12
Guest_Jordan_*

Guest_Jordan_*
  • Guests
I prefer the second option.