+ 1

Why bootstrap button is not working?

<!DOCTYPE html> <html> <head> <title>Page Title</title> </head> <body> <div class="button"> <button type="button" class="btn btn-primary">submit</button> </div> </body> </html>

17th Mar 2022, 9:59 AM
Gagan Gajendra
8 Answers
+ 3
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-1BmE4kWBq78iYhFldvKuhfTAU6auU8tT94WrHftjDbrCEXSU1oBoqyl2QvZ6jIW3" crossorigin="anonymous">
18th Mar 2022, 10:31 AM
Gagan Gajendra
+ 2
You should put the Bootstrap CDN in the head tag I advise you to search for Bootstrap CDN
17th Mar 2022, 10:05 AM
Muhammad Galhoum
Muhammad Galhoum - avatar
+ 1
Can you explain how i will do that?
17th Mar 2022, 10:04 AM
Gagan Gajendra
+ 1
Ok thanks
17th Mar 2022, 10:05 AM
Gagan Gajendra
+ 1
Thanks it worked
17th Mar 2022, 10:11 AM
Gagan Gajendra
+ 1
<!DOCTYPE html> <html> <head> <title>Page Title</title> <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@3.4.1/dist/css/bootstrap.min.css" integrity="sha384-HSMxcRTRxnN+Bdg0JdbxYKrThecOKuH5zCYotlSAcp1+c8xmyTe9GYg1l9a69psu" crossorigin="anonymous"> </head> <body> <div class="button"> <button type="button" class="btn btn-primary">submit</button> </div> </body> </html>
18th Mar 2022, 9:54 AM
furqan elahie