Import from an HTML File
Import HTML code or an HTML file into Zero Block to quickly transfer an existing design and continue editing it on Tilda. Read this guide to learn about how to import a page, an individual section, or an element and configure the import settings.
More
More
More
How to Import a Page from an HTML File
To import an HTML file into Zero Block, open the block and click the three dots in the top menu.
In Zero Block, the three dots button in the top right corner.
In the context menu, select "Import from HTML."
Zero Block editor: "Import from HTML" option in the context menu under the three dots icon.
Add the HTML code to the import popup or upload a file.
Important: CSS styles must be written in the HTML file. You cannot upload a separate CSS file.
Important: The HTML import feature does not support JavaScript. If you need to include JavaScript code on the page, add it separately by using the T123 block. Learn more about using the block in the dedicated guide.
Important: Do not import containers with infinite scrolling and automated loading of elements.
Zero Block editor: the "Import from file" button and the "Enter HTML here" field in the "IMPORT FROM HTML" pop-up window.
Click "Prepare to Import".
In the "IMPORT FROM HTML" window, the HTML code input field and the "Prepare to import" button at the bottom.
Once the file is prepared, the settings window will open. Check the settings and click "Import."
Import from HTML modal: the "Import" button in the top right corner.
Done. The HTML code and CSS styles will be converted into Zero Block elements.
Zero Block editor displaying imported webpage content on the canvas, with the Layers panel on the left and Artboard Settings on the right.
Below is an example of what HTML code imported in Zero Block looks like after publishing.
Web page created from an imported HTML file displayed in a browser window.
How to Import an Individual Element or Section
To import only an individual element or section, click "Selected", hold down Shift, and select the content you need. Then click "Import."
HTML import window: the "Import" button in the top right, the selected card element on the canvas, and its node in the element tree popup.
Only the selected object or section will be imported into Zero Block.
In the Zero Block editor: the imported HTML card element positioned on the artboard.
How to Configure HTML Import
In the import window, you can choose an import method, configure breakpoints, and reduce group nesting.
Import Options
HTML code can be imported using one of three options:
In the "IMPORT FROM HTML" window: the dropdown menu next to the header with the selected "Artboard" option.
Apply settings to the Artboard. The Artboard settings from the HTML will be imported along with the elements.

Below is an example of HTML code imported with the settings applied to the Artboard.
Zero Block editor: imported page layout on the artboard with the "LAYERS" panel on the left and "ARTBOARD SETTINGS" on the right.
Add as a group. The imported content will be added to Zero Block as a separate group, while the existing elements will be kept unchanged.
Important: Use this option to add an individual element or section to existing content in Zero Block.
Zero Block editor: imported HTML layout placed onto the artboard as a grouped object with settings in the right-hand panel.
Add as a group and replace existing content. The imported elements will be added to the block, and the content created before will be deleted.
Zero Block editor: imported page layout grouped into elements on the canvas, with the layers panel on the left and element settings on the right.
Breakpoint Settings
By default, imported content will use the breakpoints already configured in Zero Block.

In the import window, you can add custom breakpoints, use values from the file being imported, or reset the settings to default.
In the "IMPORT FROM HTML" window, the "Default" dropdown under "BREAKPOINTS" with breakpoint options and settings.
In the adjacent field, you can select a breakpoint and preview how the imported page will appear at the corresponding screen size.
HTML import window: "Reduce nested groups" checkbox in the top panel.
Group Nesting
By default, elements within groups are imported together with these groups.

To reduce the number of nested groups, enable "Reduce group nesting." This will simplify the structure: Some groups will be removed, and some elements will be imported as separate layers.
Important: We recommend enabling this option for a more accurate import and fewer unnecessary groups.

Zero Block has a limit on group nesting. If the nesting exceeds the limit, errors may occur during import.
The "Reduce group nesting" option reduces nesting to three levels.
In the "IMPORT FROM HTML" window: the "Reduce nested groups" checkbox on the top toolbar.
Other Import Options
More
More
Made on
Tilda