Is is possible to specify DOCTYPE in Salesforce visual force components? How can DOCTYPE affect the responsiveness of the component (If we have given some styling/responsiveness to the UI)
Any suggestions would be helpful!
Salesforce Stack Exchange is a question and answer site for Salesforce administrators, implementation experts, developers and anybody in-between. It only takes a minute to sign up.Sign up to join this community
HTML only allows a single DOCTYPE for a page. Accordingly, you cannot specify a DOCTYPE for a single element. DOCTYPE will generally have little effect on performance, but may cause other complications. For example, if you use an XHTML DOCTYPE, you'll be forced to verify all your code is perfectly XHTML compliant or the entire page will fail to load. Generally speaking, you should use either no DOCTYPE (for HTML4), or HTML5. Other types tend to be quirky and may cause undesirable graphical glitches or parsing errors.