Blog
Zen Coding : A new way to write HTML using CSS selectors
∞
Nov 22, 2009
Zen Coding is something that's running hot on Twitter right now and with good reason. This handy set of tools developed by Sergey Chikuyonok allows you to write HTML using CSS-like selector syntax. This really does look like a great time saver and I know it's going to make my own life a lot easer.
Zen Coding is something that's running hot on Twitter right now and with good reason. This handy set of tools developed by Sergey Chikuyonok allows you to write HTML using CSS-like selector syntax. This really does look like a great time saver and I know it's going to make my own life a lot easer.
You can find a comprehensive write up on Zen Coding over at Smashing Magazine which you really should read. Here's the bit from Smashing Magazine's Zen Coding article that sold me:
...but what if you could use CSS selectors not just to style and access elements, but to generate code? For example, what if you could write this...
div#content>h1+p...and see this as the output?
<div id="content">
<h1></h1>
<p></p>
</div>
Zen Coding v0.5 from Sergey Chikuyonok on Vimeo.