Q: What is the alternative to using PageBlock in Visualforce for creating a form? I need to create a form in a visualforce page and use slds to style it. I know we can't use slds in apex:inputField and apex:pageBlock. If I dont use pageBlock I'm not able to see the label for each field. How to get it to work? Is there an alternative way?
<div style="slds-form-element" id="modalbody">
          <apex:pageBlock>
              <apex:pageBlockSection columns="1">
                <apex:inputText styleClass="slds-input" required="true" label="{!$ObjectType.CA_Additional_Information__c.fields.First_Name__c.label}" value="{!creditApplicantRecord.First_Name__c}"/>
                <apex:inputText styleClass="slds-input" required="true" label="{!$ObjectType.CA_Additional_Information__c.fields.Last_Name__c.label}" value="{!creditApplicantRecord.Last_Name__c}"/>
                <apex:inputText styleClass="slds-input" required="true" label="{!$ObjectType.CA_Additional_Information__c.fields.Phone_No__c.label}" value="{!creditApplicantRecord.Phone_No__c}"/>
              </apex:pageBlockSection>
          </apex:pageBlock>
    </div>


A: You can use table/ div to create custom UI. To display a label with the field you can use {!$ObjectType.Account.fields.Name.Label}. Here you can change your object and field API name.
