HTML fragments with validation