print hr; # gives "<hr>"
If you provide one or more string arguments, they are concatenated together with spaces and placed between opening and closing tags:
print h1("Chapter","1"); # gives "<h1>Chapter 1</h1>"
If the first argument is an associative array reference, then the keys and values of the associative array become the HTML tag's attributes:
print a({href=>'fred.html',target=>'_new'}, "Open a new frame"); # gives <a href="fred.html",target="_new">Open a new frame</a>
You are free to use CGI.pm-style dashes in front of the attribute names if you prefer:
print img {-src=>'fred.gif',-align=>'LEFT'}; # gives <img ALIGN="LEFT" SRC="fred.gif">