Stylesheets can also simplify the coding of CGI scripts. For example, a static web page can present a form that provides input to a CGI script, which can generate output of the same appearance if it references the same style sheet in the HTML it generates. We have used this approach to simplify coding a CGI that displays a collection of drought reconstruction maps.
Non-programmers can edit the style sheet to change the appearance of the pages generated by the CGI. They need to understand something about CSS, of course, but need know nothing of the programming language used to create the CGI, and cannot introduce any additional bugs or security breaches.