Use Emmet to up your HTML game

Sdílet
Vložit
  • čas přidán 5. 08. 2024
  • Get your Emmet cheat sheet here: kevin-powell.ck.page/f197c78a95
    Emmet is one of those things that I honestly struggle to work without these days, and is something that many don't use to its full potential, so in this video, I cover some of the most useful features that it has :).
    //// Chapters
    00:00 - Introduction
    00:39 - HTML5 Boilerplate
    01:32 - Basic tags
    02:15 - Classes and IDs
    04:17 - Nest elements
    05:02 - Multiply elements
    06:35 - Sibling elements
    08:46 - Link to CSS
    09:11 - Filler text
    10:52 - Outro
    #html
    --
    Come hang out with other dev's in my Discord Community
    💬 / discord
    ---
    Keep up to date with everything I'm up to
    ✉ www.kevinpowell.co/newsletter
    ---
    Help support my channel
    👨‍🎓 Get a course: www.kevinpowell.co/courses
    👕 Buy a shirt: teespring.com/stores/making-t...
    💖 Support me on Patreon: / kevinpowell
    ---
    My editor: VS Code - code.visualstudio.com/
    ---
    I'm on some other places on the internet too!
    If you'd like a behind the scenes and previews of what's coming up on my CZcams channel, make sure to follow me on Instagram and Twitter.
    Instagram: / kevinpowell.co
    Twitter: / kevinjpowell
    Codepen: codepen.io/kevinpowell/
    Github: github.com/kevin-powell
    ---
    And whatever you do, don't forget to keep on making your corner of the internet just a little bit more awesome!

