in reply to HTML embedded in perl

Everyone else is going with the "template" or "cascading style sheets" answers, but I'm old school:
use CGI::Pretty (:standard); print headers; print font({-color="red"}, q(This text is red));
--
Jeff Boes
Database Engineer
Nexcerpt, Inc.
vox 269.226.9550 ext 24
fax 269.349.9076
 http://www.nexcerpt.com
...Nexcerpt...Connecting People With Expertise

Replies are listed 'Best First'.
Re^2: HTML embedded in perl
by Ionizor (Pilgrim) on Dec 16, 2002 at 16:48 UTC

    Regarding cascading style sheets, the following is excerped from the HTML 4.01 spec on the World Wide Web Consortium's website:

    2.4.1 Separate structure and presentation

    HTML has its roots in SGML which has always been a language for the specification of structural markup. As HTML matures, more and more of its presentational elements and attributes are being replaced by other mechanisms, in particular style sheets. Experience has shown that separating the structure of a document from its presentational aspects reduces the cost of serving a wide range of platforms, media, etc., and facilitates document revisions.

    Font (along with many other elements and attributes) has been depreciated because it is a style element and doesn't really belong in the structure of a document.