History
Zen coding a speedy way of writing HTML codes using CSS-like selector like syntax. It’s originally proposed by Vadim Makeev, 2008, being famous after matured by Sergey Chikuyonok, 2009. It then evolved into Emmet, 2013.
A simple example
The following code:
div#content>h1+p
generates:
<div id="content">
<h1></h1>
<p></p>
</div>
Basic usage
- document
html:5or!
- easy add
- class,
. - id,
# - text,
{} - attribute,
[]
- class,
- nesting
- child,
> - sibling,
+ - upper level,
^
- child,
- grouping,
() - implicit tag names[1]
- default,
div liforulandoltrfortable,tbody,theadandtfoottdfortroptionforselectandoptgroup
- default,
- multiplication,
* - numbering,
$ loremorlipsum
loremN will generate N random words.
- Emmet is intelligent to guess the tag name omited. For example,
.itemin<ul>will generate<li class="item"></li>. ↩
本文介绍了Zencoding,一种快速编写HTML代码的方法,使用类似于CSS选择器的语法。它最初由Vadim Makeev于2008年提出,并在Sergey Chikuyonok的推动下成熟起来。2013年发展成为Emmet。本文还提供了基本用法示例。

被折叠的 条评论
为什么被折叠?



