Functionally speaking, both seem like subroutines that generate HTML based on certain parameters.
Is the decision to use one or the other in a given circumstance purely aesthetic?