to make alert html code example
Example 1: how to make an alert in html
<script>
alert('this is an alert');
</script>
Example 2: how to make an alert on a page
go to inspect element, go to console. type in
alert("text")
<script>
alert('this is an alert');
</script>
go to inspect element, go to console. type in
alert("text")