title: Relative path or url for html src and href attributes
body: <p>Using a framework makes it easy to list full url's for my html src and href attributes, and I feel I'm being more thorough by listing a full url instead of a relative path.  But is this faster?  Am I incurring an extra DNS lookup?  What is the best practice when the content is on the same server?</p>
  
  <p><code>&lt;img src='http://site.com/images/img1.png' /&gt;</code></p>
  
  <p>vs </p>
  
  <pre><code>&lt;img src='/images/img1.png' /&gt;
  </code></pre>
  
  <p>Codeigniter's image helper img() works like <a href="http://codeigniter.com/user_guide/helpers/html_helper.html" rel="nofollow">this from the users' guide</a>:</p>
  
  <pre><code>echo img('images/picture.jpg');
  // gives &lt;img src="http://site.com/images/picture.jpg" /&gt;
  </code></pre>
  
  <p>and Codeigniter's anchor helper anchor() works like <a href="http://codeigniter.com/user_guide/helpers/url_helper.html" rel="nofollow">this from the users guide</a>:</p>
  
  <pre><code>echo anchor('news/local/123','My News');
  // gives &lt;a href="http://example.com/index.php/news/local/123" &gt;My News&lt;/a&gt;
  </code></pre>