DEV Community

Rishi
Rishi

Posted on

1 1

Emmet Simplified 😍

Emmet is a web-developer’s toolkit that can greatly improve your HTML & CSS workflow

Type Syntax Example1
Child > nav>ul>li
Sibling + div+p+bq
Climb-up ^ div+div>p>span+em^^bq
Multiplication * ul>li*5
Grouping () (div>dl>(dt+dd)*3)+footer>p
Item numbering $ ul>li.item$*5>{$}
Item numbering h$[title=item$]{Header $$$}*6
Id # div#title
Class . div.title
Custom attributes [] p[title="Hello Rishi Abee"]
Text {} a{Click me}
Lorem (random length) >lorem p>lorem
Lorem (defined length) >lorem10 p>lorem10

HTML boilerplate

!
link
https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css

Alt Text

Usage example - Header

nav.navbar.navbar-expand-md.navbar-dark.fixed-top.bg-dark>a.navbar-brand>{Brown Bag Session}^^main>((div.jumbotron>div.container>h1.display-3>{Hello Rishi Abee})+div.container)

Usage example - Body

(h${Header $}*6)+(bq.blockquote3>p.mb-0>lorem10+footer.blockquote-footer>lorem2)

Usage example - Footer

hr+footer.container>p>{UnLicensed}


  1. Emmet cheatsheet 

Speedy emails, satisfied customers

Postmark Image

Are delayed transactional emails costing you user satisfaction? Postmark delivers your emails almost instantly, keeping your customers happy and connected.

Sign up

Top comments (0)

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs

👋 Kindness is contagious

Immerse yourself in a wealth of knowledge with this piece, supported by the inclusive DEV Community—every developer, no matter where they are in their journey, is invited to contribute to our collective wisdom.

A simple “thank you” goes a long way—express your gratitude below in the comments!

Gathering insights enriches our journey on DEV and fortifies our community ties. Did you find this article valuable? Taking a moment to thank the author can have a significant impact.

Okay