HTML & CSS
After a long layoff I am back editing my site! I have the new base finished. I need to make a word of text a link to another part of the page as well as change colors when hovering. I have done this with buttons but not text before. Thank you for your help!
Do you mean a named anchor? linking to an id in the page?
<p><a href="#example">Example link</a></p>
I'm not sure exactly. One of the words on a page needs to link to another page on the site. for example: sign up here. Here is supposed to be a link to the sign up page.
Then you're just wanting a regular link, the href attribute can have a relative or absolute URL
This is a <a href="/example.html">link relative to site root</a> and here's an
<a href="http://google.com/">absolute link</a>.
ah that makes sense. Does it matter if the link is before or after the word to be linked?
It "wraps around" it, so to speak:
<font color='"#FF0000"'><a href="/example.html"></font><font color='"#0000CD"'>Word(s) to be linked</font><font color='"#FF0000"'></a></font>
This topic is now closed. New replies are no longer allowed.