Komentáře • 228

  • @greenonionsalad
    @greenonionsalad Před 3 lety +89

    One more thing to add which is one of my favourites is adding a $ which increments each item by 1. For example, ".colors$*5" will give you 5 divs each with their own classname (color1, color2, color3, color4, color5)

    • @glory_av
      @glory_av Před 2 lety +1

      This is in the cheatsheet👍

    • @MoHafiz71
      @MoHafiz71 Před rokem

      So nice too, great 👌

    • @CaioMGA
      @CaioMGA Před 8 měsíci

      that's nice

    • @dysania1832
      @dysania1832 Před měsícem

      oh you meant (colors1, colors2, colors3, colors4, colors5)?

  • @metalfacemartinez
    @metalfacemartinez Před 3 lety +20

    I LOVE Emmet. It cuts down on the tedium of hand writing HTML. Imagine using it with voice recognition. Now you're the programmer of the future, baby.

    • @JannisAdmek
      @JannisAdmek Před 3 lety +4

      sounds really awesome but tbh I feel to lazy to talk abd rather type :D

    • @sicfxmusic
      @sicfxmusic Před 3 lety +1

      Imagine a person beside you in the office or a coffee shop constantly talking to his computer 😋 and occasionally yells at it 😂

  • @MrJbramirez
    @MrJbramirez Před 3 lety +10

    this channel is gold. you deserve a long life kevin!

  • @mirshahbazali2727
    @mirshahbazali2727 Před 3 lety +32

    You can also do
    ul>li*3>a[text here]
    To add filler text

    • @oxyaego4594
      @oxyaego4594 Před 3 lety

      Didn't know this one! Thank you

    • @utkarshagrawal3640
      @utkarshagrawal3640 Před 3 lety +2

      Wrong u have to use curly braces for inner text!

    • @PaulMcCannWebBuilder
      @PaulMcCannWebBuilder Před 3 lety +7

      Square brackets give you attributes, curlies give you text content, and you don't need the li, since emmet knows what goes in a ul.
      ul>.item$*3>a[href=#]{text here} gives you li's with numbered class names, placeholders for link urls and text inside.

    • @EyeIn_The_Sky
      @EyeIn_The_Sky Před 3 lety

      @@PaulMcCannWebBuilder Nice one, thanks!

    • @hjetwd
      @hjetwd Před 3 lety +1

      a[text here] -
      a[attribute="value"]{text} - text
      li*3>a[href="#$" title="its $ link"]{$} -
      1
      2
      3

  • @Wukwuk21
    @Wukwuk21 Před 3 lety +3

    I learn web development for 3 years in Vocational High School, and never ever my teacher teach me this at ALL, and I wonder why I'm so serious about school lessons/projects while I can learn better on youtube. imagine having a teacher like you in my school, probably could launch my own website company with 3 years of your teaching. Thank you so much, u might be my dad on my web dev journey! xD

  • @taipham6799
    @taipham6799 Před 3 lety +3

    My friends have been recommended to your channel, so I really grateful for that.

  • @marcelino-dev
    @marcelino-dev Před 3 lety +2

    I have been using Emmet for a long while without knowing that I could just hit the Tab button to move inside the elements. You just taught me something really valuable. Thank you!

  • @karinarodriguez2055
    @karinarodriguez2055 Před 3 lety +4

    I don't get tired of saying that you're AMAZING! Thank you!

  • @mikematenkosky
    @mikematenkosky Před 3 lety +1

    Kept forgetting about that Lorem Ipsum "trick". I'm just a "hobby web designer", so I always learn something from you. Thank you and keep up the good work!

  • @gbdaeye
    @gbdaeye Před 3 lety

    I noticed how quick you were able to add the tags in one of your last videos, so this video is much appreciated! I tried typing 'html' after watching your sass video at the start of a VS file (without any extension loaded I know of) and it came up with the declaration. I have learnt so much from this new video. You are so cool. I am headed to your courses.

  • @seggremalac
    @seggremalac Před 3 lety +4

    Hi Kevin,
    First of all thank your for this video. I'm new with VSCode and it will help me a lot.
    I really admire your knowledge and love your calm and relaxing presentation style. I started one of your courses on Scrimba and that's brilliant too. I know a lot of the topic but my knowledge is outdated. You fill up the missing parts and help putting it together.
    Thank you!

  • @hash5one600
    @hash5one600 Před rokem

    I just love your videos, Kevin!! - Thank you for putting out such great, hight quality, content.

  • @esagecantu
    @esagecantu Před 3 lety

    Love the video. It has what I needed since I am still working on my skills but time is the essence to get project done. Thank you.

  • @marcotronic
    @marcotronic Před 3 lety +3

    Great! Didn't know about emmet at all :) To those who are also wondering (like me) why it doesn't work out of the box... You don't have to install any plugin/extension. Just make sure you save your empty file as HTML file first - then it's working ;)

  • @danjmillier
    @danjmillier Před 3 lety

    Fantastic video, Kevin! Love using Emmet, it really saves time!

  • @axwax2
    @axwax2 Před 3 lety

    Thanks, this is super helpful, and getting a cheat sheet too is just the cherry on top!

  • @adnanamin1843
    @adnanamin1843 Před 3 lety

    That GLASS looks cool, Kevin! :) Awesome tut!!

  • @fionamorris8093
    @fionamorris8093 Před 3 lety +2

    Wish I could hit the like button more than once! Thank you for such clear and kind teaching!

  • @skillzorskillsson8228
    @skillzorskillsson8228 Před 3 lety +7

    One thing that i like about emmet is that i may have a wrapper div and inside that div i make a nav like .wrapper>nav>ul>li*5>a but then below the nav tag i may want to have a div.container and inside that i may want a div.content. I can use parentheses like this .wrapper>(nav>ul>li*5>a)+.container>.content>img*5 so that is even more advanced but it is so useful. I love emmet

    • @skillzorskillsson8228
      @skillzorskillsson8228 Před 3 lety +3

      i also really love that it works for css so i can just write bg and hit tab and it completes it and make background #000; for me. Or i can do pos:abs and hit tab and it makes position:absolute; or i can write w for width or h for height and so on

    • @skillzorskillsson8228
      @skillzorskillsson8228 Před 3 lety +1

      Btw, if someone just wants to try emmet before downloading it, you can try on codepen. They have emmet implemented already :)

  • @RameenFallschirmjager
    @RameenFallschirmjager Před 3 lety +2

    Nice refresher.

  • @mohan9285
    @mohan9285 Před 3 lety +3

    Amazing "Kevin" and "Emmet", I love you both.

  • @StrengthScholar0
    @StrengthScholar0 Před 3 lety

    MIND BLOWN...
    Thanks for the amazing content man!

  • @romewithbuck3513
    @romewithbuck3513 Před 3 lety

    Awesome video!!!! Currently learning html5 /css/js. Save me so much time!!

  • @techslugz
    @techslugz Před 3 lety

    Looks really powerful. I will def use this in the future when my html and css are more productive

  • @top10information25
    @top10information25 Před 2 lety

    I have been following you since I started learning programming, thumbs up!!!

  • @sprtlife6261
    @sprtlife6261 Před 2 lety

    Dude, this was super valuable! Thanks!

  • @zafaris
    @zafaris Před 3 lety +1

    Great video Kevin! I'm sure this video will save hours of my time, as well as many other people's time. Thanks! 🤩👍🏽

  • @djshiva
    @djshiva Před rokem

    Wow. This is so handy! Your videos are so fantastic. Thank you!

  • @dhpcode
    @dhpcode Před rokem

    That's very cool bro! Absolutely wonderful!!!

  • @coderkushal
    @coderkushal Před 3 lety +1

    Thank you so much for this video, This is super helpful!

  • @StephenMoreira
    @StephenMoreira Před 3 lety

    Life changing. Something I always knew of but always ignored. Thanks.

  • @MelodicMethod
    @MelodicMethod Před rokem

    I had the same reaction you did on the code gen. This is awesome.

  • @digigoliath
    @digigoliath Před 3 lety

    Awesome!!! TQVM!! Emmet makes programming fun.

  • @tammywoks8997
    @tammywoks8997 Před 2 lety

    You are just brilliant Kevin

  • @anihe8892
    @anihe8892 Před 3 měsíci

    WOW. Really great and will help a lot. Thank you very much for this video.😊😊😊

  • @rohan1765
    @rohan1765 Před 3 lety +4

    Awesome , extremely helpful

  • @theresco2961
    @theresco2961 Před 3 lety

    Very interesting and easy to follow , thank you ❤️❤️

  • @yashkumarsinghpatwa9267

    Really Amazing to learn all these shorthand tricks .....Thank you, sir ... Looking for more such tips and tricks

  • @mariarodriguezva3606
    @mariarodriguezva3606 Před měsícem

    Dude! you rock! This is gold

  • @briancross4415
    @briancross4415 Před 3 lety

    Awesome video Kevin. Emmett is fantastic.

  • @Pfoffie
    @Pfoffie Před 3 lety +3

    When I learned about emmet some years back…
    I have never been the same again.

  • @thelittlenatureshow
    @thelittlenatureshow Před rokem

    Fabulous. You are my hero!

  • @urssounds
    @urssounds Před 2 lety

    Wow! That's super helpful!

  • @rubensmailbag
    @rubensmailbag Před 3 lety

    Kevin, you are the man, man.

  • @robertodepasamonte3434
    @robertodepasamonte3434 Před 3 lety +5

    Thank you for these tips on Emmet -- definitely time savers. One request -- could you do a video on how to use snippets in VS Code. Would be great time saver to have HTML & CSS snippets for the (1) logo and right-aligned nav , (2) hero section with bg image with titles and buttons, (3) row with three or four column flexbox (&/or css grid) layout, and (4) four column footer layout using flexbox (&/or css grid).

  • @geoffreyguez
    @geoffreyguez Před 3 lety +1

    perfect combo with Tabnine (AI auto completion extention)
    Nice video !

  • @BillWhammers
    @BillWhammers Před 2 lety

    that was bloody amazing

  • @ABMA79
    @ABMA79 Před 3 lety

    it is an amazing and educative video.
    Thanks a lot for the wonderful tips.
    I would love you to make a series of designing a whole website from scratch.
    This way, we can follow along and learn the tricks necessary for us to keep in mind regarding design in general and also, learn some new tips about CSS and how to make our page responsive and control its responsiveness.
    If you can achieve that series, I will be in debt to you forever brother..
    I think you are the best that has ever explained CSS, HTML, and bootstrap so far.

  • @1230124
    @1230124 Před 3 lety

    Very useful video~!!!! so clear and help me a lot
    thanks you!

  • @voyagernz4172
    @voyagernz4172 Před 3 lety

    Keeping your cheatsheet behind a email newsletter aye...
    I see you know your Judo well!
    Subscribed 👍

  • @SerilaBuck
    @SerilaBuck Před 3 lety +2

    One of the usefull thing I set up in Vscode is the "editor.emmet.action.wrapWithAbbreviation"keyboard shortcut ,
    so I can make a selection, or multi selection or place the cursor wherever I want(even in non html files), hit the shortcut, and wrap or insert my emmet generated html in place.

    • @KevinPowell
      @KevinPowell  Před 3 lety +1

      Yup, wrap with Emmet Abbreviation is the best :D

    • @godmansarah
      @godmansarah Před 3 lety

      Yes, I saw Kevin using this in a video, and added my own shortcut key for it also. Love it!

  • @RaynellJamal
    @RaynellJamal Před 3 lety

    Wow! love this!

  • @hectorg362
    @hectorg362 Před 3 lety

    Wow. I really wished I knew this earlier. Thanks for this!

  • @frujunior67
    @frujunior67 Před 3 lety +1

    This makes you look like a pro 😎
    Thanks 👍

  • @onestepwebdev
    @onestepwebdev Před 3 lety

    Thanks Kevin, very helpful

  • @lunaya9
    @lunaya9 Před 3 lety

    WOW!! Thank you!! This is awesome ! SOOOOOOO FAST!!!

  • @InfinitelyScrolling
    @InfinitelyScrolling Před 3 lety

    So cool, so handy, I love this so much.

  • @chrisbenjamin3072
    @chrisbenjamin3072 Před 3 lety

    Thank you for this video!

  • @LearnWithSazzad
    @LearnWithSazzad Před 3 lety

    awesome video. thanks man. you are amazing

  • @animefanboy842
    @animefanboy842 Před 3 lety +30

    lol first time in history i know this all lmao

  • @minzcode
    @minzcode Před 3 lety

    Great video. Very helpful. 😉

  • @hankbrown8421
    @hankbrown8421 Před 3 lety

    U saved me so much time ty

  • @Elliot7676
    @Elliot7676 Před 3 lety

    Kevin You'r a saviour :) thankx

  • @CodeSigmaStudios
    @CodeSigmaStudios Před 3 lety +1

    you are a hero!!!!

  • @1337ghomri
    @1337ghomri Před 3 lety

    My mind is blown! I have been coding HTML for 9 years, and I didn't know it could be this easy.

  • @blonduose
    @blonduose Před 3 lety

    wow that Lorem thing got me....how many times did i google lorem ipsum :D the other ones I already knew thanks to you :D

  • @masoodkhanpatel
    @masoodkhanpatel Před 3 lety

    this is sooo awesome!

  • @AmandaLucaseu
    @AmandaLucaseu Před 3 lety

    Love this!

  • @JanCabanik
    @JanCabanik Před 3 lety

    Cool. I love your videos. Thx

  • @JohnBortins
    @JohnBortins Před 3 lety

    Outstanding!

  • @Parthivi56
    @Parthivi56 Před 3 lety

    Mind blown!! WOW!!!

  • @PaulMcCannWebBuilder
    @PaulMcCannWebBuilder Před 3 lety

    Emmet has other 'implicit' tag completions too. div>.classname will give you a child div but a>.classname will give you a span (since a is inline, only inline elements should go inside it). ul>.classname gives you a li, and table tags build themselves. Something like:
    table>.row$*4>.first+[colspan=2] gives you all the proper nested html.

    • @KevinPowell
      @KevinPowell  Před 3 lety +1

      Oh, that's a great point Paul! I forgot about that to be honest, I always write span when I need one. Something for part 2!

  • @gruanger
    @gruanger Před 3 lety

    Thank you!

  • @ofek15
    @ofek15 Před 3 lety

    Thank you Kevin, now I can make full website with one line of code

  • @miku6701
    @miku6701 Před 3 lety

    Yes, I learnt something new today.😊

  • @moonlightmelody5527
    @moonlightmelody5527 Před 2 lety

    Amazing!

  • @aniketbhalla1521
    @aniketbhalla1521 Před 3 lety

    That's awesome ☺️👌. I got to learn about making siblings in this. Thanks sir.💯

  • @erikbrewer3161
    @erikbrewer3161 Před 3 lety

    That was awesome

  • @RealNaps
    @RealNaps Před 3 lety

    Thanks for making me better at css

  • @MoElkomy
    @MoElkomy Před 2 lety

    Thank You so much You are Great

  • @vahidjamshidnejad9525
    @vahidjamshidnejad9525 Před 2 lety

    very useful 👌

  • @CharlesSmall
    @CharlesSmall Před 3 lety

    You are the king

  • @uchihaitachi2185
    @uchihaitachi2185 Před 3 lety

    Thank you as always : ) .
    A random question : do you recommend using Bulma as a CSS framework ?

  • @teslad4real
    @teslad4real Před 3 lety

    OMG This is awesome

  • @JigneshPosarekar
    @JigneshPosarekar Před 3 lety

    You're the best sir 😇👍🏻

  • @blackpurple9163
    @blackpurple9163 Před 2 lety

    I use enter key like you use tab, but no matter which one I press when typing the name or value in a tag or attribute, it doesn't jump to the next place like you'r yours is jumping at 5:57, instead, it puts in spaces between words (when used tab key) or switch to a new like (when using enter key), do I need to set up something first?

  • @ozzyfromspace
    @ozzyfromspace Před 3 lety +17

    So, we all love Emmet. Anyone named their son that yet? 😂😂

    • @SRG-Learn
      @SRG-Learn Před 3 lety +1

      Emmet Brown (I've look it up and the name really is Emmett. You can look how many in wikipedia en.wikipedia.org/wiki/Emmett_(name))

    • @ozzyfromspace
      @ozzyfromspace Před 3 lety

      @@SRG-Learn you, sir or ma’am, are why I love the internet haha. Thanks 😊🙏🏽✨

    • @sicfxmusic
      @sicfxmusic Před 3 lety

      Then you can just tell your kid to EF (or normal people would say Eat Food)

    • @hectorg362
      @hectorg362 Před 3 lety

      My college professor is named Emmet lol.

    • @Mast3rDesign
      @Mast3rDesign Před 2 lety

      Hahah Its cool name btw

  • @nourpubg-184
    @nourpubg-184 Před 3 lety

    its amazing kevin keeeeeeeeeeeeep going

  • @heyt0pe
    @heyt0pe Před 3 lety +3

    Why am I just finding this out?!!!!🤩

  • @prateek4524
    @prateek4524 Před 3 lety

    super awesome💪💪🔥🔥

  • @hamzanaeem7277
    @hamzanaeem7277 Před 11 měsíci

    Wow, awesome

  • @Donutshop2365
    @Donutshop2365 Před 3 lety

    whenever you type, there is a dropdown list of options. Is this built in the Emmet? I have installed Emmet, but I don't have this dropdown list when typing.

  • @RoyerAdames
    @RoyerAdames Před 3 lety

    Thank you

  • @Dexter101x
    @Dexter101x Před 3 lety +7

    Lorem*15 is fifteen paragraphs of Lorem ipsum 😂😂😂🚀🚀

  • @abhijeetvishwakarmaa
    @abhijeetvishwakarmaa Před měsícem

    As a beginner it's awesome to know this

  • @EyeIn_The_Sky
    @EyeIn_The_Sky Před 3 lety

    Hey, how do you get emmet to use a car-return new line after each item rather than everything going one a single line?

  • @GUN2kify
    @GUN2kify Před 3 lety

    Can you link the used Emmet extension ? like in the other videos ? Since emmet is not delivered as official extension there are several with different aproach.

  • @mashahbaz5151
    @mashahbaz5151 Před 3 lety

    Thanks a lot

  • @beriadan77
    @beriadan77 Před rokem

    Your magical man. Thanks so much!!!!

  • @adelsimohamed7467
    @adelsimohamed7467 Před rokem

    what is the theme names that u're using in vscode?