HTML Standard: <img> tag
- <a>
- <b>, <strong>
- <br>
- <caption>, <figcaption>
- <div>
- <dl>, <dt>, <dd>
- <h1>, <h2>, <h3>, <h4>, <h5>, <h6>
- <hr>
- <i>, <em>, <cite>, <var>
- <input>
- <img>
- <mark>
- <p>, <address>, <blockquote>
- <pre>
- <s>
- <select>, <option>
- <small>
- <span>
- <sub>
- <sup>
- <table>, <tr>, <td>, <th>
- <textarea>
- <u>, <ins>, <del>
- <ul>, <ol>, <li>
- <math>
- <meta>
- <phpdocx_bookmark>
- <phpdocx_break>
- <phpdocx_comment>
- <phpdocx_crossreference>
- <phpdocx_dateandhour>
- <phpdocx_endnote>
- <phpdocx_footer>
- <phpdocx_footnote>
- <phpdocx_formelement>
- <phpdocx_header>
- <phpdocx_heading>
- <phpdocx_image>
- <phpdocx_link>
- <phpdocx_mathequation>
- <phpdocx_mergefield>
- <phpdocx_modifypagelayout>
- <phpdocx_ole>
- <phpdocx_onlinevideo>
- <phpdocx_pagenumber>
- <phpdocx_section>
- <phpdocx_shape>
- <phpdocx_simplefield>
- <phpdocx_structureddocumenttag>
- <phpdocx_tablecontents>
- <phpdocx_tablefigures>
- <phpdocx_text>
- <phpdocx_textbox>
- <phpdocx_wordfragment>
- <phpdocx_wordml>
- <svg>
- <title>
<img> tag
Inserts an image.
Attributes
Attribute | Description |
---|---|
alt | Sets the description value. |
class | One or more classes. |
id | Id. |
height | Sets the image height: px. |
src | Path source of the image (as image file, base64 or as stream): JPG, PNG, GIF, BMP, WEBP and SVG. SVG images require ImageMagick extension. |
style | Inline styles. Styles can also be applied using style tags. |
width | Sets the image width: px. |
To download images from remote URLs, please check that allow_url_fopen is enabled in the PHP config. If the remote images use HTTPS, please check that PHP is using a valid certification file and the SSL configuration is correct: More information.
Styles
Style | Description |
---|---|
border |
border-color:
|
display |
|
float |
|
height |
|
margin, margin-top, margin-right, margin-bottom, margin-left |
Property values:
Applied when setting a border |
padding, padding-top, padding-right, padding-bottom, padding-left |
Property values:
Applied when setting a border |
vertical-align |
|
width |
|
CSS Extended (Premium licenses)
Style | Description |
---|---|
max-width | cm, em, in, pt, px. |
max-height | cm, em, in, pt, px. |