Currently I have an application where I access different .js and .css files and I do it in the following way:
<link href='vista/assets/style/index.css' rel='stylesheet' type='text/css'>
That form is the most standard I know and what it does is communicate to the daughter folders from a base.
But I've also seen the following way:
$host="http://localhost:8080/softicket/SoftTicket/trunk/";
<link href=<?php echo $host.'/vista/assets/style/index.css' ?> rel='stylesheet' type='text/css'>
The two forms work correctly, but the number two form gets the whole route and the first only accesses to daughter folders. I do not know if there is much difference or it gives exactly the same the way in which said web elements are accessed.
The truth is that my situation is that I want that when uploading to a server or having to change the server and let's say the route will be modified constantly in the future, it is only a possibility, then you will want to see the fastest way to make that change easy to do and to assimilate.