Utilities for programmatically generating HTML