+ 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>
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">
+ 2
You should put the Bootstrap CDN in the head tag
I advise you to search for Bootstrap CDN
+ 1
Can you explain how i will do that?
+ 1
Ok thanks
+ 1
Thanks it worked
+ 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>