How to create tabs using HTML, CSS and JavaScript

Поделиться
HTML-код
  • Опубликовано: 27 фев 2018
  • In this video I'll be showing you how to create tabs using html, css and JavaScript
    Download Project code:
    www.lohartalk.in/#/watch?v=PzS...
    Please don't forget to like,share and subscribe my channel.

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

  • @desse56
    @desse56 5 лет назад +8

    Fantastic work, this saved me from having to use the confusing electron-tabs module!

  • @theskaje137
    @theskaje137 5 лет назад +7

    i from Russia but i understand ur language all time . Good pronunciation my friend!!

    • @LoharTalk
      @LoharTalk  5 лет назад +1

      Thank you for your valuable feedback.

  • @jmondera
    @jmondera 5 лет назад +4

    Thank you for the video! I just have one small request...please open the coding window enough to show all the code. It's hard to see the top lines of your javascript code.

  • @rip182
    @rip182 5 лет назад +1

    Its nice that u have recap on explaining after doing all that code

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

    I have been looking all over for a simple example of how to invoke a set of pages that each live in a different tab. What I need is a simple example of the syntax of the anchor tag. For example,

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

    I'm new to Javascript but understood everything . Thank you soo much

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

    Awesome work and explanation. Thanks a lot for this tutorial.

  • @asma-rg1nx
    @asma-rg1nx Год назад

    great...

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

    Dude, you're an absolute legend for this video! Thank you for uploading it.

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

    I’ve been looking for this but didn’t know that specific name for it thank you!

  • @_ifrit
    @_ifrit 4 года назад +1

    getting back into web development and glad I found some of your videos. Very clear and helpful guides!

    • @LoharTalk
      @LoharTalk  4 года назад

      Thank you for your valuable feedback.

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

    I really hate HTML (web dev) and everything go over my head but u saved my day... thanks

  • @siraj_a.r.411
    @siraj_a.r.411 3 года назад +9

    You can also add animations to your tabs using css in the tabcontent section
    .tabpanel {
    animation: fadeEffect 1s;
    }
    @keyframes fadeEffect {
    from {
    opacity: 0;
    }
    to {
    opacity: 1;
    }
    }

  • @raquelasirit5434
    @raquelasirit5434 5 лет назад +2

    nice video tutorial.. great its working
    i have a search filter before the tabs then its working at the first tab only and its not working at the other tabs, the id's and classes are same but it cannot work..
    thank you
    please help me sir

  • @acm...
    @acm... 4 года назад

    Extremely useful ! Great work!

  • @sandeepa4116
    @sandeepa4116 5 лет назад

    Thanks for this great tutorial. Its really very helpful :-)

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

    congratulations on the video! God bless you!!!

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

    Superb. Can you please tell me how to add a "close button" into each tab? Like when we click on the tab it gets highlighted and the close(x) button appears, if we click x the particular tab will be deleted.

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

    Great instructional video! Good job at explaining what each thing does and why it’s added to the code.

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

      if you want, you can also check this awesome animated tabs ruclips.net/video/d9MW5nPIgSk/видео.html

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

    fantastic

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

    Really helpful bro thnx

  • @noopurp123
    @noopurp123 5 лет назад

    Good Tutorial, but you can also do this with one tabPanel div...

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

    love it!! you are a lifesaver

  • @chandanmaurya9055
    @chandanmaurya9055 4 года назад

    Facing issue :- by default tab 1 is selected. When I'm clickinng on other tab page is getting refreshed and after refreshing again tab 1 is selected..
    ???

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

    thank you very much, this video is simple and direct, find another video better than this I think it is impossible

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

    Thank you so much bro, you save my life!

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

    good work bro and good source code

  • @actaeon5770
    @actaeon5770 5 лет назад

    Hello LoharTalk I've been wondering if I want to remove colors. Is it safe to make colorCodes to comments ?

  • @darshanarane6355
    @darshanarane6355 5 лет назад +2

    Thank you 😉😉

  • @AnkitSharma-nf6kc
    @AnkitSharma-nf6kc Год назад

    I created a website which changes colour of background as we change values of rgb through metres on screen .. now I wanted to add functionality of gradient too but using your way I can change the page no issues but that same JS is now not letting me change values on gradient page while still working fine on Background page.. Please help if u can --> I will surely subscribe

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

    how did words in the tabPanel(without using ) have breaks in the lines?

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

    best💯

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

    what is the command run in vsCode to see the output in localhost.

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

    thank you very much

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

    Thanks, bro! Well done!

  • @lucenera
    @lucenera 5 лет назад +1

    thank you very mutch, this was very useful to me.

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

    Superb, how to use in django

  • @falakhkarim9011
    @falakhkarim9011 4 года назад

    nice work, your tutorial is very helpful

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

      if you want, you can also check this awesome animated tabs ruclips.net/video/d9MW5nPIgSk/видео.html

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

    thank you ! you saved me

  • @amazonreview7927
    @amazonreview7927 5 лет назад

    Thanks, bro!

  • @ltybc425
    @ltybc425 5 лет назад

    Thank you!

  • @Juanbaez_
    @Juanbaez_ 5 лет назад +1

    I have to say, I normally hate the hindúes video, but this guys is awesome and clear to understand. Also, he explained js very clear. Keep it up, you will make it in RUclips. He earned my support!

    • @LoharTalk
      @LoharTalk  5 лет назад

      Thank you for your valuable feedback. Now you can also Preview code demo and download it from www.lohartalk.com

    • @LoharTalk
      @LoharTalk  5 лет назад

      It will appreciated if you can provide your feedback on our website www.lohartalk.com by click on Feedback link so that we can improve our services.

  • @ibrahimhassan5411
    @ibrahimhassan5411 5 лет назад +1

    thanks. this is the best tutorial that comprehensive.

    • @LoharTalk
      @LoharTalk  5 лет назад

      Thank you for your valuable feedback.

    • @ibrahimhassan5411
      @ibrahimhassan5411 5 лет назад

      how can I have next and previous buttons using this code.

    • @LoharTalk
      @LoharTalk  5 лет назад

      @@ibrahimhassan5411 Hi,call this method showPanel(0,'#f44336') where 0 is index of tab. you can increase or decrease it on next and previous button

  • @daffaaldzakianfauzi8721
    @daffaaldzakianfauzi8721 4 года назад

    Thankyou, this is very helpful. You deserves more likes! thumbs up👍

  • @MrHuntPowa
    @MrHuntPowa 5 лет назад

    Thank you for the video, it was very helpful

    • @LoharTalk
      @LoharTalk  5 лет назад

      Thank you for your valuable feedback. You can also view/download project from www.lohartalk.com

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

    any idea why this will not work when working with php sessions?

  • @user-jj3zm1jx7z
    @user-jj3zm1jx7z 3 года назад

    Мои индусики Вы золотые)))

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

    👏👏👏

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

    ძმა ხარ. God bless ya!

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

    how do i make one tab longer? if i just add more things and use ,its gonna leave "frame" or "background",please help

  •  3 года назад

    I love you Man
    you save me

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

    what is the application i need to have this in my laptop

  • @mbc1629
    @mbc1629 4 года назад

    Thanks !!!

  • @inzaghi7712
    @inzaghi7712 5 лет назад

    I've already sent the email sir for requesting codes for this. thankyouu

    • @LoharTalk
      @LoharTalk  5 лет назад

      Hi,
      We have already mentioned the link in video description.
      Kindly find the link below.
      www.lohartalk.com/#/watch?v=PzSxehu4G78
      Below video name click on project code button

    • @LoharTalk
      @LoharTalk  5 лет назад

      Let us know if you are unable to find.

  • @FlorianEagox
    @FlorianEagox 4 года назад

    Good stuff!

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

      if you want, you can also check this awesome animated tabs ruclips.net/video/d9MW5nPIgSk/видео.html

  • @noopurp123
    @noopurp123 5 лет назад

    You can in fact do this in pure CSS by using radio buttons

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

    how to create a "add tab" where users can click and add a new tab page?

  • @lpseeen5030
    @lpseeen5030 4 года назад

    you promise new video whery?

  • @Badnampaisa
    @Badnampaisa 4 года назад

    How to add in blogger theme

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

    honestly, i can't thank you enough

  • @muninderkumar6721
    @muninderkumar6721 4 года назад

    thanks!!

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

    Unable to add eBay description...Please help me to add these Html , Css and JS file to ebay Description ...

  • @23jgagnon
    @23jgagnon 5 лет назад

    Hi, I really enjoyed your video! I am having trouble executing the js function upon clicking the tab. Any suggestions?

    • @LoharTalk
      @LoharTalk  5 лет назад +1

      You can visit www.lohartalk.com website and view/download the project for your reference.

    • @musicopera3851
      @musicopera3851 4 года назад

      i have the problem too sir please help me solve this

    • @LoharTalk
      @LoharTalk  4 года назад

      Download the project using this below link
      www.lohartalk.com/#/watch?v=PzSxehu4G78

  • @chandrasekar-lr1fh
    @chandrasekar-lr1fh 5 лет назад

    Is this responsive ...every thing cleared
    ..nice explination

    • @LoharTalk
      @LoharTalk  5 лет назад

      No its not fully responsive.

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

    hmmm

  • @jekotediashvili8794
    @jekotediashvili8794 5 лет назад +1

    please tell me one reason why are you writting that editor?

    • @LoharTalk
      @LoharTalk  5 лет назад

      Now i don't use that. Currently I'm using VS Code.

  • @AnimatedAzterkGT
    @AnimatedAzterkGT 5 лет назад +1

    Can you please send the codes i need this on my capstone, pls

    • @LoharTalk
      @LoharTalk  5 лет назад

      Please look in video description you will find the website link.You can download the project code from there.

  • @MixReef
    @MixReef 5 лет назад

    how to rotate those tabs sir? anyway, thanks for awesome tutorial

    • @LoharTalk
      @LoharTalk  5 лет назад

      Thank you for your valuable feedback. Kindly explain your question.

    • @MixReef
      @MixReef 5 лет назад

      ​@@LoharTalk how to looping this . because when i make another tabs form in the same layer i have to edit that showPanel manually

    • @LoharTalk
      @LoharTalk  5 лет назад

      In that case you need to dynamically create the tabs and buttons using javascript.While creating you assign unique ID to every tab and pass it to showpanel function.

    • @MixReef
      @MixReef 5 лет назад

      @@LoharTalk sir, can you make example please? i try but still didn't get it. you can send it to yumand02@gmail.com thankyou

  • @abhiklhkr6530
    @abhiklhkr6530 5 лет назад

    What is the name of the editor you are using

  • @dileeplakshan7373
    @dileeplakshan7373 5 лет назад

    What is the software that you used to create this?

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

    Can I use tag instead of ?

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

      Yes you can but then you need to change css accordingly.

  • @sayedshawdagor5031
    @sayedshawdagor5031 5 лет назад

    why i can't go to the project code described?

    • @LoharTalk
      @LoharTalk  5 лет назад

      You can find project code at following path.
      www.lohartalk.com/#/watch?v=PzSxehu4G78

  • @humbertomoli99
    @humbertomoli99 5 лет назад

    You can do it only with css

  • @gayatri263
    @gayatri263 4 года назад

    Sir this code is not working
    Plz help me
    My panels are not coming only tabs and hover effect on them is visible
    I followed this entire video
    What's wrong ?

    • @manormasharma2517
      @manormasharma2517 4 года назад

      same problem occurs with me....... add your js file above body tag and then check...all will work

    • @LoharTalk
      @LoharTalk  4 года назад

      You can download the project code using link given in description.

  • @myworld7667
    @myworld7667 4 года назад

    my friend how i can display tabs all of page

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

      check this is full page anmiated tabs , ruclips.net/video/d9MW5nPIgSk/видео.html

  • @tejindergrewal6606
    @tejindergrewal6606 6 лет назад +1

    Can you provide the code aswell

    • @LoharTalk
      @LoharTalk  6 лет назад

      Kindly provide your email id or mail us on lohartalk@gmail.com for the same.

    • @tejindergrewal6606
      @tejindergrewal6606 6 лет назад

      tejindergrewal@outlook.com

    • @tejindergrewal6606
      @tejindergrewal6606 6 лет назад

      thanks i am waiting for it

    • @LoharTalk
      @LoharTalk  6 лет назад

      Kindly check your mail and let us know in case any concern.

    • @aniketbhosale1444
      @aniketbhosale1444 6 лет назад

      bhosaleaniket5@gmail.com can you send the code

  • @helpdesk3925
    @helpdesk3925 5 лет назад +1

    given link for download is not working

    • @LoharTalk
      @LoharTalk  5 лет назад

      Hi link is working fine.Go to that link and click on "Project Code"

  • @asakakubota4165
    @asakakubota4165 4 года назад

    I am getting left-hand invalid in node part
    Node.style.background-color=‘“”
    Can anyone help please?

    • @LoharTalk
      @LoharTalk  4 года назад

      Try thi
      Node.style["background-color"]=""

    • @asakakubota4165
      @asakakubota4165 4 года назад

      @@LoharTalk That worked, but now it says tabButtons.forEach is not a function

    • @LoharTalk
      @LoharTalk  4 года назад

      Hi,
      Download the project code from below link
      www.lohartalk.com/#/watch?v=5YKaBri5uP0

    • @asakakubota4165
      @asakakubota4165 4 года назад

      @@LoharTalkI just watched the video but there is no code related to this one?

    • @LoharTalk
      @LoharTalk  4 года назад

      Hi,
      Download the project code from below link
      www.lohartalk.com/#/watch?v=5YKaBri5uP0

  • @MohdAsif-bo9cl
    @MohdAsif-bo9cl 5 лет назад

    i tried but i could not do this .pls help bro

    • @LoharTalk
      @LoharTalk  5 лет назад

      You can download project code from below link.
      www.lohartalk.com/#/watch?v=PzSxehu4G78

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

    the link does not work

  • @edwinleonardo9340
    @edwinleonardo9340 5 лет назад

    hola puedes poner el link de la descaga porfavor, no sale nada en este lik solo un menu

    • @LoharTalk
      @LoharTalk  5 лет назад +1

      Kindly provide your comment in English

  • @Mohamedadel-fz2wy
    @Mohamedadel-fz2wy 5 лет назад +1

    the link is not working

    • @LoharTalk
      @LoharTalk  5 лет назад

      Here is project preview
      www.lohartalk.com/assets/Preview/PzSxehu4G78/

    • @Mohamedadel-fz2wy
      @Mohamedadel-fz2wy 5 лет назад

      I want the code can you send it to my by mail please

    • @LoharTalk
      @LoharTalk  5 лет назад

      Which link is not working?

    • @Mohamedadel-fz2wy
      @Mohamedadel-fz2wy 5 лет назад

      @@LoharTalk thelink you just sent to me and the one is the description

    • @LoharTalk
      @LoharTalk  5 лет назад

      Try this and let me know
      drive.google.com/file/d/1DH6UFcBTLSvl1FlvMkyqOeEH2EpwUgT9/view?usp=drivesdk

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

    Download Project code: - reference don't work

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

      Website under maintenance.

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

    This is bad code, this isn't how devs should implement this idea