use warnings; use strict; use HTML::Tiny; ## from the module documention my $h = HTML::Tiny->new( mode => 'html' ); print $h->closed( 'input', { type => 'checkbox', checked => [] } ); print "\n"; ## example from OP print $h->tag ('audio', { controls=>[], type => "audio\/mpeg", src => "test.mp3"}); __DATA__