HTML can be used to specify the body field of an article or the slide image description field in a slideshow. It is not allowed in any other field. There are few general guidelines to keep in mind when using HTML:
- Microsoft Ingestion Services will always remove disallowed tags. The tag contents and children might be removed as well.
- Microsoft Ingestion Services may clean HTML from elements which could affect rendering experiences such as inline styles.
- It is recommended that publishers keep the HTML hierarchy simple and avoid deeply linked hierarchies beyond 10 levels.
- Avoid using multiple consecutive <br> tags. <br> line breaks at the end of document will be removed.
- <iframe> used for any purpose not explicitly mentioned in this document will be removed.
Allowed HTML Tags
These tags are allowed within the article body.
Font style <b>, <i>, <em>, <strong>
Font size <sub>, <sup>, <small>
Headings <h1>, <h2>, <h3>, <h4>, <h5>
Links <a> - href values should preferably use HTTPS, HTTP and mailto:
Images <img>
Tables <table>, <th>, <tr>, <td>, <thead>, <tbody>, <tfoot>, <col>, <caption>, <colgroup>
Listing <ol>, <ul>, <li>
Grouping <span>, <div>, <p>, <br>
Embeds <blockquote>, <iframe> only acceptable for video and supported social embeds.
Generally, attributes will be removed from all elements unless they are used by underlying features such as href in <a> and src in <img>.
Restricted HTML Tags
The following tags will be always stripped off the body of incoming articles and could result in content being rejected:
- <style>
- <script>
- <object>
- <param>
- <applet>
- <embed>
- <media:content url='http://test.com/test.mp4'>
- <media:content url='http://test.com/test.avi'>
- <media:content url='http://test.com/test.wmv'>
- <figure>
- <media>
- <div><a href='https://infogram.com' /></div>
- <a href='...giphy.com/gifs...'>via GIPHY</a>
Social Embeds
Social embeds are supported as inline content.