linking bootstrap in flask

  1. First, download the Bootstrap files from the official website.

  2. Next, create a new folder called "static" inside your Flask application's root folder.

  3. Inside the "static" folder, create another folder called "css".

  4. Place the downloaded Bootstrap CSS file into the "css" folder.

  5. Now, create a new folder called "templates" in your Flask application's root folder.

  6. Inside the "templates" folder, create an HTML file where you want to use Bootstrap.

  7. In the HTML file, link the Bootstrap CSS file using the following code: <link rel="stylesheet" href="{{ url_for('static', filename='css/bootstrap.css') }}">.

  8. Finally, run your Flask application and open the HTML file to check if Bootstrap is linked successfully.