+

Search Tips   |   Advanced Search


Markup guidelines


Overview

The portal server page is displayed using skins and themes defined by the portal designer or administrator. For portlets to appear integrated with an organization's portal or user's customized portal, they should generate markup that invokes the generic style classes for portlets, rather than using tags or attributes to specify colors, fonts, or other visual elements.

This section provides information for using HTML, WML, and cHTML markup in your portlet JSPs. Portlets are allowed to render only markup fragments, which are then assembled by the portlet framework for a complete page. Portlet output should contain complete, well-structured, and valid markup fragments. This helps to prevent the portlet's HTML code, for example, from corrupting the portal's aggregated HTML code.

You should use a validation tool for your markup, such as the W3C HTML Validation Service or a tool from a markup editor.

These guidelines are based on the JSP coding guidelines for standard portlets and for IBM portlets. See the corresponding best practices guide for the type of portlet you are developing on the WebSphere Portal Zone for complete information about portlet output guidelines.


HTML


WML


Compact HTML (cHTML)


Parent topic:

Portlet development reference


Related concepts


Accessing the portlet session on the anonymous page
Deployment descriptors
Handling and visibility of request parameters in portlets
Application extension registry


Related reference


IBM portlet DTD tag reference
JSP tags for standard portlets
JSP tags for IBM portlets
Drag and drop JSP tags
Detailed descriptions of the Struts WML tags