How to create Tabs using HTML, CSS, and JAVASCRIPT

Поделиться
HTML-код
  • Опубликовано: 23 апр 2022
  • Nice animated tabs using HTML CSS and javascript.........
    ========================
    custom range slider: • Custom range slider us...
    -----------------------------------
    Input animation: • Input animation using ...
    #html #css #javascript
  • НаукаНаука

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

  • @RupeshJoshi-sk3vi
    @RupeshJoshi-sk3vi 6 дней назад +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

  • @user-zk6pi4nn8n
    @user-zk6pi4nn8n 7 дней назад

    verrrrrrrrrrrrrry
    gooooooooooooooooooooooooooooood

  • @chrisgraham9022
    @chrisgraham9022 Год назад +1

    Very helpful, thanks!!

  • @user-wt1tn7oh3q
    @user-wt1tn7oh3q 3 месяца назад

    best way to do it bought me about an hour

  • @philip6540
    @philip6540 Год назад +1

    U are so Simply and smart Thank you

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

    Great Tutorial!

  • @charmcaster2549
    @charmcaster2549 5 месяцев назад

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

  • @sunnymilkyboy7664
    @sunnymilkyboy7664 2 месяца назад +1

    Greatt ❤ logic

  • @Alaa1Eddine
    @Alaa1Eddine Месяц назад

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

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

    Great video, thank you! 💓💓👍👍

  • @storyPlus12
    @storyPlus12 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??

  • @zohidilloturgunov7337
    @zohidilloturgunov7337 6 месяцев назад +2

    awesome🤩

  • @sabaSaba-zc4hq
    @sabaSaba-zc4hq 10 месяцев назад

    Thanks bro you saved me❤

    • @simplecode933
      @simplecode933  10 месяцев назад

      Welcome ❤️
      Subscribe for more videos 🙂

  • @user-ew9ep3pp2j
    @user-ew9ep3pp2j 10 месяцев назад

    Thanks a lot for this video. 😘

    • @simplecode933
      @simplecode933  10 месяцев назад +1

      Welcome ❤️
      Subscribe for more videos 🙂

  • @bilalnaeem7158
    @bilalnaeem7158 7 месяцев назад

    Brilliant logic sir great🎉

    • @simplecode933
      @simplecode933  7 месяцев назад

      Thank you and keep supporting ❤️

  • @brukearn7976
    @brukearn7976 Год назад +1

    Thanks very simple!

  • @English-Is-Not-Difficult
    @English-Is-Not-Difficult 4 месяца назад +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

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

    Really really nice background music 👌 bro🤘 keep going 💯

  • @baltaza
    @baltaza 7 месяцев назад

    Bruv, you saved my lifeeeeeeeeee

    • @simplecode933
      @simplecode933  7 месяцев назад

      Thank you and keep supporting ❤️

  • @user-nw3hv3eq5g
    @user-nw3hv3eq5g 6 месяцев назад +1

    thanks for the solution

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

      Thank you and subscribe for more videos ☺️

  • @user-yi3rq7jk2r
    @user-yi3rq7jk2r 2 года назад

    i love it too

  • @ultrAbdu
    @ultrAbdu 5 месяцев назад

    how can i do this responsive for mobile?

  • @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 5 месяцев назад

      or you can just use bottom: 0;

  • @immortal2004
    @immortal2004 Год назад +5

    source code please?

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

    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  10 месяцев назад

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

  • @anthonylie4588
    @anthonylie4588 10 месяцев назад +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  10 месяцев назад

      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 10 месяцев назад

      @@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 8 месяцев назад

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

  • @mbahfavour3614
    @mbahfavour3614 Год назад +6

    please can i get the course code

  • @uzayrsonday8514
    @uzayrsonday8514 26 дней назад

    how do you only have 1.3K followers wtf

  • @nepalihoni9213
    @nepalihoni9213 7 месяцев назад

    OP Brother/Sister

    • @simplecode933
      @simplecode933  7 месяцев назад

      Thank you and keep supporting ❤️

  • @LokeshBorse-fe4oy
    @LokeshBorse-fe4oy 11 месяцев назад

    thank u

  • @user-ff3us4we9p
    @user-ff3us4we9p 11 месяцев назад

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

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

      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.

  • @hasanali-gh5bx
    @hasanali-gh5bx 7 месяцев назад

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

    • @ultrAbdu
      @ultrAbdu 5 месяцев назад

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

  • @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 4 месяца назад

      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

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

    Doesn;t work on 11 buttons

  • @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 🙂

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

    code pls

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

    It is simple
    I think It are hard

  • @user-yi3rq7jk2r
    @user-yi3rq7jk2r 2 года назад

    please build animaiting web page with html css and more js

  • @user-gb2lj3zm7j
    @user-gb2lj3zm7j 10 месяцев назад

    thanks from Ukraine !!!💙💛🤟🤟

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

    Life saver 🫂

  • @DaMu24
    @DaMu24 8 месяцев назад

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

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

      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.

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

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