using alertin html code example
Example 1: how to make an alert in html
<script>
alert('this is an alert');
</script>
Example 2: how to make alert in javascript
alert("Alert")
<script>
alert('this is an alert');
</script>
alert("Alert")