SlideShare una empresa de Scribd logo
1 de 15
Emmet(Zen Coding)
Overview
What is Emmet?
“Emmet (previously known as Zen Coding)
is a web-developer’s toolkit that can
greatly improve your HTML & CSS
workflow:”
                          Emmet web site
How to Install it?
You should have one of those IDE
Download Emmet plugin:
Go to http://docs.emmet.io/ and chose your
favorite IDE from the list.

Follow the instruction and install the plugin

Some editors support package control and
console line plugin installation
Syntax
Expand single element (element name)
You type:          You get:

div                <div></div>

p                  <p></p>

img                <img src="" alt="">
Expand multiple elements (*n)
                 You get:
You type:

                 <div></div>
 div*2           <div></div>

                 <p></p>
                 <p></p>
 p*3             <p></p>
                 <p></p>

 img*2           <img src="" alt="">
                 <img src="" alt="">
Add Custom text in elements({})
You type:         You get:

 p{Lorem ipsum}   <p>
                         Lorem ipsum
                  </p>


 a{Click me}
                  <a href=“”>Click me</a>
Element nesting (>) child nesting
You type:         You get:

ul>li             <ul>
                           <li></li>
                  </ul>


                  <div>
div>p                      <p></p>
                  </div>
Element nesting (+) siblings nesting
You type:                      You get:

 Same Level as second div
                               <div></div>
                               <div>
div+div>p+span                       <p></p>
                                     <span></span>
                               </div>
 Same Level as the p element
Element nesting (^) climb up
You type:                            You get:

 Level 2 nesting   Back to Level 1
                                     <div>
                                              <p>
div>p>span^span                               <span></span>
                                              </p>
                                              <span></span>
                                     </div>
Element nesting (^) climb up
You type:                     You get:

 Level 2 nesting
                              <div>
                                      <p>
div>p>span^^span                      <span></span>
                                      </p>
                              </div>
         Outside of nesting
                              <span></span>
Attributs
Id attribute:           <div id=“header”>
div#header              </div>


class attribute         <div class=“someHeader”>
                        </div>
div.someHeader

                        <div name=“theHead”>
custom attribute
                        </div>
div[name = “theHead”]

Más contenido relacionado

Similar a Emmet(zen coding)

Div Tag Tutorial
Div Tag TutorialDiv Tag Tutorial
Div Tag Tutorial
bav123
 
Rails Presentation - Technology Books, Tech Conferences
 Rails Presentation - Technology Books, Tech Conferences Rails Presentation - Technology Books, Tech Conferences
Rails Presentation - Technology Books, Tech Conferences
tutorialsruby
 
jQuery%20on%20Rails%20Presentation
jQuery%20on%20Rails%20PresentationjQuery%20on%20Rails%20Presentation
jQuery%20on%20Rails%20Presentation
guestcf600a
 
jQuery%20on%20Rails%20Presentation
jQuery%20on%20Rails%20PresentationjQuery%20on%20Rails%20Presentation
jQuery%20on%20Rails%20Presentation
guestcf600a
 
JQuery-Tutorial" />
  JQuery-Tutorial" />  JQuery-Tutorial" />
JQuery-Tutorial" />
tutorialsruby
 
Your Custom WordPress Admin Pages Suck
Your Custom WordPress Admin Pages SuckYour Custom WordPress Admin Pages Suck
Your Custom WordPress Admin Pages Suck
Anthony Montalbano
 
Internal training - Eda
Internal training - EdaInternal training - Eda
Internal training - Eda
Tony Vo
 
Completing Your Design with WordPress
Completing Your Design with WordPressCompleting Your Design with WordPress
Completing Your Design with WordPress
Chelsea Otakan
 
CSS Selector
CSS SelectorCSS Selector
CSS Selector
Calos Kao
 

Similar a Emmet(zen coding) (20)

Div Tag Tutorial
Div Tag TutorialDiv Tag Tutorial
Div Tag Tutorial
 
jquery
jqueryjquery
jquery
 
jquery
jqueryjquery
jquery
 
W3C XBL 2.0 and Widgets 1.0
W3C XBL 2.0 and Widgets 1.0 W3C XBL 2.0 and Widgets 1.0
W3C XBL 2.0 and Widgets 1.0
 
Rails Presentation - Technology Books, Tech Conferences
 Rails Presentation - Technology Books, Tech Conferences Rails Presentation - Technology Books, Tech Conferences
Rails Presentation - Technology Books, Tech Conferences
 
jQuery%20on%20Rails%20Presentation
jQuery%20on%20Rails%20PresentationjQuery%20on%20Rails%20Presentation
jQuery%20on%20Rails%20Presentation
 
jQuery%20on%20Rails%20Presentation
jQuery%20on%20Rails%20PresentationjQuery%20on%20Rails%20Presentation
jQuery%20on%20Rails%20Presentation
 
JQuery-Tutorial" />
  JQuery-Tutorial" />  JQuery-Tutorial" />
JQuery-Tutorial" />
 
XML Binding Language 2.0
XML Binding Language 2.0XML Binding Language 2.0
XML Binding Language 2.0
 
Jquery
JqueryJquery
Jquery
 
