Difference between revisions of "htmlwriter"

From Lazarus wiki
Jump to navigationJump to search
 
Line 20: Line 20:
  
 
Back to [[fcl-xml]] overview.
 
Back to [[fcl-xml]] overview.
 +
 +
[[Category:HTML]]

Latest revision as of 08:32, 17 April 2013

Implements a verified HTML producer.

  • THTMLwriter: This is a class which allows to write certified correct HTML. It works using the DOM for HTML. It also has forms support.

Writing HTML is done as follows:

 StartBold;
 Write('This text is bold');
 EndBold;
or
 Bold('This text is bold');

But the following is also possible

 Bold(Center('Bold centered text'));

Open tags will be closed automatically. wtagsintf.inc contains all possible tags.

Back to fcl-xml overview.