Tag_creator is a project mainly written in ..., it's free.
all functions needed to create an HTML tag and checks for consistency
html5 only allows tags which are valid in HTML5 old html only allows tags which are valid in HTML versions up until but not including HTML5