Introducing Socket Firewall: Free, Proactive Protection for Your Software Supply Chain.Learn More
Socket
Book a DemoInstallSign in
Socket

mjml-body

Package Overview
Dependencies
Maintainers
7
Versions
78
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mjml-body

mjml-body

latest
Source
npmnpm
Version
4.16.1
Version published
Maintainers
7
Created
Source

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>

try it live

mj-body replaces the couple mj-body and mj-container of MJML v3.
attributeunitdescriptiondefault value
background-colorcolor formatsthe general background colorn/a
css-class          string  class name, added to the root HTML element createdn/a
widthpxemail's width600px

FAQs

Package last updated on 18 Sep 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts