Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Klaviyo - removes html and Doctype to replace with it's own #6

Open
JayOram opened this issue Aug 19, 2021 · 1 comment
Open

Klaviyo - removes html and Doctype to replace with it's own #6

JayOram opened this issue Aug 19, 2021 · 1 comment
Labels

Comments

@JayOram
Copy link

JayOram commented Aug 19, 2021

Original HTML:

<!DOCTYPE html>
<html lang="en" xmlns="http://www.w3.org/1999/xhtml" xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office">

Edited:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html> 

Removing lang attribute and vml xmlns declaration, the doctype is changed from HTML5 to XHTML 1.1.

@JayOram
Copy link
Author

JayOram commented Dec 20, 2022

If you need to add the xmlns for use throughout, you can do it inline for Outlook 120dpi and background images:

<!--[if gte mso 9]>
<xml xmlns:o="urn:schemas-microsoft-com:office:office">
<o:OfficeDocumentSettings>
<o:AllowPNG/>
<o:PixelsPerInch>96</o:PixelsPerInch>
</o:OfficeDocumentSettings>
</xml><![endif]-->

The language attribute can be added to the body tag and a surrounding div at the start of the HTML document:

<body xml:lang="en">
    <div lang="en" dir="ltr">
      <!-- email content -->
    </div>
  </body>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants