The media type specification, RFC 2045, does not require a space. It also does not prohibit space; this is more implicit since RFC 2045 refers to the enhanced BNF, as defined in RFC 822, which is explained in section 3.4.2. WHITE SPACE:
"Note: in structured field bodies, several linear spaces of ASCII characters (namely HTABs and SPACE) are treated as single spaces and can freely surround any character. In all header fields, the only place where at least one LWSP-char is REQUIRED be at the beginning of continuation lines in a folded field. "
In accordance with HTML5 drafts, the specific type of meta tags discussed can be written in the following more compact form, on the basis that user agents have long recognized it:
<meta charset=UTF-8>
If XHTML serialization is required, use
<meta charset="UTF-8" />
This is more readable and safer (fewer cases of manual input errors).
source share