The differences between Data table and Page block
Page block:
It defines inside the pageblockstation or pageblock
To design the visual pages it uses style sheets
The required attribute is “value”
Automatically it will display Column Headers
DataTable:
No need to mention inside the pageblock station or pageblock
No required value.
The data will be displayed using custom style sheets.
we need to specify column headers explicitly.