mjml-body
v4.18.0
Published
mjml-body
Keywords
Readme
mj-body
This is the starting point of your email. To aid accessibility, MJML automatically adds a div tag as the child of the body, with the following ARIA attributes role="article", aria-roledescription="email" and aria-label="EMAIL NAME", where 'EMAIL NAME' is taken from the content of the mj-title tag. The lang and dir attributes are also added here, with values taken from the mjml tag.
<mjml>
<mj-body>
<!-- Your email goes here -->
</mj-body>
</mjml>Attributes
| attribute | accepts | description | default value |
| ------------------- | ----------------- | -------------------------------------------------- | ------------- |
| background-color | CSS color formats | the general background color | |
| css-class | string | class name, added to the root HTML element created | |
| width | px | email width | 600px |
