title: How to change the value of <a> tag using javascript?
body: <p>Here my html code</p>
  
  <pre><code>&lt;a href="myfile.html" id='tagId'&gt;Old File&lt;/&gt;
  </code></pre>
  
  <p>I want to change the value of  tag with name "New File" </p>
  
  <p>So i wrote javascript like document.getElementById("tagId").value='New File';</p>
  
  <p>I thought output like <code>&lt;a href="myfile.html" id='tagId'&gt;New File&lt;/a&gt;</code></p>
  
  <p>But it's not working .can anyone help ?</p>