SlideShare une entreprise Scribd logo
1  sur  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”]

Contenu connexe

Tendances

Introduction to xhtml
Introduction to xhtmlIntroduction to xhtml
Introduction to xhtml
Dhairya Joshi
 

Tendances (9)

CSS Cheat Sheet Reference PDF
CSS Cheat Sheet Reference PDFCSS Cheat Sheet Reference PDF
CSS Cheat Sheet Reference PDF
 
Computer Graphics Lab File C Programs
Computer Graphics Lab File C ProgramsComputer Graphics Lab File C Programs
Computer Graphics Lab File C Programs
 
18 ellipses x
18 ellipses x18 ellipses x
18 ellipses x
 
12 graphs of second degree functions x
12 graphs of second degree functions x12 graphs of second degree functions x
12 graphs of second degree functions x
 
Introduction to xhtml
Introduction to xhtmlIntroduction to xhtml
Introduction to xhtml
 
Python File Handling | File Operations in Python | Learn python programming |...
Python File Handling | File Operations in Python | Learn python programming |...Python File Handling | File Operations in Python | Learn python programming |...
Python File Handling | File Operations in Python | Learn python programming |...
 
15 translations of graphs x
15 translations of graphs x15 translations of graphs x
15 translations of graphs x
 
XML and DTD
XML and DTDXML and DTD
XML and DTD
 
Web 2 | CSS - Cascading Style Sheets
Web 2 | CSS - Cascading Style SheetsWeb 2 | CSS - Cascading Style Sheets
Web 2 | CSS - Cascading Style Sheets
 

Similaire à 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
 

Similaire à 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
 

Plus 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
 
Науката през погледа на младите
Науката през погледа на младитеНауката през погледа на младите
Науката през погледа на младите
 

Dernier

Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
ZurliaSoop
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
QucHHunhnh
 
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
kauryashika82
 

Dernier (20)

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
 
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17  How to Extend Models Using Mixin ClassesMixin Classes in Odoo 17  How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introduction
 
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
 
Understanding Accommodations and Modifications
Understanding  Accommodations and ModificationsUnderstanding  Accommodations and Modifications
Understanding Accommodations and Modifications
 
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
 
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...
 
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
 
Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdf
 
ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701
 
Magic bus Group work1and 2 (Team 3).pptx
Magic bus Group work1and 2 (Team 3).pptxMagic bus Group work1and 2 (Team 3).pptx
Magic bus Group work1and 2 (Team 3).pptx
 
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
 
Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)
 
How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17
 
psychiatric nursing HISTORY COLLECTION .docx
psychiatric  nursing HISTORY  COLLECTION  .docxpsychiatric  nursing HISTORY  COLLECTION  .docx
psychiatric nursing HISTORY COLLECTION .docx
 
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
 
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”]