Home>

Please write your question in detail here.
I started today with HTML + CSS + JavaScript programming [revised version] that you can enjoy learning while making games.
Up to P29 on the basis of HTML
Write the following code



HTML basics


Next

With Google chrome developer tools
Document.getElementById ("title") .textContent = "hello"
When I wrote, the contents of the elements were rewritten ...

VUncaught TypeError: Document.getElementById is not a function
at : 1:10

The above error message appears and the result is not as written in the book.
`` ```

Corresponding source code

I made the above.

What I tried

I just reviewed it again.

  • Answer # 1

    Document.getElementById ("title") .textContent = "hello"

    document.getElementById ("title"). textContent = "hello"

Related articles