Embedding JavaScript
JavaScript can be embedded in an HTML page in different ways to add interactivity, manipulate the DOM, and handle events.
1. Inline JavaScript
You can place JavaScript directly inside an HTML tag using the onclick, onmouseover, or other event attributes.
🔹 Best for simple event handling but not recommended for larger applications.