htmlcss

Output

Please enter some HTML code using the "html" parameter.

About

Show HTML output in this handy box. The border helps people recognize where the output begins and ends.

Debugging note: The parameter has to be have a name, so it's called "html." Using an anonymous parameter (1) caused unexpected bugs.

Example

If you input this in source mode:

{{HTML output
|html=<div style="background-color: LightBlue; color: black; padding: 10px;">This div has a light blue background.</div>
}}

You'll get:

Output

This div has a light blue background.

Consider pairing this with the WikiText <syntaxhighlight> XML tag when showing example code.

More info

Standard box for displaying HTML output

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
HTML codehtml

Put your HTML in here and it'll render in a box

Example
<p style="color: gray">Gray Text</p>
Unknownsuggested