Are you planning to ask about every individual HTML element that you want to use?
CGI.pm can generate any HTML element that you want. The rules for doing it are very simple and given in the documentation.
$cgi->a; # returns <a />
$cgi->a('some text'); # returns <a>some text</a>
$cgi->a({href=>'http://somewhere/'}, 'some text'); # returns <a href="http://somewhere/">some text</a>
That's all you need to know to produce 95% of the HTML tags that you need. The exceptions to these rules are listed in the documentation, but the tags that follow these rules aren't - as that would make the documentation unnecessarily long and repetative.
So here's a suggestion. The next time you want to produce an HTML tag that you haven't asked us about, then try applying these rules. In 95% of cases it will work. If it doesn't (and you can't find it mentioned as an exception) then post a message here saying something like "I tried to create a foo tag using code like this (...) but it doesn't work as I expected."
But as you've been told before, your life will be far easier if you use a templating system for this.
"The first rule of Perl club is you do not talk about Perl club." -- Chip Salzenberg
In reply to Re: Can CGI.PM do hyperlinks
by davorg
in thread Can CGI.PM do hyperlinks
by kmullin5016
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |