Introduction
In this lab, we will learn how to add CSS to our Flask application to make it visually appealing. We will use static files, specifically a CSS file, to style our application. Static files are files that don't change, such as CSS files, JavaScript files, and images.
Note: You need to create the code file yourself and run it in the environment. You can preview the Flask service status on Web 5000.
Skills Graph
%%%%{init: {'theme':'neutral'}}%%%%
flowchart RL
flask(("`Flask`")) -.-> flask/CoreConceptsGroup(["`Core Concepts`"])
flask(("`Flask`")) -.-> flask/DataHandlingGroup(["`Data Handling`"])
flask/CoreConceptsGroup -.-> flask/application_object("`Application Object`")
flask/DataHandlingGroup -.-> flask/incoming_request_data("`Incoming Request Data`")
flask/DataHandlingGroup -.-> flask/response_objects("`Response Objects`")
flask/CoreConceptsGroup -.-> flask/useful_internals("`Useful Internals`")
subgraph Lab Skills
flask/application_object -.-> lab-136339{{"`Styling Flask Application`"}}
flask/incoming_request_data -.-> lab-136339{{"`Styling Flask Application`"}}
flask/response_objects -.-> lab-136339{{"`Styling Flask Application`"}}
flask/useful_internals -.-> lab-136339{{"`Styling Flask Application`"}}
end