dcsimg
www.webdeveloper.com
Results 1 to 7 of 7

Thread: Site address added to external link.

  1. #1
    Join Date
    Sep 2011
    Posts
    4

    Question Site address added to external link.

    Hi all,

    I am trying to write a website. When I put the site live the site address appears infront of any external link.

    so, in dreamweaver I have this code;
    href="http:/www.youtube.com/watch?v=zzbGIskSiJE"

    but when live it appears as;
    http://www.simonshillito.co.uk/www.y...?v=zzbGIskSiJE

    You can see it happening yourself;
    http://www.simonshillito.co.uk/multimedia/mindex.htm
    on the source here the href is as it should be.

    I have no idea why this is happening, can someone please help.

  2. #2
    Join Date
    Sep 2011
    Posts
    4
    it does this in firefox, ie & chrome but not safari.

  3. #3
    Join Date
    Apr 2010
    Location
    Salem,Ma
    Posts
    623
    most likely you just need to remove the <base> tag.

    on another note. Your html needs some serious help. you have over 10 divs with the same id. 127 errors on the validator. -

    http://validator.w3.org/check?uri=ht...Inline&group=0

  4. #4
    Join Date
    Sep 2011
    Posts
    4
    Removing <base> does not seem to have fixed the problem.

    As for all the errors...you can tell I dont know what I'm doing, I've never done HTML before and am making it up as I go along.

  5. #5
    Join Date
    Apr 2010
    Location
    Salem,Ma
    Posts
    623
    hmm. oh also your urls are all started with http:/ and they shoudl be http://

  6. #6
    Join Date
    Sep 2011
    Posts
    4
    That fixed it, what a dumb mistake.

    Cheers, much appreciated.

    Any really stupid things I'm doing?

  7. #7
    Join Date
    Apr 2010
    Location
    Salem,Ma
    Posts
    623
    1. the ID thing. ID's should always be unique( only used once) while multiple elements can have the same class.

    2. you need to declare a proper doctype

    3. that is not how you add a favicon to a page see http://www.htmldog.com/reference/htmltags/head/

    4. Stop using inline style rules, the 80's are over man . you need to start learning hwo to use CSS properly : Start here: http://www.htmldog.com/guides/cssbeginner/

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles