Question: how javascript works with html?
Answer: Here's how it works. HTML tags create objects; JavaScript lets you manipulate those objects. For example, you use the HTML <BODY> and </BODY> tags to create a Web page, or document. ... Examples of other HTML objects that you interact with using JavaScript include windows, text fields, images, and embedded Java applets.