How to Create an HTML Dropdown Menu | Learn HTML and CSS | HTML Tutorial | HTML for Beginners

แชร์
ฝัง
  • เผยแพร่เมื่อ 21 พ.ย. 2024

ความคิดเห็น • 547

  • @Dani_Krossing
    @Dani_Krossing  ปีที่แล้ว +2

    NEW UPDATED 2023 COURSE AVAILABLE! 🙂
    You can find it here: th-cam.com/video/v8jDnBYc0bs/w-d-xo.html&ab_channel=DaniKrossing

    • @cruzinsweetsntreats
      @cruzinsweetsntreats ปีที่แล้ว

      Though Lesson 12 of the updated course for 2023, *does not* include a sub-menu, as you brought out here. 🤔 04-28-2023 0400 PT

    • @VipUaenaMoomoo
      @VipUaenaMoomoo 8 หลายเดือนก่อน

      Hi, How to create new page inside one of the dropdown menu button to display the text/content of the page. I don't know how and what to do..

  • @keithwilson5229
    @keithwilson5229 4 ปีที่แล้ว +42

    the reason you have so many subscribers is: not only are you an awesome instructor BUT you also make your screen big enough to SEE what you're doing; even on a mobile device... other programmer instructors please take notice...!!! Excellent video!!!!

  • @bapynshngain
    @bapynshngain 3 ปีที่แล้ว +5

    There's a lot of "tutorial videos" out here but none explains as clearly as this guy. Thanks a lot man

  • @baragydurugy9084
    @baragydurugy9084 5 ปีที่แล้ว +4

    I can't find a good and clear tutorial about HTML dropdown and I only got a 2 days deadline before I pass my project. Man you actually saved me from my grade 11 thesis thanks a lot, keep it up.

  • @johnonguka6079
    @johnonguka6079 3 ปีที่แล้ว +3

    many have been called for the teaching but few have been chosen to give out the real content as far as online tutorial is concerned, THANK YOU SIR DANI

  • @tech-mindresearch9299
    @tech-mindresearch9299 ปีที่แล้ว +1

    Yes it's true. You are explaining really well, without hiding. You make your students from zero knowledge to well informed.

    • @Dani_Krossing
      @Dani_Krossing  ปีที่แล้ว

      I have a 2023 HTML course linked in the pinned comment, in case you are interested 🙂

    • @tech-mindresearch9299
      @tech-mindresearch9299 ปีที่แล้ว

      @@Dani_Krossing yes please

  • @efraimgalindez1457
    @efraimgalindez1457 7 หลายเดือนก่อน +1

    Thank you for your precise and concise directions. Extremely helpful in helping me understand drop downs. Thank you.

  • @believeingodalways
    @believeingodalways 3 ปีที่แล้ว

    I have seen around 10 diff top listed videos
    And yours is the best now I dont need to watch anyone else’s video to understand styling drop down menus
    Best teaching skills

  • @LVusaAPI
    @LVusaAPI ปีที่แล้ว

    Amazing - i have seen folks doing it with tons of html class , buttons, js efc.
    You came here without all this mess and knock it out beautifully

  • @julianthegreat4995
    @julianthegreat4995 4 ปีที่แล้ว +223

    When you need to search on youtube because your college teacher want you to do a site that uses it even though he never really told you how things even work.

    • @adriangarcia9828
      @adriangarcia9828 4 ปีที่แล้ว +10

      Welcome to school soldier

    • @arewenot
      @arewenot 4 ปีที่แล้ว +13

      that's basically how college works

    • @orlandorojasmoncada9110
      @orlandorojasmoncada9110 4 ปีที่แล้ว +11

      that's basically how programming works

    • @celticpanda1494
      @celticpanda1494 4 ปีที่แล้ว +7

      When you've been there and done that already and are instead doing independent study, except now you don't have to pay for someone else to tell you to look it up. x)

    • @roysmith6054
      @roysmith6054 4 ปีที่แล้ว +1

      @@celticpanda1494 Same

  • @Hamad-of1gc
    @Hamad-of1gc 6 ปีที่แล้ว +9

    I cannot thank you enough, this thing helped me get extra points on my project. No one in my class did this. thank alot!

  • @jordyjoelcarhuavilcavillan4287
    @jordyjoelcarhuavilcavillan4287 2 ปีที่แล้ว

    you´re the best instructor
    i´ve even seen on all youtube, good video i love your way to teach.

  • @samuelravikanth830
    @samuelravikanth830 3 ปีที่แล้ว

    Thank you so much. I tried so many other channels and what they show doesnt work but yours does.

  • @jtc9098
    @jtc9098 ปีที่แล้ว +1

    Another great video I found! When I’m really struggling with a project, you are my go to guy. I love your channel.

  • @pocketsquareformat
    @pocketsquareformat 6 ปีที่แล้ว +43

    This is a great tutorial! I appreciate you taking the time to clearly explain things step-by-step. Cheers

  • @ruggedbypowell
    @ruggedbypowell 2 ปีที่แล้ว

    after watching lots of videos... i finally understood the whole concept.. thanks so so much man

  • @lobzangchamba8197
    @lobzangchamba8197 4 ปีที่แล้ว +2

    This is the best, the most instructive, and simplest tutorial after searching online this kind ones!

  • @TheKineticSoftwareCompan-ti7hs
    @TheKineticSoftwareCompan-ti7hs 10 หลายเดือนก่อน +1

    You are the best lecturer I have seen big up bro

  • @user-wl7yb4zb8p
    @user-wl7yb4zb8p 5 ปีที่แล้ว +4

    Great tutorial. Many thanks. What worked better for me, though, was giving 'position: relative' to 'nav ul' instead of 'nav ul li'. It helped me with positioning the drop down part of the navbar which has 'position: absolute'.

  • @pcartisan2721
    @pcartisan2721 4 ปีที่แล้ว

    FANTASTIC and Detailed instructions! Very Nicely Done! Bravo, Bravo.

  • @chrumczyk5494
    @chrumczyk5494 2 ปีที่แล้ว +1

    Great tutorial. For me it's the best on youtube and I've seen a lot of those drop down menus. This one is straight forward, simple and clean code.

  • @jamesmclean5790
    @jamesmclean5790 3 ปีที่แล้ว +1

    Thank you for the walkthrough. It was what I needed to complete a rather extensive dropdown menu.

  • @aprilformosa
    @aprilformosa 6 ปีที่แล้ว +5

    I've been struggling with the dropdown menu for days. You make it so easy to understand! Thank you very much! Really appreciate it!

    • @june-nz8hz
      @june-nz8hz 6 ปีที่แล้ว

      Hi, mine does not work... can you send me your code to my email i compare?

    • @janasokolovic2496
      @janasokolovic2496 3 ปีที่แล้ว +2

      @@june-nz8hz hey
      ahahahahah is there any way that u still have that code?

    • @cruzinsweetsntreats
      @cruzinsweetsntreats ปีที่แล้ว

      @@janasokolovic2496 he likely does, in a shared Google Drive folder, that is made available by subscribing to his Patreon account, or now "joining" his TH-cam Channel.

  • @chogi9860
    @chogi9860 4 ปีที่แล้ว

    YOU ARE THE BEST I DID NOT UNDERSTAND IT FROM ANYONE ELSE

  • @rayphenicie7344
    @rayphenicie7344 ปีที่แล้ว +1

    A lot of 'ul', 'li' 'ul', 'li' 'a', 'ul', li's to keep track of. That's why div's are preferable. Otherwise, very clever. Now I have to figure out how to add the hover feature to all of the menu items.

  • @akashaansari9795
    @akashaansari9795 4 ปีที่แล้ว

    Finallyyyyyyyy!! I did it..!! After 3 damn days, it was possible to make a drop-down menu. Thank you so much, sir!

    • @janasokolovic2496
      @janasokolovic2496 3 ปีที่แล้ว

      hey
      do u have code written cause my is not working?

    • @akashaansari9795
      @akashaansari9795 3 ปีที่แล้ว

      @@janasokolovic2496 Yeah! I have practiced creating the dropdown menu, and this video has helped me a lot.

  • @lichtgrau1002
    @lichtgrau1002 4 ปีที่แล้ว

    This channel has the best tutorials for web development ! explanations are always clear

  • @HEIT_CHANNEL
    @HEIT_CHANNEL 3 ปีที่แล้ว

    Thanks, very useful video, so now I can do my project at college way more easily

  • @itzvalidity6485
    @itzvalidity6485 3 ปีที่แล้ว

    OMG this is literally the best thing ever THANK YOU SO MUCH!!!!!!!!!!!!!!!!!!!!

  • @anuraariyaratne4977
    @anuraariyaratne4977 2 ปีที่แล้ว

    You are a genius in terms of explaining. Very nice.

  • @dianapinto3779
    @dianapinto3779 2 ปีที่แล้ว +1

    You're amazing thank you, I really like how you explain how the whole HTML and CSS work while building the drop-down menu and the reason why you've added those values. Cheers

  • @truths33ker29
    @truths33ker29 6 ปีที่แล้ว +7

    thank you so much brother, im just teaching myself html5, css and stuff and this was really confusing me till i watched this video your an absolute legend.

  • @LiveINtheGood53
    @LiveINtheGood53 3 ปีที่แล้ว +1

    You are awesome Dani! Thank you my friend. You are such a great teacher as you explain it very well.

  • @shubhamujjwal328
    @shubhamujjwal328 2 ปีที่แล้ว

    wow .. its awesome. I created a dropdown along this video. 😄

  • @christinec1674
    @christinec1674 3 ปีที่แล้ว +1

    Thank you. Do you repeat the exact process if you have multiple drop-down menus within your nav?

  • @bobdinitto
    @bobdinitto 2 ปีที่แล้ว

    Nice effect. Thank you for your clear explanation.

  • @ferideva_art
    @ferideva_art 3 ปีที่แล้ว +1

    This was exactly what I was looking for! Huge thanks to you!!!

  • @williamkakooza4603
    @williamkakooza4603 2 ปีที่แล้ว

    I have watched this video 5X. Thanks Mr. Dani

  • @cynthiamanor6565
    @cynthiamanor6565 4 ปีที่แล้ว +8

    This was a lifesaver! You explained everything so clearly! Thank you!!

  • @philiposztromok5601
    @philiposztromok5601 3 ปีที่แล้ว +6

    Really good, easy-to-follow video and it teaches you exactly what it says it will so very practical. Thanks for posting it!

  • @leyuberhanu8760
    @leyuberhanu8760 3 ปีที่แล้ว

    thank you very much, you're a life saver!
    I've tried many ways to do it, this is the one that works for me.

  • @funstudying
    @funstudying 3 ปีที่แล้ว

    A very detailed step by step video. Thank you very much~

  • @ember9361
    @ember9361 2 ปีที่แล้ว

    hey thank you so much! i appreciate you not declaring any IDs or Classes, it makes it much easier to understand what each part needs to be stylized with what!

  • @jrc171974
    @jrc171974 2 ปีที่แล้ว

    Excellent explanation and this video is way much better than my useless professor at school....

  • @ismaciilibraahim3724
    @ismaciilibraahim3724 2 ปีที่แล้ว

    Good insturctor i watched many videos and i don't understand anything you're explain clearly thankz teacher for help us

  • @unholygrail4676
    @unholygrail4676 5 ปีที่แล้ว

    You just saved my mid-term grade. Kudos to you my good sir.

  • @monarnyc
    @monarnyc 3 ปีที่แล้ว

    Thank you so Very Much!!!! You made this understandable and I now know how to do this.

  • @brianbarber9720
    @brianbarber9720 4 ปีที่แล้ว +3

    Thank you so much for doing this tutorial! It by far was the easiest to follow and I'm very happy to say, I am able to get the exact results I was looking for.

  • @allanobial4460
    @allanobial4460 5 ปีที่แล้ว

    the best html css tutorial ever!!!!

  • @sdftrd
    @sdftrd 6 ปีที่แล้ว +3

    Awesome tutorial! So easy to follow and understand. Many thanks!

  • @MedyZeus
    @MedyZeus 2 ปีที่แล้ว

    You're an angel.. thank you !

  • @bulldawg4498
    @bulldawg4498 5 ปีที่แล้ว

    Heavy duty CSS ... He makes it look so easy!

  • @F.____.__r-y3t
    @F.____.__r-y3t 3 ปีที่แล้ว

    very well and simply explained. thanks

  • @nilfarmohamed4778
    @nilfarmohamed4778 4 ปีที่แล้ว

    Clear explanation... Thank you very much.

  • @digitaleara5520
    @digitaleara5520 12 วันที่ผ่านมา

    Great video, but i was actually looking to see how you connect the pages in the dropdown menu I'm having a small issue! Thanks!

  • @triggaj5279
    @triggaj5279 3 ปีที่แล้ว

    Excellent walkthrough.

  • @barnetteputong2652
    @barnetteputong2652 3 ปีที่แล้ว

    Wow! Amazing! Nice CSS coding! Thanks 🙏

  • @aizhanshygaeva2100
    @aizhanshygaeva2100 4 ปีที่แล้ว

    You are great teacher.

  • @BalkanDrifters
    @BalkanDrifters 4 ปีที่แล้ว +4

    Thank you a lot man! I have been struggling to do it myself, and as I am still inexperienced, I used bunch of divs and id's and whatnot, and it was a complete mess when I have tried achieving hover effect correctly. Your video has shown me parent->child relationship pretty clearly and simple and now I have completed my task for college successfully and I feel so happy now! c:

  • @atulyadavSpag77
    @atulyadavSpag77 3 ปีที่แล้ว

    You explained this video so good. Best tutorial on dropdown.

  • @metyzcz
    @metyzcz 3 ปีที่แล้ว +1

    This is really HELPFUL!!! :3 :) LIKE

  • @bluesmaster1005
    @bluesmaster1005 ปีที่แล้ว

    Thanks for this tutorial it was so great! You are a fantastic instructor.

  • @denisesimone6449
    @denisesimone6449 3 ปีที่แล้ว

    AMAZINGGGGG, thank you for the class. Good teacher!

  • @donnchadhmcginley3153
    @donnchadhmcginley3153 5 ปีที่แล้ว +157

    "nav ul li ul li a {
    }"
    , my head hurts

    • @sandortudja2087
      @sandortudja2087 5 ปีที่แล้ว +3

      You can target that with a class name as well.

    • @yahno3
      @yahno3 5 ปีที่แล้ว

      hahaha

    • @vsdy1990
      @vsdy1990 5 ปีที่แล้ว +1

      code examples of navbar menu examples.
      bootstrap-menu.com

    • @kongenerkasper
      @kongenerkasper 4 ปีที่แล้ว +4

      @@vsdy1990 This is only for using the bootstrap framework..

    • @nimish891
      @nimish891 4 ปีที่แล้ว

      navulliullia

  • @cihadceylan1563
    @cihadceylan1563 4 ปีที่แล้ว

    All I wonder is told in last 2 minutes. =) Thanks..

  • @MonaMiresmaeili-v1s
    @MonaMiresmaeili-v1s 3 หลายเดือนก่อน

    Wow thank you so much for your explanation such a useful tutorial 🙏🏻

  • @deviljinx45
    @deviljinx45 2 ปีที่แล้ว

    Thank you very much that is a very good demonstration

  • @itzbazil2802
    @itzbazil2802 4 ปีที่แล้ว +4

    Can you put a dropdown menu inside of a dropdown menu? When you hover over the nav bar, and the first dropdown menu appears, can you then hover over that dropdown menu to get another dropdown menu?

  • @ugosouza2127
    @ugosouza2127 4 ปีที่แล้ว

    Great material Mr! Thanks

  • @aliefeozkan5453
    @aliefeozkan5453 5 ปีที่แล้ว +1

    Very clear and understandable video. Thank you very much for this great tutorial.

  • @nozrulchoudhury523
    @nozrulchoudhury523 6 ปีที่แล้ว +1

    Thank you very much for the thorough, concise and working tutorial!
    After watching about 9 other videos that quite didint work for some reason, everything in yours did!
    Thank you again!

  • @rasulbekirkinov8145
    @rasulbekirkinov8145 3 ปีที่แล้ว

    Thanks for this awesome video why I am calling this awesome is because it is not only written at a quick pace but just every single thing is explained and if we want to just change something it is said that it is your preference. I got a lot, thank you for making this video, your style of teaching is like my teachers who always explains everything he teaches

  • @impidge19
    @impidge19 3 ปีที่แล้ว

    Thanks man! this was the exact video I needed!

  • @allenvasquez3342
    @allenvasquez3342 4 ปีที่แล้ว

    Greatly helped me make my school project. Appreciate the effort! Thanks!!

    • @janasokolovic2496
      @janasokolovic2496 3 ปีที่แล้ว

      hey
      do u have thid code written cause my is not working?

  • @esimm595
    @esimm595 5 ปีที่แล้ว +1

    Really Glad I can do this! Thanks!
    One thing though, a slightly lighter background image would make it easier to see the black letters in the dropdown menu before they get a white dropdown background.

  • @DIEZ919191
    @DIEZ919191 5 ปีที่แล้ว

    GREAT!!! TNX! I'm going to try to do it by myself!

  • @rajithasunil8034
    @rajithasunil8034 5 ปีที่แล้ว +3

    Thank you so much for explaining each and everything very clearly.

  • @vintage-videos
    @vintage-videos ปีที่แล้ว

    This is a fantastic tutorial, thanks so much!

  • @kritibindra4232
    @kritibindra4232 5 ปีที่แล้ว +1

    Absolutely brilliant... thanks for making this so easy😃

  • @m.a.rashakhan4534
    @m.a.rashakhan4534 5 ปีที่แล้ว

    ONE OF THE BEST LECTURE.

  • @omarzavala1491
    @omarzavala1491 3 ปีที่แล้ว

    Thank you for the video, it was very useful for me

  • @pdoubleyou7801
    @pdoubleyou7801 4 ปีที่แล้ว

    something I understood when you said it, but perhaps not 10 mins later. I would need a worked example with comments in it. I would probably mess it up trying to make it responsive. But I enjoyed your instruction style.

  • @ebadrehman7007
    @ebadrehman7007 7 ปีที่แล้ว +1

    First of all, your tutorials are amazing and really helpful!
    When trying to write this code Upon moving the cursor onto the drop down menu the background color is not changing.
    Can you please let me know if i have made a mistake somewhere?
    Here's my CSS code:
    *{
    margin:0;
    padding:0;
    }
    body{
    background-image: url(IMG/bg.jpeg);
    }
    nav{
    width: 100%;
    background-color: white;
    height:60px
    }
    nav p{
    font-family: impact;
    font-size:50px;
    line-height: 30px;
    float: left;
    padding: 10px 20px;
    }
    nav ul{
    float:left;
    list-style-type: none;
    }
    nav ul li{
    float: left;
    list-style-type: none;
    position:relative;
    }
    nav ul li a{
    display:block;
    font-family: helvetica;
    font-size:20px;
    padding: 20px 35px;
    text-decoration: none;
    }
    nav ul li ul{
    display:block;
    position: absolute;
    background-color: white;
    }
    nav ul li ul li a{
    padding: 8px 30px;
    }
    nav ul li ul li a: hover {
    background-color: #999;
    }
    here's my HTML code:

    DESIGN ENCLOSURE
    Home
    Services
    Digital Marketing
    Logo development
    Product Photography

    Projects
    doccuments

  • @charmcaster2549
    @charmcaster2549 2 ปีที่แล้ว

    Thank you very much for your hardwork in explaining it very well. Its my 1st time learning css but i understood it immediately. But, you forgot to show us how to put the arrow for the drop down

  • @MyNegativeCreep
    @MyNegativeCreep 5 ปีที่แล้ว +1

    How can I add a logo instead of a text in the line above the ? I want to do this with CSS as background in the top left corner but somehow it does not work.

  • @wilrockcreates
    @wilrockcreates 5 ปีที่แล้ว +2

    This helped a ton in getting the results I desired! Great tutorial!

  • @Patrick-rp8gi
    @Patrick-rp8gi 2 ปีที่แล้ว

    Perfect tutorial!

  • @thnqolo9667
    @thnqolo9667 5 ปีที่แล้ว +1

    The best tutorial ever seen

  • @mulugetaworkuayele6412
    @mulugetaworkuayele6412 2 ปีที่แล้ว

    Very useful and thank you!

  • @urbanzagorsek5403
    @urbanzagorsek5403 4 ปีที่แล้ว +3

    alo hvala bruda pune jako!!!!

  • @vrcxmeta4598
    @vrcxmeta4598 5 ปีที่แล้ว

    now i can expand my little knowledge about coding html, thanks!

  • @kevinh9741
    @kevinh9741 4 ปีที่แล้ว

    Im learning to code a website and this was super helpful, a great walkthrough with tons of info but it will just take time to learn it all.
    Thanks a ton!

  • @reveng6705
    @reveng6705 3 ปีที่แล้ว

    Thank you very much for this great tutorial!

  • @mostafashehata2154
    @mostafashehata2154 ปีที่แล้ว

    mannn thank you a lot you know i was search about how can i do that so finally i learn how can i do it thanks man

  • @JoakoOvlack
    @JoakoOvlack 5 ปีที่แล้ว

    Domo Arigato Gosaimasu! Really helpful!

  • @jacqueshollands5630
    @jacqueshollands5630 3 ปีที่แล้ว +1

    Perhaps a bit quick for a beginner like me. The copy and paste at times were confusing, especially when a whole section is copied and then 95% of it deleted as only one line was required. Other than that, it is a most informative video.

  • @wegallagher
    @wegallagher 6 ปีที่แล้ว +14

    Thanks! I will be adding links to your playlist on my website!

  • @LeonidasKaragiannis
    @LeonidasKaragiannis 4 ปีที่แล้ว

    17:49 If you want to make it adjust to the text size, just put white-space:nowrap; Works like a charm

    • @mrdiscord1587
      @mrdiscord1587 4 ปีที่แล้ว

      How would I put a image next to the website title like the website header and not the page title

  • @DikBdrGhalley
    @DikBdrGhalley ปีที่แล้ว

    Great tutorial... Appreciated.

  • @jeaninedegroot1342
    @jeaninedegroot1342 4 ปีที่แล้ว

    Thank you for this explanation! It works amazing!

    • @janasokolovic2496
      @janasokolovic2496 3 ปีที่แล้ว

      hey
      do u have thid code written cause my is not working?