Forum Moderators: open

Message Too Old, No Replies

Linking style in html

Full address or shortened Html links

         

Nutty2k

6:07 am on Aug 31, 2021 (gmt 0)

5+ Year Member



Ive noticed that some websites use their full url in their html for links to images etc others just use the /folder/filename.

Is there a name for these two different styles and is one better in terms of seo than the other or not really as long as your uniformed through out your website.

Thanks

tangor

7:13 am on Aug 31, 2021 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Relative and declared. Or something like that. The smart way is to leave off the declared part since the relative will work anywhere you need it to.

robzilla

10:31 am on Aug 31, 2021 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Relative vs. absolute paths. No bearing on SEO either way, and you don't necessarily have to be consistent either -- it's up to you. Switching from absolute to relative paths will reduce the size of your HTML a little, and it's generally what I prefer using.

NickMNS

12:57 pm on Aug 31, 2021 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



The smart way is to leave off the declared part since the relative will work anywhere you need it to.

Some would argue the opposite. By leaving the declared part on it makes it more difficult to use the code if the content is scraped. But typically if you have the skills needed to write a scraper bot, you can likely write the code to search and replace a path.

As Robzilla said it makes no difference in terms of SEO.