CSS is a stylesheet language for specifying the presentation and visual styling of structured documents such as HTML. In these web applications, an HTML page links a separate stylesheet, which the browser downloads and applies while retrieving the page. section 8.2 section 2.3.5
A stylesheet applies declarations through selectors to shape page presentation:
- Serve the stylesheet as a static file with the text/css content type so the browser can apply it to an HTML page. section 2.3.5
Styling a registration page
A registration template links /static/tutor-styles.css. The stylesheet centers the registration panel, adds a border and padding, colors the header, places a background image behind the page, and fixes the footer to the bottom. Run the Actix server and open the registration URL to inspect the result.












