0 votes
125 views
in HTML by (3.5k points)
edited
Write the HTML code to create a basic toast.

1 Answer

0 votes
by (3.5k points)
edited

When something happens, the toast component acts as an alert box that only appears for a few seconds (i.e. when the user clicks on a button, submits a form, etc.).

<div class= "toast" >
 <div class= "toast-header" >
   Toast Header
 </div>
 <div class="toast-body">
   Toast Body Text
 </div>
</div>

Related questions

0 votes
1 answer 132 views
asked Jun 24, 2023 in HTML by Doubtly (98.9k points)
0 votes
1 answer 97 views
0 votes
1 answer 141 views
asked Aug 19, 2022 in HTML by codelikepro (3.5k points)
0 votes
1 answer 103 views
asked Aug 19, 2022 in HTML by codelikepro (3.5k points)
0 votes
1 answer 123 views
asked Aug 19, 2022 in HTML by codelikepro (3.5k points)

Doubtly is an online community for engineering students, offering:

  • Free viva questions PDFs
  • Previous year question papers (PYQs)
  • Academic doubt solutions
  • Expert-guided solutions

Get the pro version for free by logging in!

5.7k questions

5.1k answers

108 comments

557 users

...