Visualforce Tag – apex:pageBlock


apex:pageblock represents an area of a page that uses styling similar to looks and feel of a Salesforce details page without any default content.


<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 output of above page.


apex:pageBlock attributes:

dir, helpTitle, helpUrl, id, lang, mode, onclick, ondblclick, onkeydown, onkeypress, onkeyup, onmousedown, onmousemove, onmouseout, onmouseover, onmouseup, rendered, tabStyle, title. 

Facets: footer, header

Refer this URL for more details about

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