The http-equiv content attribute is reflected by the httpEquiv property so . charsetMetaTag['httpEquiv'] = 'Content-Type'; would create the meta element . Selectors may apply to the following: all elements of a specific type, e.g. Using the <meta charset> HTML tag to set UTF-8 The first element after the opening <head> tag of your documents should be a <meta charset> tag to define the character set in use. UTF-8: It specify the character encoding for Unicode. Originally the character set meta data was written as <meta http-equiv="Content-Type" content="text/html; charset=<characterset>"/>, but so many developers mis-typed the content attribute as content="text/html" charset="<characterset>" that browsers began supporting charset as an attribute. HTML DOMJavaScript HTML HTML DOM Document Object Model 1 DOM DOM W3C (World Wide Web Consortium) DOM <br /> "W3C DOM We are going to use the Meta tag, and . Scheme: this attribute is used to define the scheme in which the actual meta tag is going to be used. ASCII defined 128 different alphanumeric characters. <meta name="keywords" content="Mainframe,Php,SQL,Perl,JQuery,Datascience"> Viewport This sets the viewport. HTML tag -- the best examples. You can use the charset attribute on as well as