Skip to content

Supported HTML Elements

Matthew Whitaker edited this page Oct 21, 2022 · 5 revisions

List of Supported HTML Elements

  • <a>
  • <abbr>
  • <acronym>
  • <address>
  • <article>
  • <aside>
  • <audio>
  • <b>
  • <bdi>
  • <bdo>
  • <big>
  • <blockquote>
  • <body>
  • <br>
  • <center>
  • <cite>
  • <code>
  • <col>
  • <colgroup>
  • <data>
  • <dd>
  • <del>
  • <dfn>
  • <div>
  • <dl>
  • <dt>
  • <em>
  • <figcaption>
  • <figure>
  • <font>
  • <footer>
  • <h1>
  • <h2>
  • <h3>
  • <h4>
  • <h5>
  • <h6>
  • <head>
  • <header>
  • <hr>
  • <html>
  • <i>
  • <iframe>
  • <img>
  • <ins>
  • <kbd>
  • <li>
  • <main>
  • <mark>
  • <nav>
  • <noscript>
  • <ol>
  • <p>
  • <pre>
  • <q>
  • <rp>
  • <rt>
  • <ruby>
  • <s>
  • <samp>
  • <section>
  • <small>
  • <span>
  • <strike>
  • <strong>
  • <sub>
  • <sup>
  • <svg>
  • <table>
  • <tbody>
  • <td>
  • <template>
  • <tfoot>
  • <th>
  • <thead>
  • <time>
  • <tr>
  • <tt>
  • <u>
  • <ul>
  • <var>
  • <video>
  • <wbr>

Detailed Guides

Below are detailed guides for some of the supported HTML elements so you can make better use of available features and debug your app if you encounter problems.

<a>

You can use the onLinkTap callback to receive all interactions with <a> elements.

Example: Using onLinkTap

Html(
  data: '<a href="https://github.com">GitHub</a>',
  onLinkTap: (url) {
    //Do something with url, e.g. launch(url);
  },
),

<audio>

Coming Soon!

<hr>

Renders a horizontal bar. <hr> is styled using the border property. See https://www.w3schools.com/howto/howto_css_style_hr.asp for more details. Other than only producing solid-style borders (no dashed or dotted), flutter_html fully supports the code example on that page.

<iframe>

Coming Soon!

<img>

Coming Soon!

<ruby>

Coming Soon!

<svg>

Coming Soon!

<video>

Coming Soon!

Clone this wiki locally