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
bgm1234bgm1234 

how to view page source as doctype html-5.0 on visualforce page???

hi.... 

 how to  view page source as doctype html 5.0  on visualforce page.

<apex:page doc type="html-5.0">

</apex:page>

 when i view the page source code doctype will be in html4.0 but i want doctype html 5.0 how??????????

 

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" http://www.w3.org/TR/html4/loose.dtd> 

 

 

please it is an urgent issue 

                  give a quick reply....

Satish_SFDCSatish_SFDC
There is no space between doc and type in the <apex:page> tag.

Check this page:
http://www.salesforce.com/us/developer/docs/pages/Content/pages_styling_doctype.htm

Regards,
Satish Kumar
Please mark my answer as a solution if it was helpful so it is available to others as a proper solution.
If you felt I went above and beyond, please give me Kudos by clicking on the star icon.
bgm1234bgm1234

hi

 thanks for responding...

                                    i  have seen that link 

   but it is not working,,,, my page source in default it shows as html4.0 its not workingg.... please give a solution

bgm1234bgm1234

hi

        which browser supports for doctype=html5 in salesforce

 

Satish_SFDCSatish_SFDC
Latest versions of Chrome and Mozilla.

Regards,
Satish Kumar
Satish_SFDCSatish_SFDC
Also check this link for supported browsers and their versions:

https://help.salesforce.com/apex/HTViewHelpDoc?id=getstart_browser_overview.htm&language=en

Regards,
Satish Kumar