Zen Coding Generating HTML from selectors
Normally we use CSS selectors to find and tear apart HTML. Sergey Chikuyonok’s jujitsu move is to do the opposite. With Zen Coding you take a CSS selector like this:
PLAIN TEXT
HTML: html:xt>div#header>div#logo+ul#nav>li.item-$*5>a and it generates an HTML structure like this:
PLAIN TEXT
HTML: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns=”http://www.w3.org/1999/xhtml” xml:lang=”en”> <head> <title></title> [...]



Loading...