Quiz: How to Serve a Website With FastAPI Using HTML and Jinja2
Interactive Quiz ⋅ 5 Questions
By Martin Breuss
In this quiz, you’ll test your understanding of building dynamic websites with FastAPI and Jinja2 Templates.
By working through this quiz, you’ll revisit how to return HTML with HTMLResponse, serve assets with StaticFiles, render Jinja2 templates with context, and include CSS and JavaScript for interactivity like copying hex color codes.
If you are new to FastAPI, review Get Started With FastAPI. You can also brush up on Python functions and HTML and CSS.