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
Anu Raj.ax1269Anu Raj.ax1269 

HTML 5 with salesforce

Hi
I an new to HTML 5. I want to use HTML 5 in salesforce. I wanted to see how salesforec supports HTML5.

Do any body know how to use. Please help me to solve this problem.

Thanks
Anu

Anup JadhavAnup Jadhav

You can start using HTML5 with Salesforce to build Visualforce pages and mobile applications. The restriction lies mainly with the browser support.

To start using HTML5 you need to add the following doctype to the <apex:page> tag.

 

<apex:page docType="html-5.0" sidebar="false" showHeader="false" standardStylesheets="false" cache="true" controller="MyController__c" >

 Other options being optional for HTML5 and <apex:page> tag.

 

This blog post talks about HTML5 + Visualforce + Mobile apps: http://blogs.developerforce.com/developer-relations/2011/12/visualforce-html5-mobile.html

 

This post by Josh talks about some salient features of using HTML5 cache with Force.com - http://blogs.developerforce.com/developer-relations/2011/12/visualforce-html5-mobile.html

 

- Anup

Chamil MadusankaChamil Madusanka

Visualforce and Mobile in salesforce supports for HTML5. Refer following links.

 

http://blog.edlconsulting.com/salesforce-com/visualforce-html5-template/

 

http://macscloud.com/html5-visualforce-templates/

 

http://blogs.developerforce.com/developer-relations/2011/12/visualforce-html5-mobile.html

 

http://www.tgerm.com/2012/02/jquery-mobile-html-5-100-native.html

 

If a reply to a post answers your question or resolves your problem, please mark it as the solution to the post so that others may benefit.

Anthony PicaAnthony Pica

I'm experiencing an issue where I put doctype="html-5.0" in <apex:page> yet the page doesn't render <!DOCTYPE html>.

 

The only way I can get the page to render <!DOCTYPE html> is to have showHeader="false", which is not a solution.

 

Any thoughts?