title: Declare variable in the beginning of a html document
body: <p>In PHP we can declare variables in the beginning of the document this way:</p>
  
  <pre><code>&lt;?php
  $title="Title of the webpage";
  ?&gt;
  </code></pre>
  
  <p>In the html code this title will replace the <code>echo $title</code> in the html code of the webpage.
  Is it possible to do it using html and Javascript, I mean without using PHP?</p>