Put in order · Next.js course · Module 2: Routing and Layouts

Root Layout with html and body

Arrange the root layout syntax with html and body tags

Items to put in order

  • <body>{children}</body>
  • <html>
  • </html> )
  • return (
Show the answer

Correct order:

  1. return (
  2. <html>
  3. <body>{children}</body>
  4. </html> )