Links, just the page name or full url? ( 3 Views )
-
Hi All,
I was wondering when writing links in your pages is it better to use:
HTML Code:
<a href="http://www.site.com/page.html" title="Something">Something</a>
or
HTML Code:
<a href="page.html" title="Something">Something</a>
Does it make any difference?
Thanks,
Matt.
(selim, Malta)
no.
(gökhan, Gabon)
Quote:
Originally Posted by matt-
Does it make any difference?
|
Does it make a difference? Both links will work, so it's a no in that respect. But depending on the number of links on your page it could make a difference in your page size! The more text on your page the larger your file size will be (maybe only by 2k, but if both work ... why add the 2k?) Also, the shorthand will keep your code cleaner and easier to read. Oh, and no, it doesn't help your ranking to have the site in the link either.
(berk, Cape Verde)
I was only asking regarding search engine ranking/crawling, thought it might make some kind of a difference, thanks for the advice :)
(beyza, Cayman Islands)
The only thing you have to be careful about is when linking to your main page, don't use <a href="index.html"> but use the full url instead. Google doesn't know that http://www.domain.com and http://www.domain.com/index.html are actually the same site and as a result each will have a different PR, so in effect you'll be losing PR.
(tunahan, Yemen)
Ah, thats what I was expecting. Thanks for the tip
(ömer furkan, Antarctica)
It does matter actually.
Always use absolute links when you can. You won't get a ranking bonus. But with relative links confusion is possible and you could have pages left out of the index. It happens.
Absolute links are simply safer.
(sema, Libyan Arab Jamahiriya)
Quote:
Originally Posted by aspen
It does matter actually.
Always use absolute links when you can. You won't get a ranking bonus. But with relative links confusion is possible and you could have pages left out of the index. It happens.
Absolute links are simply safer.
|
sure. i'd agree with that. relative links aren't a good idea, especially when they start looking like ../../../widgets/widgets.php
however, as far as the searc engine is concerned, it won't make a difference in your ranking, as long as the link works.
(sercan, Puerto Rico)
OK, thanks for the advice all ;)
(sait, Slovenia)
Related Topics ... (or search in 1.720.883 topics !)
request.qs from the previous page url must be full url (4) links and images full url (2) how to get full url from html page? (4) get full page url without sub directories (3) full url of current page? (8) how do i get the full url to the current web page? (14) multiple links to same url on one page (18) making all links on a page include url params (7) the word "links" in your links page url (4)
copyright © 2007-2031 Pfodere.COM ( 6 Pfoyihuee Online )
|