Use Emmet to up your HTML game

Поделиться
HTML-код
  • Опубликовано: 17 окт 2024

Комментарии • 228

  • @greenonionsalad
    @greenonionsalad 3 года назад +91

    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 2 года назад +1

      This is in the cheatsheet👍

    • @MoHafiz71
      @MoHafiz71 Год назад

      So nice too, great 👌

    • @CaioMGA
      @CaioMGA 11 месяцев назад

      that's nice

    • @dysania1832
      @dysania1832 4 месяца назад

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

  • @mirshahbazali2727
    @mirshahbazali2727 3 года назад +33

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

    • @oxyaego4594
      @oxyaego4594 3 года назад

      Didn't know this one! Thank you

    • @utkarshagrawal3640
      @utkarshagrawal3640 3 года назад +2

      Wrong u have to use curly braces for inner text!

    • @PaulMcCannWebBuilder
      @PaulMcCannWebBuilder 3 года назад +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 3 года назад

      @@PaulMcCannWebBuilder Nice one, thanks!

    • @hjetwd
      @hjetwd 3 года назад +1

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

  • @marcelino-dev
    @marcelino-dev 3 года назад +3

    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!

  • @skillzorskillsson8228
    @skillzorskillsson8228 3 года назад +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 3 года назад +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 3 года назад +1

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

  • @MrJbramirez
    @MrJbramirez 3 года назад +10

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

  • @Wukwuk21
    @Wukwuk21 3 года назад +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

  • @metalfacemartinez
    @metalfacemartinez 3 года назад +21

    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 3 года назад +4

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

    • @sicfxmusic
      @sicfxmusic 3 года назад +1

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

  • @marcotronic
    @marcotronic 3 года назад +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 ;)

  • @taipham6799
    @taipham6799 3 года назад +3

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

  • @seggremalac
    @seggremalac 3 года назад +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!

  • @karinarodriguez2055
    @karinarodriguez2055 3 года назад +3

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

  • @StephenMoreira
    @StephenMoreira 3 года назад

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

  • @top10information25
    @top10information25 2 года назад

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

  • @mikematenkosky
    @mikematenkosky 3 года назад

    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!

  • @adnanamin1843
    @adnanamin1843 3 года назад

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

  • @robertodepasamonte3434
    @robertodepasamonte3434 3 года назад +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).

  • @gbdaeye
    @gbdaeye 3 года назад

    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.

  • @RameenFallschirmjager
    @RameenFallschirmjager 3 года назад +2

    Nice refresher.

  • @MelodicMethod
    @MelodicMethod Год назад

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

  • @mohan9285
    @mohan9285 3 года назад +2

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

  • @SerilaBuck
    @SerilaBuck 3 года назад +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  3 года назад +1

      Yup, wrap with Emmet Abbreviation is the best :D

    • @godmansarah
      @godmansarah 3 года назад

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

  • @PaulMcCannWebBuilder
    @PaulMcCannWebBuilder 3 года назад

    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  3 года назад +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!

  • @StrengthScholar0
    @StrengthScholar0 3 года назад

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

  • @sprtlife6261
    @sprtlife6261 2 года назад

    Dude, this was super valuable! Thanks!

  • @dhpcode
    @dhpcode Год назад

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

  • @fionamorris8093
    @fionamorris8093 3 года назад +2

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

  • @tammywoks8997
    @tammywoks8997 2 года назад

    You are just brilliant Kevin

  • @digigoliath
    @digigoliath 3 года назад

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

  • @Pfoffie
    @Pfoffie 3 года назад +3

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

  • @1337ghomri
    @1337ghomri 3 года назад

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

  • @techslugz
    @techslugz 3 года назад

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

  • @esagecantu
    @esagecantu 3 года назад

    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.

  • @djshiva
    @djshiva 2 года назад

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

  • @hash5one600
    @hash5one600 Год назад

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

  • @mariarodriguezva3606
    @mariarodriguezva3606 3 месяца назад

    Dude! you rock! This is gold

  • @geoffreyguez
    @geoffreyguez 3 года назад +1

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

  • @romewithbuck3513
    @romewithbuck3513 3 года назад

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

  • @idsign4uar843
    @idsign4uar843 3 года назад +2

    Hi Kevin:
    I'm not sure if this is part of Emmet or not, but at 05:37, as your cursor is between the "", you can press the left "Alt" key (not the "Alt Gr" that's on the right) and hold the mouse button while dragging down, which lets you enter text in all those lines at the same time (in this case, you can put the # used as a placeholder while developing a website). Oh, don't forget to press the "Esc" key once finished to go back to normal.
    Hope that helps.
    Thanks & greets from Argentina (Hope it is from England someday)
    IDsign4U (Marcelo Miguel Bazan)

  • @danjmillier
    @danjmillier 3 года назад

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

  • @voyagernz4172
    @voyagernz4172 3 года назад

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

  • @rohan1765
    @rohan1765 3 года назад +4

    Awesome , extremely helpful

  • @RealNaps
    @RealNaps 3 года назад

    Thanks for making me better at css

  • @donaldabanoub6382
    @donaldabanoub6382 3 года назад

    H$[Heading $]*6
    This will create from h1 to h6
    With text saying heading 1 till heading 6 , the $ sign count from 1 until desired number , this could be quite handy in some situations like classes or lists
    Ex
    Ul>li.list-item-$ *4

  • @yashkumarsinghpatwa9267
    @yashkumarsinghpatwa9267 3 года назад

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

  • @anihe8892
    @anihe8892 6 месяцев назад

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

  • @rubensmailbag
    @rubensmailbag 3 года назад

    Kevin, you are the man, man.

  • @ABMA79
    @ABMA79 3 года назад

    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.

  • @axwax2
    @axwax2 3 года назад

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

  • @ofek15
    @ofek15 3 года назад

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

  • @uchihaitachi2185
    @uchihaitachi2185 3 года назад

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

  • @hectorg362
    @hectorg362 3 года назад

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

  • @BillWhammers
    @BillWhammers 2 года назад

    that was bloody amazing

  • @zafaris
    @zafaris 3 года назад +1

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

  • @briancross4415
    @briancross4415 3 года назад

    Awesome video Kevin. Emmett is fantastic.

  • @thelittlenatureshow
    @thelittlenatureshow 2 года назад

    Fabulous. You are my hero!

  • @abhijeetvishwakarmaa
    @abhijeetvishwakarmaa 4 месяца назад

    As a beginner it's awesome to know this

  • @theresco2961
    @theresco2961 3 года назад

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

  • @CodeSigmaStudios
    @CodeSigmaStudios 3 года назад +1

    you are a hero!!!!

  • @frujunior67
    @frujunior67 3 года назад +1

    This makes you look like a pro 😎
    Thanks 👍

  • @98toxic1
    @98toxic1 3 года назад

    You can also name classes with numbers in order.. for example if you wanted etc... just type .container--$*2

  • @coderkushal
    @coderkushal 3 года назад +1

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

  • @heyt0pe
    @heyt0pe 3 года назад +3

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

  • @ViorelMocanu
    @ViorelMocanu 3 года назад +8

    Somehow this never caught on with me. I've known about emmet and used it occasionally since it appeared, but there's something about hand-crafting each and every HTML line by myself that really gets me thinking about structure, microformats/structured data, semantics, accessibility and ARIA properties and so on. It's somehow easier for me to write code manually, it's built into my workflow. And while this is rather suboptimal as far as speed goes, it just fits my obsessive-compulsive tendencies I think. :)

  • @chrisbenjamin3072
    @chrisbenjamin3072 3 года назад

    Thank you for this video!

  • @urssounds
    @urssounds 2 года назад

    Wow! That's super helpful!

  • @blackpurple9163
    @blackpurple9163 2 года назад

    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?

  • @miku6701
    @miku6701 3 года назад

    Yes, I learnt something new today.😊

  • @onestepwebdev
    @onestepwebdev 3 года назад

    Thanks Kevin, very helpful

  • @YoungDen
    @YoungDen 3 года назад

    Gonna try this on Brackets

  • @rudyNok
    @rudyNok 3 года назад +1

    I understand that we can go a level deeper with >. Is it possible to go level up? Let's say I do : .section>ul>li*5 and then I want to go back up and continue? Something like .section>ul>li*5

  • @StoryTeller8692
    @StoryTeller8692 Год назад

    I think you might have just changed my life. Mostly the life of my shift-finger. How did I not know this.

  • @blonduose
    @blonduose 3 года назад

    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

  • @InfinitelyScrolling
    @InfinitelyScrolling 3 года назад

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

  • @1230124
    @1230124 3 года назад

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

  • @xila8861
    @xila8861 3 года назад

    I have a question about section 9:29 of the video. I tried to use lorem , but when I do, it takes a whole one line instead of doing what happened to your video where it got divided into three lines.

    • @KevinPowell
      @KevinPowell  3 года назад

      Sounds like word wrap is off? View -> toggle word wrap

  • @RaynellJamal
    @RaynellJamal 3 года назад

    Wow! love this!

  • @lunaya9
    @lunaya9 3 года назад

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

  • @Donutshop2365
    @Donutshop2365 3 года назад

    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.

  • @Parthivi56
    @Parthivi56 3 года назад

    Mind blown!! WOW!!!

  • @aniketbhalla1521
    @aniketbhalla1521 3 года назад

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

  • @Felisha1976
    @Felisha1976 2 месяца назад

    Thx! Really useful!

  • @ozzyfromspace
    @ozzyfromspace 3 года назад +17

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

    • @SRG-Learn
      @SRG-Learn 3 года назад +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 3 года назад

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

    • @sicfxmusic
      @sicfxmusic 3 года назад

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

    • @hectorg362
      @hectorg362 3 года назад

      My college professor is named Emmet lol.

    • @Mast3rDesign
      @Mast3rDesign 3 года назад

      Hahah Its cool name btw

  • @LearnWithSazzad
    @LearnWithSazzad 3 года назад

    awesome video. thanks man. you are amazing

  • @greedyben1
    @greedyben1 3 года назад

    I've installed the Emmet for Brackets. When I do the !Tab it seems to miss out the ?

    • @KevinPowell
      @KevinPowell  3 года назад

      Hrm, that's annoying. If you do the html:5 does it work?

    • @greedyben1
      @greedyben1 3 года назад

      @@KevinPowell Nope... Great video thought, very helpful 👍🏻
      I’ll try installing Emmet in VS Code.

  • @gruanger
    @gruanger 3 года назад

    Thank you!

  • @Elliot7676
    @Elliot7676 3 года назад

    Kevin You'r a saviour :) thankx

  • @frugodwill
    @frugodwill 2 года назад

    Is there no west go going into and element and doing some stuff and coming back out of the container to do some more stuff?
    Eg.
    H1>lorem5lorem20?
    Where < is coming back out of the h1 element

  • @CharlesSmall
    @CharlesSmall 3 года назад

    You are the king

  • @hankbrown8421
    @hankbrown8421 3 года назад

    U saved me so much time ty

  • @animefanboy842
    @animefanboy842 3 года назад +30

    lol first time in history i know this all lmao

  • @EyeIn_The_Sky
    @EyeIn_The_Sky 3 года назад

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

  • @masoodkhanpatel
    @masoodkhanpatel 3 года назад

    this is sooo awesome!

  • @GUN2kify
    @GUN2kify 3 года назад

    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.

  • @Dexter101x
    @Dexter101x 3 года назад +7

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

  • @dgtldrft
    @dgtldrft 3 года назад

    2:00 "don't need alt text on a logo" - I was interested in your thinking here, would it not be helpful anyway to have an alt of "company/sitename logo" for accessibility? or are you planning on using another technology later to ignore the logo?
    thanks for the vids!

    • @KevinPowell
      @KevinPowell  3 года назад

      For decorative elements, a blank alt is the best practice. Knowing the logo is there or not there really has no use to someone who's on the site using an assistive technology. They aren't trying to visualize the site, but consume the content of that page/site.
      And actually, looks like I might have been a bit wrong on this. I was following advice I've heard from accessibility circles though, so I'll keep inquiring, but the a11yproject says to put the company's name there. www.a11yproject.com/posts/2013-01-14-alt-text/

    • @KonstantinosStampoulis
      @KonstantinosStampoulis 3 года назад +1

      alt="company/sitename logo" is wrong use. A blind person does not know how the logo looks like. You do need though an alt="" so that screen readers understand that it is decorative and not informative image and say nothing about it.

  • @JohnBortins
    @JohnBortins 3 года назад

    Outstanding!

  • @minzcode
    @minzcode 3 года назад

    Great video. Very helpful. 😉

  • @nourpubg-184
    @nourpubg-184 3 года назад

    its amazing kevin keeeeeeeeeeeeep going

  • @victor25021983
    @victor25021983 Год назад

    tq . we will rewind yiur video few time to understand more

  • @sbfotome
    @sbfotome 3 года назад

    Which Emmet do you use? Could you do a video on how to setup Visual studio code?