function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Lisa SchutterLisa Schutter 

HTML5 & Assigning a DOCTYPE in VF Email Template

Hi there,
We are trying to upload a custom built responsive HTML template into VF and keep running into several errors regarding DOCTYPE.

Main error we run into is: 
Error: A DOCTYPE is not allowed in content.

This is the opening statment of the HTML:

<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <meta name="viewport" content="width=device-width">

The email then incorporates CSS, could this also be an issue?
Could someone let us know what could be the potential cause and solution?

Much appreciated!