getElementById 방법을 사용하여 요소를 찾으십시오. 텍스트를 "Hello"로 변경하십시오.
코드
<p id="demo"></p> <script> document.getElementById("demo").innerHTML = "Hello"; </script>