[SalesForce] Required Error Message in Visualforce Page

Hi folks,
Can anyone tell me how to show the custom error message(red color) in visualforce after disabling the show header and standard stylesheet?

Below is my VFP for getting Custom Error Message

<apex:page standardController="Contact" standardStylesheets="false" showHeader="false"  >
<apex:pageBlock >   
    <apex:form >   
        <apex:pageMessages ></apex:pageMessages>   
        <apex:inputField value="{!contact.lastname}" html-placeholder="Enter Your Last Name"/>   
        <apex:commandButton action="{!save}" value="Submit"/>         
    </apex:form>     
</apex:pageBlock>   
</apex:page>  

But It gives

enter image description here

I want to display error message in red color
For that What I've to do?

Thanks in advance
Karthick

Updated Code:

Best Answer

Related Topic