Visualforce page Tag – apex:pageBlockSection


apex:pageBlockSection represents a section of data with in an apex pageBlock . It is like a section in a standard Salesforce page layout. This component consists of one or more columns, each of which spans two cells, one is for a field label and the other one is for its value.


<apex:page standardController=”Account”>

    <apex:form >

        <apex:pageBlock title=”Account Details”>           

            <apex:pageBlockSection title=”My Content Section” columns=”2″>

                <apex:inputField value=”{!}”/>

                <apex:inputField value=”{!account.AccountNumber}”/>

                <apex:inputField value=”{!account.type}”/>

                <apex:inputField value=”{!account.accountNumber}”/>


            <apex:pageBlockButtons >

                <apex:commandButton action=”{!save}” value=”Save”/>





Here is the result of above page code:


apex:pageBlock attributes:

PageBlockSection attributes: collapsible, columns, dir, id, lang, onclick, ondblclick, onkeydown, onkeypress, onkeyup, onmousedown, onmousemove, onmouseout, onmouseover, onmouseup, rendered, showHeader, title.

Facets: body, header

Refer this URL for more details

Thank you for visiting this tutorial website!! We will review your comment and getback to you shotly.