You can drag the Markup component from the Palette's Advanced category to the Visual Designer to create a standard HTML tag. The Markup component enables you to insert HTML elements into the JSP page in places that HTML is not permitted.
When you drop this component on a page in the Visual Designer, you cannot see it on the page until you set the tag
property. You can see it in the Navigator window and you can select it there to edit its properties in the Properties window.
Use the tag
property to specify the type of HTML element to insert. For instance, to insert an <hr>
tag, set the tag
property to hr
with no angle brackets and select the singleton
property .
To provide compliance with XHTML, if the HTML element you are inserting is a singleton element, you must specify the singleton
property, which causes a trailing />
to be generated in the rendered HTML. For example, the <br>
element is a singleton element that must be rendered as <br />
to make it XHTML compliant.
If you want to specify HTML attributes in addition to id
and style
for the element you are inserting, use the extraAttributes
property.