sweetalert attributes code example
Example 1: Sweetalert
<script src="https://unpkg.com/sweetalert/dist/sweetalert.min.js"></script>
<script>swal("My title", "My description", "success");</script>
Example 2: sweetalert
swal("Error!", "You clicked the button!", "error");