alert tag in html code example
Example 1: how to make an alert in html
<script>
alert('this is an alert');
</script>
Example 2: js alert
alert("Hello! I am an alert box!!");
<script>
alert('this is an alert');
</script>
alert("Hello! I am an alert box!!");