• spark12

    (@spark12)


    I want to make a URL that i typed into my blog an active link. I was wondering how i can do this. Currently my page looks like this:

    Lately we’ve been trying to search for people at http://www.google.com

    I want to have http://www.google.com a hyperlink which opens up in a new window. Can anybody help me with this? I’m sure it’s an easy fix. Thanks.

Viewing 10 replies - 1 through 10 (of 10 total)
  • vkaryl

    (@vkaryl)

    You can use <a href="http://www.google.com/">Google</a>. Should work.

    Thread Starter spark12

    (@spark12)

    That works, but it opens it in the same window. How do i open it in a new window? thanks.

    vkaryl

    (@vkaryl)

    You can use the deprecated target tag (this will NOT validate for xhtml!): <a href="http://www.google.com/">Google</a>.

    Or you can use one of the onclick strategies (I don’t actually know how they are written in the xhtml – someone else here probably does), which I believe will validate.

    [oops. forgot to escape the code. sorry]

    Moderator James Huff

    (@macmanx)

    Volunteer Moderator

    I think for the deprecated tag that would work, Vkaryl meant to post:

    <a href="http://www.google.com/" target="_blank">Google</a>

    vkaryl

    (@vkaryl)

    I did macmanx, wonder why it didn’t show after I escaped it? Oh well – thanks for the catch!

    dixiegrilley

    (@dixiegrilley)

    I’ve been able to create a link in my blog, but how do I color the text, or underline it, to make it appear as a link? Yikes!

    vkaryl

    (@vkaryl)

    Find the relevant css element for the area in which you want to place a link (the lists in the sidebar etc. – as well there’s usually an overall a:active, a:hover etc. section in the css), and add into the declaration section text-decoration: underline;.

    For changing the color of a link you’ll have to change the color: #000000; or whatever it is in the link element css to whatever color you want to use.

    Can I use also this for making an URL in WP: [url=http://www.forexample.com]For Example[/url]?
    I try that in de WP demo but it don’t work.

    No, WP is not a bulletin board. Use regular HTML tags as described above.

    These tags are easier to use. I have a weblog on a free portal yet where they are using this tags [url= etc].

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘How do i make a URL an active link?’ is closed to new replies.