Documentation

Build layouts instantly

Create entire page structures by typing a single line. Emmet expressions expand into full nested HTML with one keystroke.

Press / to open Explorer, type your Emmet expression, and hit Enter.

01Operators

The grammar is small. These eight symbols do all the work.

SymbolNameWhat it does
>ChildNest inside parent
+SiblingPlace next to
*MultiplyRepeat N times
.ClassAdd CSS class
#IDAdd element ID
{ }TextSet text content
( )GroupGroup elements together
^Climb-upGo back up one level

02Aliases

Shorthand for the elements you reach for most often.

ShorthandExpands to
secsection
contcontainer
btnbutton
lnka
hdrheader
ftrfooter
parap
txtspan

03Examples

Example 01

Heading with text

Input
h1{Welcome to Divhunt}
Output
h1
  "Welcome to Divhunt"
Example 02

Two siblings

Input
h1{About Us}+p{We build websites.}
Output
h1
  "About Us"
p
  "We build websites."
Example 03

Nesting with >

Input
div>h2{Features}+p{Everything you need.}
Output
div
  h2
    "Features"
  p
    "Everything you need."
Example 04

Section + container

Input
section>container>h1{Hello World}
Output
section
  container
    h1
      "Hello World"
Example 05

Classes

Input
section.hero.dark>container>h1{Launch Day}+p{It's here.}+btn{Get Started}
Output
section.hero.dark
  container
    h1
      "Launch Day"
    p
      "It's here."
    button
      "Get Started"
Example 06

Multiply with *

Input
section>container>div.card*3
Output
section
  container
    div.card
    div.card
    div.card
Example 07

Cards with content

Input
section>container>div.card*3>img+h3{Title}+p{Description}
Output
section
  container
    div.card
      img
      h3 "Title"
      p  "Description"
    div.card
      img
      h3 "Title"
      p  "Description"
    div.card
      img
      h3 "Title"
      p  "Description"
Example 08

Climb-up with ^

Input
nav>container>div.logo>lnk{Divhunt}^div.menu>lnk{Home}+lnk{About}+lnk{Pricing}
Output
nav
  container
    div.logo
      a "Divhunt"
    div.menu          <-- ^ climbs back up
      a "Home"
      a "About"
      a "Pricing"
Example 09

Hero section

Input
section.hero>container>h1{Build Without Limits}+p{Create stunning websites with zero code.}+div.buttons>btn{Start Free}+btn{Watch Demo}
Output
section.hero
  container
    h1
      "Build Without Limits"
    p
      "Create stunning websites with zero code."
    div.buttons
      button "Start Free"
      button "Watch Demo"
Example 10

Feature grid

Input
section>container>h2{Why Choose Us}+div.grid>div.feature*4>i+h3{Feature}+p{Description}
Output
section
  container
    h2
      "Why Choose Us"
    div.grid
      div.feature
        i
        h3 "Feature"
        p  "Description"
      div.feature
        ...
      div.feature
        ...
      div.feature
        ...
Example 11

Pricing table

Input
section>container>h2{Pricing}+div.plans>div.plan*3>h3{Plan}+p.price{$29/mo}+ul>li{Feature one}+li{Feature two}+li{Feature three}^btn{Choose Plan}
Output
section
  container
    h2 "Pricing"
    div.plans
      div.plan
        h3 "Plan"
        p.price "$29/mo"
        ul
          li "Feature one"
          li "Feature two"
          li "Feature three"
        button "Choose Plan"     <-- ^ climbs out of ul
      div.plan
        ...
      div.plan
        ...
Example 12

Testimonials

Input
section>container>h2{What People Say}+div.grid>div.testimonial*3>blockquote{This changed everything.}+div.author>img+div>h4{John Doe}+p{CEO, Company}
Output
section
  container
    h2 "What People Say"
    div.grid
      div.testimonial
        blockquote "This changed everything."
        div.author
          img
          div
            h4 "John Doe"
            p  "CEO, Company"
      div.testimonial
        ...
      div.testimonial
        ...
Example 13

Footer

Input
ftr>container>div.grid>div.col*4>h4{Column}+lnk{Link One}+lnk{Link Two}+lnk{Link Three}^div.bottom>p{© 2026 Divhunt}
Output
footer
  container
    div.grid
      div.col
        h4 "Column"
        a  "Link One"
        a  "Link Two"
        a  "Link Three"
      div.col ...
      div.col ...
      div.col ...
    div.bottom
      p "© 2026 Divhunt"
Example 14

Blog listing

Input
section>container>h1{Blog}+div.posts>div.post*3>img+div.content>h3{Post Title}+p{A short excerpt.}+lnk{Read More}
Output
section
  container
    h1 "Blog"
    div.posts
      div.post
        img
        div.content
          h3 "Post Title"
          p  "A short excerpt."
          a  "Read More"
      div.post ...
      div.post ...
Example 15

Grouping with ()

Input
section>container>(h2{Title}+p{Content}+btn{Learn More})*3
Output
section
  container
    h2     "Title"
    p      "Content"
    button "Learn More"
    h2     "Title"
    p      "Content"
    button "Learn More"
    h2     "Title"
    p      "Content"
    button "Learn More"
Example 16

Full landing page

Input
hdr>container>div.logo>lnk{Divhunt}^nav>lnk{Features}+lnk{Pricing}+btn{Sign Up}^section.hero>container>h1{Build Your Website}+p{No code. No limits.}+div.cta>btn{Get Started}+btn{See Demo}^section.features>container>h2{Features}+div.grid>div.feature*3>i+h3{Feature}+p{Description}^ftr>container>p{© 2026 Divhunt}
Output
header
  container
    div.logo
      a "Divhunt"
    nav
      a "Features"
      a "Pricing"
      button "Sign Up"
section.hero
  container
    h1 "Build Your Website"
    p  "No code. No limits."
    div.cta
      button "Get Started"
      button "See Demo"
section.features
  container
    h2 "Features"
    div.grid
      div.feature
        i
        h3 "Feature"
        p  "Description"
      div.feature ...
      div.feature ...
footer
  container
    p "© 2026 Divhunt"

04Tips

  • Start simple, like section>container>h1+p, then add complexity.
  • Use aliases to type faster, sec>cont>btn instead of section>container>button.
  • Use ^ when you need to go back up after nesting deep.
  • Use * to create grids and repeated patterns quickly.
  • Use () with * to repeat entire groups of elements.
  • The preview shows your structure before creating, check it before hitting Enter.

Built in Divhunt

We use cookies.

By clicking “Accept All”, you agree to the storing of cookies on your device to enhance site navigation, analyze site usage, and assist in our marketing efforts. View ourCookie Policyfor more information.

Optahunt

Preferences

Manage your cookie preferences.

Essentials

Always Active

These are required for the website to work, like remembering your privacy settings, keeping you logged in, or enabling secure payments.

Performance

These help us understand how people use our site (like which pages are most popular) so we can make improvements.

Personalization

These allow the site to remember your preferences (such as language or region) and provide enhanced features.

Advertising & Targeting

These are used to deliver ads more relevant to you, limit how often you see them, and measure campaign performance.

Save my preferences

You can always change these settings later via ourCookie Policy pagepage, or via the cookie widget placed at the bottom left of the page.