Skip to content

m-img

Adds an image

Attributes

AttributeDefault ValueDescription
srcRequired. URL of the image
widthRequired. Width of the image
heightHeight of the image
altAlt text shown if the image fails to load
hrefIf set, turns the image into a clickable link
border-radiusBorder radius
inlineDisplay as inline
font-familyVerdana, Arial, Helvetica, sans-serifFont family used for rendering the alt text
font-size14pxFont size for the alt text
color#000000Text color for the alt text

Example

html
<m-img src="img/logo.png" href="https://pixcraft.io" width="100" height="60" alt="logo"></m-img>