<Apex:datatable> tag is used to create data tables in visualforce pages. Each item in the data table is displayed in the form of rows and columns while, <apex:pageblock> is used to create a section of Block in visualforce page. We can create multiple input fields, buttons, tables, links in page block section. In page block section we can create page block sections.