title: Dynamic <Title> text and Link text in html
body: <p>In the below HTML code, I want the text "Page Title" to be dynamic. That is, how do I make this string dynamic based on values in a DB table?</p>
  
  <p>The same thing for the text "Click Here". I want to make the text referring the link to be called from elsewhere instead of directly hard coding it here.</p>
  
  <p>I already have a Java file (web service framework) in which I have assigned the value from the Db to a string variable. Now I need the syntax for this string so that when I change the value of the string in DB, the title text changes here. Same for the link text.</p>
  
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;html&gt;
  &lt;head&gt;
  &lt;title&gt;Page Title&lt;/title&gt;
  &lt;/head&gt;
  &lt;body&gt;
  &lt;p&gt;Click following link&lt;/p&gt;
  &lt;a href="https://www.testsite.net" target="_self"&gt;Click Here&lt;/a&gt;
  &lt;/body&gt;
  </code></pre>
  
  <p></p>
  
  <p>Also, can I use the same method for XML <code>&lt;title&gt;</code> also for the title tag? </p>