htmlSubscript
Subscripted text class
[Previous] [Main] [Next]


Description
htmlSubscript encapsulates the <SUB></SUB> tags. It is used to mark regions of text that should be rendered as subscript text using a smaller font compared with normal text.  
 
Declaration
#include <dcmicro/htmlpp/styles.h>  
 
Hierarchy
htmlsubscript.gif  
 
See Also
Text Formatting Classes in the User's Guide  
 
Related Constants/Definitions
None.  
 
Constructors
htmlSubscript()  
Constructs an empty object.  
 
htmlSubscript( const htmlObject& element )  
Constructs an object, inserting element into it.  
 
htmlSubscript( const String& text )  
Constructs an object, inserting the string text into it.  
 
Destructor
virtual ~htmlSubscript()  
Destroys the object.  
 
Example Use
 
#include <stdio.h>  
#include <stdlib.h>  
#include <dcmicro/htmlpp/htmlpp.h>  
 
int main( void )  
{  
   htmlCgi   server ;  
   htmlPage  page( "html++ example application" ) ;  
 
   page << "This is " << htmlSubscript( "subscripted" )  
        << " text." << htmlBreak() ;  
 
   server << page ;  
   return 0 ;  
}  
 
Program Output
 
Content-Type: text/html  
<HTML>  
<HEAD>  
<TITLE>html++ example application</TITLE>  
</HEAD>  
<BODY>This is <SUB>subscripted</SUB> text.<BR>  
</BODY>  
</HTML>  
 
 
subscript.gif  



©1998 DC Micro Development. All rights reserved.
No portion of this document may be c opied or reproduced without expressed written consent.
html++ is a trademark of DC Micro Development.