--- title: 'Liquid objects: block' description: >- The content and settings of a [section block](/themes/architecture/sections/section-schema#blocks). api_name: liquid source_url: html: 'https://shopify.dev/docs/api/liquid/objects/block' md: 'https://shopify.dev/docs/api/liquid/objects/block.md' --- # block The content and settings of a [section block](https://shopify.dev/themes/architecture/sections/section-schema#blocks). Sections and blocks are reusable modules of content that make up [templates](https://shopify.dev/themes/architecture/templates). You can include a maxiumum of 50 blocks in a section. To learn more about using blocks, refer to the [Building with sections and blocks](https://shopify.dev/docs/themes/best-practices/templates-sections-blocks). ## Properties * * id [string](https://shopify.dev/docs/api/liquid/basics#string) * The ID of the block. The ID is dynamically generated by Shopify and is subject to change. You should avoid relying on a literal value of this ID. * settings * The [settings](https://shopify.dev/themes/architecture/sections/section-schema#blocks) of the block. To learn about how to access settings, refer to [Access settings](https://shopify.dev/themes/architecture/settings#access-settings). To learn which input settings can be applied to the `type` property within settings, refer to [Input settings](https://shopify.dev/themes/architecture/settings/input-settings). * shopify\_​attributes [string](https://shopify.dev/docs/api/liquid/basics#string) * The data attributes for the block for use in the theme editor. The theme editor's [JavaScript API](https://shopify.dev/themes/best-practices/editor/integrate-sections-and-blocks#section-and-block-javascript-events) uses the data attributes to identify blocks and listen for events. No value for `block.shopify_attributes` is returned outside the theme editor. * type [string](https://shopify.dev/docs/api/liquid/basics#string) * The type of the block. The type is a free-form string that's defined in the [block's schema](https://shopify.dev/themes/architecture/sections/section-schema#blocks). You can use the type as an identifier. For example, you might display different markup based on the block type. ```json { "id": "column1", "settings": "array", "shopify_attributes": "data-shopify-editor-block=\"{\"id\":\"column1\",\"type\":\"column\"}\"", "type": "column" } ``` ##### Example ``` { "id": "column1", "settings": "array", "shopify_attributes": "data-shopify-editor-block=\"{\"id\":\"column1\",\"type\":\"column\"}\"", "type": "column" } ```