<link rel="stylesheet" type='text/css" href="{{ url_for('static', filename='main.css') }}"> Make sure that the css is in the 'static' file you should have created inside the root directory of the project.