how to make an alert appear when I click a html code example Example: how to make an alert in html <script> alert('this is an alert'); </script>