I am exploring the HTML elements that can be used with the SweetAlert alert function ().
It seems that headings like h1, h2, etc. and strong tags are allowed, but when I tried to add inline styles like style="color:blue;", the alert stopped working. The various heading styles didn't seem to have any impact either.
My current code looks like this:
<script>
swal({
title: "text<br /><br />text",
text: "<strong>text</strong>",
timer: 4000, html: true,
showConfirmButton: false });
</script>
If I want to customize the look of the alert to match my website's style, it looks like I'll have to modify the SweetAlert CSS.
I am seeking guidance on which HTML elements can safely be used within SweetAlert without interfering with its functionality.