<SPAN>

The span tag is a synonym for stylerun and so it accepts the same attributes as stylerun tags. It is commonly used with a style attribute. Depending on the browser being used, however, the richtext editors may destroy the font or color specified in the style attribute. Therefore it is usually better to use  a font tag. The only reason SPAN is mentioned here is that if you use the richtext editor in GUI mode to style your text, and then move to the tags mode, you will probably see SPAN tags.

Span is also sometimes used, with a fixedwidth attribute, when you need to simulate tabs or insert a large blank space in your text. But Font or Stylerun would work equally well in this case.

Below is the list of accepted style segments; they are expressed in the span tag in the style attribute, concatenated together with semicolons, like this: <SPAN style="font-face: Helvetica; font-size: 10pt; color: red">


Style 
segment 
 
Notes 
 
font-size
 
The font size for subsequent content. Works like the fontsize attribute of the FONT tag.
 
font-face
 
The font to use for subsequent content. Must be one of the 14 standard PDF fonts, or a font you have uploaded into assets. Depending on the browser you use, the font may be lost when you return to the rich editor.
 color
 
The font to use for subsequent content. Must be one of the 14 standard PDF fonts, or a font you have uploaded into assets. Depending on the browser you use, the font may be lost when you return to the rich editor.


<BlockQuote>


This tag is used to indicate quotations. Block quotes are indented on the left and right relative to the
surrounding text. The tag accepts the following attributes.

Attribute  Notes 
 leftindent  
  • The left indent for the block of text.
  • Distances are measured in the current units. The default is 36 points.


 rightindent  
  • The right indent for the block of text.
  • Distances are measured in the current units. The default is 36 points.



<Pre>

This tag is used to indicate preformatted text. Spaces and line breaks are preserved.

HTML Entities
HTML Styled text accepts all common HTML entities, should you need to use them. The most commonly used are:


HTML entity  
Notes 
 &nbsp; 
 
non-breaking space – HTML automatically collapses multiple spaces into one. Therefore, when you need a short blank area of several spaces’ width, you should string together multiple uses of &nbsp;
Example: &nbsp; &nbsp; &nbsp; will yield a blank area the width of three spaces.

 

 &copy;
 
copyright symbol ©


 
&lt;
 
less-than symbol <

&gt;
 
greater-than symbol >



Previous Chapter: Chapter 33 - HTML Tags for Field Scripting


Next Chapter: Chapter 35 - vbScript Field Scripting Reference