20.0.0 HTML and CSS Tags and Attributes Supported By Out Tags
Along with text and images, the Out Tag can also display HTML. In doing so, the HTML tags are converted to their Microsoft Office equivalents. For example, if an HTML snippet has a bold tag <b> applied it will convert the text it surrounds to be bold when displayed in Microsoft Office report template output.
Here is a list of supported HTML Tags and attributes.
Don't forget you must set the Out Tag property type to TEMPLATE for the HTML to be properly interpreted. This functionality is not supported in PowerPoint Templates, so HTML will not be rendered.
Changes in Version 20.0.0
The HTML Tag had support added:
- <br>
This CSS attribute was added for <ol> and <ul> tags:
- list-style-type
Supported HTML and CSS Tags and Attributes
Tag | HTML Attributes | CSS Attributes | Notes |
---|---|---|---|
<a> | href; style |
|
|
<b> |
style |
|
|
<body> |
style |
|
|
<br/> |
none | </br> tag in DOCX output will use styling at beginning of previous paragraph for imported HTML in 20.0. | |
<div> | bgcolor; style |
|
|
<em> |
style |
|
|
<font> |
color; face; size; style |
|
|
<i> |
style |
|
|
<img/> |
alt; src |
none | |
<li> |
style |
|
|
<ol> |
style |
|
|
<p> |
align; bgcolor; class; style |
|
|
<span> |
bgcolor; style |
|
|
<strike> |
style |
|
|
<strong> |
style |
|
|
<sub> |
style |
|
|
<sup> |
style |
|
|
<table> |
bgcolor; border; style; width |
|
|
<tr> |
bgcolor |
|
|
<td> |
bgcolor; style; width |
|
|
<u> |
style |
|
|
<ul> |
style |
|
|
<h1> | align |
|
|
<h2> | align |
|
|
<h3> | align |
|
|
<h4> | align |
|
|
<h5> | align |
|
|
<h6> | align |
|
Supported Formats for HTML
HTML Attribute | Supported Formats |
---|---|
alt | any text |
align | left; center; right; justify |
bgcolor |
|
border | px values |
class | any text |
color |
|
face | any text |
href | any text |
list-style-type |
|
size |
|
src | any text |
style | CSS |
width |
|
Supported Formats for CSS
CSS Attribute | Supported Formats |
---|---|
background-color |
|
color |
|
font-size |
|
list-style-type |
|
width |
|
CSS elements must be identified individually in the current version. For instance you cannot specify a border with the “shorthand” property like:
border: 5px solid red;
The border must be defined like:
border-width: 5px;
border-style: solid;
border-color: red;
0 Comments
Add your comment