Skip to content

What is the difference between blocks and sections ? #396

Answered by givanz
muhamedRadwan asked this question in Q&A
Discussion options

You must be logged in to vote

They are mostly the same, both are html templates that can be inserted in the page.
Sections have some limitations and features like:

  1. They must have all content inside a <section> <footer> <header> etc tag.
  2. When inserting a footer/header section it will be added after the last existing footer/header/section on the page.
  3. They can be dropped or inserted only in the body element, they can't be included in other sections or elements on the page.
  4. There is a dedicated component for section/footer/header tag that allows adding separators/backgrounds etc when selecting a section.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by muhamedRadwan
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants