title: How can I insert text from an external file onto a div?
body: <p>As the title says; I want the content of an external file <em>(text,html,php etc.)</em> onto a div.
  There is basically text in an external file, called: text_1.txt or *text_1.html* , and I want that text displayed within a div that is located on a homepage.</p>
  
  <hr>
  
  <p>The perfect solution would be a pretty basic code to display text from a text or html file
  by inserting it onto a div classed: <em>content</em></p>
  
  <p>Here I have illustrated the issue with basic code, use this as an example to write a solution.</p>
  
  <p>Code in text_1.html:</p>
  
  <pre><code>&lt;p&gt;Hello world.&lt;/p&gt;
  </code></pre>
  
  <p>Code in index.html:</p>
  
  <pre><code>&lt;!doctype html&gt;
  &lt;html&gt;
  &lt;head&gt;
  &lt;title&gt;Homepage&lt;/title&gt;
  &lt;/head&gt;
  
  &lt;body&gt;
  
  
  &lt;div class="content"&gt;&lt;/div&gt;
  
  
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>This is as simple as I can put it.
  I highly appreciate all the answers I receive, thank you.</p>
  
  <p>PS here are some things you should avoid answering:</p>
  
  <ul>
  <li>Use iframes, or any other frame type solution. </li>
  <li>Make use of the onclick function within jquery etc. </li>
  <li>Use ineffective textfields to replace certain text.</li>
  <li>Make usage of an insertion code for virtual server or similar methods.</li>
  </ul>