On SharePoint application page I am using placeholder in like this:
<input type="text" id="name" name="name" placeholder="your name" />
But placeholder is underlined and says: Validation (XHTML 1.0 transitional) Attribute placeholder is not a valid attribute. But when i put runat = "server", error goes away
<input type="text" id="name" name="name" placeholder="your name" runat="server" />
Now, its valid attribute. I could not understand why placeholder attribute is not valid without runat = "server". Can anybody tell the reason? I did not want to use runat = "server".
I have also added <!DOCTYPE html>at top of the application page (i have also added <!DOCTYPE html> in my custom master page), but still it gives same error
I am using SP2010 and VS2010. I got following runtime error:
Description: An application error occurred on the server. The current custom error settings for this application prevent the details of the application error from being viewed.
Details: To enable the details of this specific error message to be viewable on the local server machine, please create a tag within a "web.config" configuration file located in the root directory of the current web application. This tag should then have its "mode" attribute set to "RemoteOnly". To enable the details to be viewable on remote machines, please set "mode" to "Off".
Note: When i put runat="server" in tags, then above error goes away and my page runs as expected.