html-WbHtmlView

This component allows you to view the contents of HTML files.

WbHtmlView Menus

The Workbench main menu functions are available.

WbHtmlView Toolbar

In the WbHtmlView, the toolbar contains navigation and editing buttons. In addition, Find, FindNext and FindPrev toolbar buttons are available.

HTML Support: HTML Tags

The WbHtmlView attempts to ignore mismatched or missing Tags. It can parse any HTML, no matter how badly messed up the Tags are, although it might do a pretty bad job of rendering the results. It does simplistically attempt to repair missing <p>, but other problems are solved by ignoring Tags. Warnings will appear on the command line showing its best guess as to what the problem was. Valid tags include:

  • a - anchor Ex:<a href="#fragment">Title<a> and <a name="fragment">Title<a> (Attributes href and name)

  • b - bold text style Ex: <b>bold text<b>

  • body - document body

  • br - forced line break

  • code - computer code fragment

  • col - not supported

  • colgroup - not supported

  • dd - definition description

  • div - not supported

  • dl - definition list

  • dt - definition term

  • em - emphasis Ex: <em>emphasis text<em>

  • font - local change to font (Attributes Color, name and size)

  • h1 - heading Ex:<h1 class='title'>Title<h1>

  • h2 - heading

  • h3 - heading

  • h4 - heading

  • h5 - heading

  • h6 - not supported

  • head - document head

  • hr - horizontal rule

  • html - document root element

  • i - italic text style

  • img - embedded image Ex: <img src="graphics/home.png"> An <img> without an align attribute is treated as an 'inline' image. An align of left or right causes text to flow around the image.

  • li - list item

  • link - a media-independent link Ex:<link rel='StyleSheet' href='module://bajaui/doc/style.css' type='text/css'/>

  • meta - not supported

  • object - not supported

  • ol - ordered list

  • p - paragraph Ex:<p class='note'>Note<p>

  • pre - preformatted text

  • span - not supported

  • style - not supported

  • table - table (Attributes align, border, bordercolor, cellpadding, cellspacing and width)

  • tbody - not supported

  • td - table data cell supports ALIGN (left, right, and center), BGCOLOR, COLSPAN, ROWSPAN and WIDTH

  • tfoot - not supported

  • th - table header cell supports ALIGN (left, right, and center), BGCOLOR, COLSPAN, ROWSPAN and WIDTH

  • thead - not supported

  • title - document title

  • tr - table row supports ALIGN (left, right, and center) and BGCOLOR

  • tt - teletype or monospaced text style

  • ul - unordered list

  • webLauncher - not supported

HTML Attributes

HTML Elements have associated properties, called attributes, which may have values. Attribute/value pairs appear before the final ">" of an element's start tag. Valid attributes include:

  • align - vertical or horizontal alignment Deprecated; elements: img, object? values: bottom, left, middle, right or top.

  • align - table position relative to window Deprecated; elements: table; values: center, left or right

  • align - align, text alignment Deprecated; elements: div?, h1?, h2?, h3?, h4?, h5?, h6?, p; values: center, justify, left or right

  • align - alignment; elements: col?, colgroup?, tbody?, td, tfoot?, th, thead?, tr; values: center, char, justify, left or right

  • bgcolor - background Color Deprecated; elements: h1, h2, h3, h4, h5, h6?, p, td, th, tr

  • border - controls frame width around table; elements: table

  • cellpadding - spacing within cells; elements: table

  • cellspacing - spacing between cells; elements: table

  • class - class name or set of class names for stylesheets; elements: most elements

  • color - text Color Deprecated; elements: font, h1, h2, h3, h4, h5, h6?, p, pre, td?, th?, tr?

  • colspan - number of cols spanned by cell; elements: td, th

  • content - associated information; elements: meta?

  • href - URI for linked resource; elements: a, link

  • id - name to an element; elements: most elements

  • lang - Language Code; elements: most elements not supported

  • name - named link end; elements: a

  • name - meta information name; elements: meta?

  • rel - forward link types; elements: link; values: stylesheet

  • rowspan - number of rows spanned by cell; elements: td, th

  • size - size of font; elements: font; value: fixed 1-7 or relative -7 to +7

  • summary - purpose/structure for speech output; elements: table

  • type - advisory content type; elements: link; values: text/css

  • width - table width; elements: table

Character Entity References

Character Entity References are supported including the following:

  • & - ampersand &

  • &apos; - apostrophe '

  • &copy; - copyright ©

  • &gt; - greater than >

  • &ldquo; - double quotation, left “

  • &lsquo; - single quotation, left ‘

  • &lt; - less than <

  • &mdash; - em dash —

  • &nbsp; - non breaking space " "

  • &ndash; - en dash –

  • &rdquo; - double quotation, right ”

  • &rsquo; - single quotation, right ’

  • &quot; - quotation mark "

  • &reg; - registered trademark ®

  • &trade; - trademark ™

Stylesheet support

Stylesheets are supported using a link in the header as follows:

<head>
<title>Sample<title>
<link rel='StyleSheet' href='module://bajaui/doc/style.css' type='text/css'/>
<head>

See the default stylesheet used for Niagara Developer Guide: module://bajaui/doc/style.css or the CSS stylesheet used for this document at docbook.css.

Pseudo-classes and Pseudo-elements

Anchor pseudo-classes include:

  • A:link unvisited links unsupported

  • A:visited visited links unsupported

  • A:active active links unsupported

CSS1 Properties

Stylesheet elements supported include:

  • background - The 'background' property is a shorthand property for setting the individual background properties (i.e., 'background-color', 'background-image', 'background-repeat', 'background-attachment' and 'background-position') at the same place in the style sheet.

  • background-attachment unsupported

  • background-color - This property sets the background Color of an element.

  • background-image unsupported

  • background-position unsupported

  • background-repeat unsupported

  • border unsupported

  • border-bottom unsupported

  • border-bottom-width unsupported

  • border-color unsupported

  • border-left unsupported

  • border-left-width unsupported

  • border-right unsupported

  • border-right-width unsupported

  • border-style unsupported

  • border-top unsupported

  • border-top-width unsupported

  • border-width unsupported

  • clear unsupported

  • color - This property describes the text Color of an element (often referred to as the foreground Color).

  • display unsupported

  • float unsupported

  • font unsupported

  • font-family unsupported

  • font-size unsupported

  • font-style unsupported

  • font-variant unsupported

  • font-weight unsupported

  • height unsupported

  • letter-spacing unsupported

  • line-height unsupported

  • list-style-image unsupported

  • list-style-position unsupported

  • list-style-type unsupported

  • margin unsupported

  • margin-bottom unsupported

  • margin-left unsupported

  • margin-right unsupported

  • margin-top unsupported

  • padding unsupported

  • padding-bottom unsupported

  • padding-left unsupported

  • padding-right unsupported

  • padding-top unsupported

  • text-align

  • text-decoration unsupported

  • text-indent unsupported

  • text-transform unsupported

  • white-space unsupported

  • width unsupported

  • word-spacing unsupported