How to create Tabs using HTML, CSS, and JAVASCRIPT

Поділитися
Вставка
  • Опубліковано 12 лис 2024

КОМЕНТАРІ • 82

  • @philip6540
    @philip6540 Рік тому +1

    U are so Simply and smart Thank you

  • @RupeshJoshi-sk3vi
    @RupeshJoshi-sk3vi 5 місяців тому +1

    ok, now how to make it appear in the same page in screens with varying dimensions. i made it in a bigger screen but now if I open it in a device with smaller screen, the line is misplaced. please make a video on it as well

  • @Alaa1Eddine
    @Alaa1Eddine 6 місяців тому +1

    How can I separate the codes in Tab 1 from Tab 2, so that the first code does not affect the second code?

  • @gominmall
    @gominmall Місяць тому

    Please tell me the code that opens the first tab when entering.

  • @immortal2004
    @immortal2004 Рік тому +9

    source code please?

  • @EmranGhanbari
    @EmranGhanbari 8 місяців тому

    best way to do it bought me about an hour

  • @Shaurboyfriend
    @Shaurboyfriend Місяць тому

    What if i want to fill the whole page with the tab contents

  • @farukweb
    @farukweb Місяць тому

    nice animated tabs button

  • @ultrAbdu
    @ultrAbdu 10 місяців тому

    how can i do this responsive for mobile?

  • @snap_journey
    @snap_journey 11 місяців тому

    Really really nice background music 👌 bro🤘 keep going 💯

  • @zohidilloturgunov7337
    @zohidilloturgunov7337 11 місяців тому +3

    awesome🤩

  • @charmcaster2549
    @charmcaster2549 10 місяців тому

    what about if you want the box to stay in place if it has a lot of content?

  • @usedom3605
    @usedom3605 11 місяців тому +1

    Great Tutorial!

  • @bilalnaeem7158
    @bilalnaeem7158 Рік тому

    Brilliant logic sir great🎉

  • @odokenneth-t9d
    @odokenneth-t9d 11 місяців тому +1

    thanks for the solution

    • @simplecode933
      @simplecode933  7 місяців тому

      Thank you and subscribe for more videos ☺️

  • @English-Is-Not-Difficult
    @English-Is-Not-Difficult 9 місяців тому +1

    Thanks for help i do not copy your html code but I use css of display block and animation and js for active tab show as active. at this time 4:14 Am I am bussy in making tool website. Comming soon awsome website

  • @sunnymilkyboy7664
    @sunnymilkyboy7664 7 місяців тому +1

    Greatt ❤ logic

  • @skyMedia011
    @skyMedia011 2 роки тому +1

    Nice project thanks brother

    • @simplecode933
      @simplecode933  2 роки тому +1

      Most welcome

    • @ob5804
      @ob5804 Рік тому

      @@simplecode933 And if there are still blocks with tabs, how then to rebuild it all??

  • @武則天-n1t
    @武則天-n1t Місяць тому

    Follow all code but still cannot work.

  • @MirzaIbrahim-k4m
    @MirzaIbrahim-k4m Рік тому

    please Help me when i open a site the first tab should be always open please help me in this

    • @simplecode933
      @simplecode933  Рік тому

      you need to mention the class name active in the HTML page, so when you open the page it will show the tab in which you mention active class name to the tab.
      still, if you have doubts please DM me on Instagram.

  • @iVyper211
    @iVyper211 Рік тому

    I'm having an issue where the line does not pop up and is hidden behind everything. I copied everything and looked everything over, any solutions?

    • @simplecode933
      @simplecode933  Рік тому

      Are you talking about indicator? Send me the picture of that issue on my Instagram 🙂

  • @baltaza
    @baltaza Рік тому

    Bruv, you saved my lifeeeeeeeeee

  • @sh9vch9nk0
    @sh9vch9nk0 9 місяців тому

    Great video, thank you! 💓💓👍👍

  • @mbahfavour3614
    @mbahfavour3614 Рік тому +6

    please can i get the course code

  • @chrisgraham9022
    @chrisgraham9022 Рік тому +1

    Very helpful, thanks!!

  • @VoTecisY
    @VoTecisY 2 місяці тому

    What is the Source code to this do you have a GitHub Account?

  • @جوادرفیعی-ط1د
    @جوادرفیعی-ط1د Рік тому

    Thanks a lot for this video. 😘

    • @simplecode933
      @simplecode933  Рік тому +1

      Welcome ❤️
      Subscribe for more videos 🙂

  • @cucharachatwt9074
    @cucharachatwt9074 4 місяці тому

    Beautiful

  • @uzayrsonday8514
    @uzayrsonday8514 5 місяців тому

    how do you only have 1.3K followers wtf

  • @rkaawkaa5858
    @rkaawkaa5858 2 роки тому

    When positionning the line, how do you know the property top should be at 62px exactly please ?

    • @simplecode933
      @simplecode933  2 роки тому

      Yes, I put it like randomly 55px, 60px and 62px...... It fits on 62px

    • @daveandrew7097
      @daveandrew7097 10 місяців тому

      or you can just use bottom: 0;

  • @nepalihoni9213
    @nepalihoni9213 Рік тому

    OP Brother/Sister

  • @sabaSaba-zc4hq
    @sabaSaba-zc4hq Рік тому

    Thanks bro you saved me❤

    • @simplecode933
      @simplecode933  Рік тому

      Welcome ❤️
      Subscribe for more videos 🙂

  • @mariarai793
    @mariarai793 Рік тому +1

    Hi, thank you for the solution! How can I make the line fill in the left space when Home is pressed and the right space when Cont Us is pressed?

    • @simplecode933
      @simplecode933  Рік тому

      Yes, it is easy just follow my steps 🙂
      1) There is a class name "tab_box" that change the justify-content property value to "justify-content: space-between; " (in the CSS file)
      2) Now let's change the indicator which is the class name "line" and change the top property to "0px"(in the CSS file)

    • @mariarai793
      @mariarai793 Рік тому

      @@simplecode933 Perfect, thank you so much!

    • @simplecode933
      @simplecode933  Рік тому +1

      Welcome 😊 and keep supporting me 🙂

  • @chex-comet
    @chex-comet Рік тому

    Doesn;t work on 11 buttons

  • @hasanali-gh5bx
    @hasanali-gh5bx Рік тому

    merhaba videonuz kesinlikle harşka ancak keşke videonun kodlarını da paylaşsaydınız harika olurdu

    • @ultrAbdu
      @ultrAbdu 10 місяців тому

      niye bedavaya paylassin, millet gelip kopyalasin videoyu izlemesin diye mi? izle videoyu yazarak yap iste

  • @anthonylie4588
    @anthonylie4588 Рік тому +1

    Hey bud, thank you for this wonderful video. Small qn tho, i tried inputting the javascript portion into a js file(instead of script tag in html file) but the line portion wont work. Any idea why?

    • @simplecode933
      @simplecode933  Рік тому

      Are you talking about the blue color line indicator? or the entire js code is not working?
      if the js code is not working can you check js file is appropriately linked to the HTML file........ or DM me on Instagram with screenshots of the code.

    • @anthonylie4588
      @anthonylie4588 Рік тому

      @@simplecode933 talking about the blue color line indicator. I cant make it move to the other tabs after pressing them. It only stays at 'Home'. This is only if i input the code in the js file tho. Works perfectly fine if i input under script tag in html file.

    • @Zacban
      @Zacban Рік тому

      @@anthonylie4588 Did you remember to put the script import at the bottom of the html file?

  • @ramario007
    @ramario007 Рік тому

    thanks from Ukraine !!!💙💛🤟🤟

  • @dubfy
    @dubfy Рік тому

    code pls

  • @جوادجیتی
    @جوادجیتی 2 роки тому

    i love it too

  • @TutoMaster
    @TutoMaster 9 місяців тому

    It is simple
    I think It are hard

  • @جوادجیتی
    @جوادجیتی 2 роки тому

    please build animaiting web page with html css and more js

  • @LokeshBorse-fe4oy
    @LokeshBorse-fe4oy Рік тому

    thank u

  • @senthil5031
    @senthil5031 Рік тому

    Nice video. It is very helpful. how The line left px will change based on the screen size. How to fix the line positioning left automatically for the different screen size

    • @collapsingspace
      @collapsingspace 9 місяців тому

      Use a psuedo ::after element for each button and position it relative to be a little lower than the original button. Keep its display none and then onclick you can enable the display for the psuedo element you can give its height like 10px and width will be 100% so same as original button

  • @DaMu24
    @DaMu24 Рік тому

    Not a fan of many of the code practices used here...

    • @storymationpresents6106
      @storymationpresents6106 8 місяців тому

      It’s my first day I got the hang of it don’t worry add interest and as a beginner copy and remember which code functions what sooner and this will practice your mind to code without assistance after that.

  • @brukearn7976
    @brukearn7976 Рік тому +1

    Thanks very simple!

  • @LOYALTYTESTED
    @LOYALTYTESTED Рік тому

    Life saver 🫂

  • @youth991
    @youth991 Рік тому

    btns.forEach(btn => btn.classList.toggle(“active”, btn === e.target);
    😑😑😑