HTML Structure
Last updated
Last updated
S2 follows the best practices of semantic HTML structure in the Page Template component. You can use this template component as a starter template for any new page.
This is our default and recommended structure when you start a page using the Page Template component or the New Page Template.
body
: This is theBody
tag with classbody
.
page
: Wrap all content within a div. This practice makes it easier to copy and paste entire pages or sections.Global Code : Please refer to for details.
css_page
: A Webflow Code Embed element that allows you to add custom CSS specific to the page and see changes immediately.
main-nav
: Containsnav
, the page's main navigation.
main
: Wraps the main content of the web page.... Other parts of the website.
footer
: Footer section.
In terms of HTML, the default page structure looks like this (simplified), which is included in the Page Template component.