def html_document(text):
    """Wrap an HTML snippet in <body> tags, etc. to make it a full document."""
    return f"""<!DOCTYPE html>
        <html>
            <body>
                {text}
            </body>
        </html>
    """