How to get data from a tag with javascript [duplicate]

is there any way to obtain data or the value that is inside a label?
I need to get the value that is inside the tag <label id="domTextElement"></label>

  <label id="domTextElement">Name: </label>
 
  

  <p id="valueInput"></p> 

  <script> 

    var inputValue = document.getElementById("domTextElement").data; 
      document.getElementById("valueInput").innerHTML = inputValue; 
   
    
  </script> 

Somehow?
Thanks