Skip to Content

MJML basics

Finqu email templates use MJML , an open-source markup language that compiles semantic layout tags into responsive HTML email markup compatible with desktop and mobile email clients.

Basic document structure

Every MJML document starts with <mjml> and wraps visible email content inside <mj-body>:

<mjml> <mj-body> <mj-section> <mj-column> <mj-text>Hello, world!</mj-text> </mj-column> </mj-section> </mj-body> </mjml>

Common components

ComponentPurpose
<mj-section>Defines a horizontal layout row
<mj-column>Defines a responsive column inside an <mj-section>
<mj-text>Renders formatted text content
<mj-image>Embeds a responsive image
<mj-button>Renders a styled call-to-action button

See the official MJML documentation  for the complete component list, attributes, and styling rules.

Authoring guidelines

  • Prefer MJML layout components over raw HTML tables so compiled output stays compatible across email clients.
  • Keep section and column hierarchies shallow; avoid deeply nested containers.
  • Combine Liquid expressions with MJML attributes and text blocks in .mjml.liquid files; Liquid renders before MJML compiles to HTML.