<script>
Swal.fire({
html: "Hello, <strong>world!</strong>"
});
</script>
//import sweetalert
<script src="https://unpkg.com/sweetalert/dist/sweetalert.min.js"></script>
//Alert
<script>swal("My title", "My description", "success");</script>
<script>
// when window loades this alert pop ups
swal({
text: "Hello world!",
} );
</script>