DOM and Events
DOM and EventsDOM and Events
DOM and Events
 
Easy Guide to WordPress Theme Integration
Easy Guide to WordPress Theme IntegrationEasy Guide to WordPress Theme Integration
Easy Guide to WordPress Theme Integration
 
Introduction to Vue.js
Introduction to Vue.jsIntroduction to Vue.js
Introduction to Vue.js
 
What is HTML5?
What is HTML5?What is HTML5?
What is HTML5?
 
J querypractice
J querypracticeJ querypractice
J querypractice
 
Your Custom WordPress Admin Pages Suck
Your Custom WordPress Admin Pages SuckYour Custom WordPress Admin Pages Suck
Your Custom WordPress Admin Pages Suck
 
Grok Drupal (7) Theming
Grok Drupal (7) ThemingGrok Drupal (7) Theming
Grok Drupal (7) Theming
 
Internal training - Eda
Internal training - EdaInternal training - Eda
Internal training - Eda
 
Completing Your Design with WordPress
Completing Your Design with WordPressCompleting Your Design with WordPress
Completing Your Design with WordPress
 
CSS Selector
CSS SelectorCSS Selector
CSS Selector
 

Más de Михаил Петров (11)

JS Event Model
JS Event ModelJS Event Model
JS Event Model
 
DOM API Java Script
DOM API Java ScriptDOM API Java Script
DOM API Java Script
 
Object - Oriented Java Script
Object - Oriented Java ScriptObject - Oriented Java Script
Object - Oriented Java Script
 
strings and objects in JavaScript
strings and  objects in JavaScriptstrings and  objects in JavaScript
strings and objects in JavaScript
 
Arrays and Functions in JavaScript
Arrays and Functions in JavaScriptArrays and Functions in JavaScript
Arrays and Functions in JavaScript
 
JavaScript intro
JavaScript introJavaScript intro
JavaScript intro
 
Html 5 Semantics overview
Html 5 Semantics overviewHtml 5 Semantics overview
Html 5 Semantics overview
 
Less & Sass
Less & SassLess & Sass
Less & Sass
 
Css selectors
Css selectorsCss selectors
Css selectors
 
Pseudo CSS Selectors
Pseudo CSS SelectorsPseudo CSS Selectors
Pseudo CSS Selectors
 
Науката през погледа на младите
Науката през погледа на младитеНауката през погледа на младите
Науката през погледа на младите
 

Último

Salient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functionsSalient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functions
KarakKing
 
Spellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please PractiseSpellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please Practise
AnaAcapella
 

Último (20)

Spatium Project Simulation student brief
Spatium Project Simulation student briefSpatium Project Simulation student brief
Spatium Project Simulation student brief
 
Salient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functionsSalient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functions
 
Micro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfMicro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdf
 
Google Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptxGoogle Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptx
 
Python Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxPython Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docx
 
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdfUGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
 
Unit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxUnit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptx
 
Sociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning ExhibitSociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning Exhibit
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptx
 
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptxSKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
 
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
 
Spellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please PractiseSpellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please Practise
 
On National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsOn National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan Fellows
 
FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024
 
Wellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptxWellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptx
 
Making communications land - Are they received and understood as intended? we...
Making communications land - Are they received and understood as intended? we...Making communications land - Are they received and understood as intended? we...
Making communications land - Are they received and understood as intended? we...
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.ppt
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The Basics
 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.
 
How to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSHow to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POS
 

Emmet(zen coding)

  • 3. “Emmet (previously known as Zen Coding) is a web-developer’s toolkit that can greatly improve your HTML & CSS workflow:” Emmet web site
  • 5. You should have one of those IDE
  • 6. Download Emmet plugin: Go to http://docs.emmet.io/ and chose your favorite IDE from the list. Follow the instruction and install the plugin Some editors support package control and console line plugin installation
  • 8. Expand single element (element name) You type: You get: div <div></div> p <p></p> img <img src="" alt="">
  • 9. Expand multiple elements (*n) You get: You type: <div></div> div*2 <div></div> <p></p> <p></p> p*3 <p></p> <p></p> img*2 <img src="" alt=""> <img src="" alt="">
  • 10. Add Custom text in elements({}) You type: You get: p{Lorem ipsum} <p> Lorem ipsum </p> a{Click me} <a href=“”>Click me</a>
  • 11. Element nesting (>) child nesting You type: You get: ul>li <ul> <li></li> </ul> <div> div>p <p></p> </div>
  • 12. Element nesting (+) siblings nesting You type: You get: Same Level as second div <div></div> <div> div+div>p+span <p></p> <span></span> </div> Same Level as the p element
  • 13. Element nesting (^) climb up You type: You get: Level 2 nesting Back to Level 1 <div> <p> div>p>span^span <span></span> </p> <span></span> </div>
  • 14. Element nesting (^) climb up You type: You get: Level 2 nesting <div> <p> div>p>span^^span <span></span> </p> </div> Outside of nesting <span></span>
  • 15. Attributs Id attribute: <div id=“header”> div#header </div> class attribute <div class=“someHeader”> </div> div.someHeader <div name=“theHead”> custom attribute </div> div[name = “theHead”]