An included script can access the tags and content of index.html with the document.
index.html
document
Display document in the console to see the HTML code inside.
Make sure to add document to the code.