| Whats new HTML5 DocType and Charset?
To understand DocType and Charset we take HTML files. In first line of code is DocType which basically explain browser about specific version of HTML. Now HTML5 is now not subset of SGML. As compared to previous version/standards of HTML DocType is simplified as follows:
< !doctype html>
And HTML 5 uses UTF-8 encoding as follows:
< meta charset=”UTF-8?>
Below image will more clarify this
| | |