JavaScript DOM CSS Styling Methods Tutorial in Hindi / Urdu

Поділитися
Вставка
  • Опубліковано 15 жов 2024
  • In this tutorial you will learn how to style html elements with javascript in Hindi, Urdu.You can learn javascript css styling methods to style html tags with javascript className , classList and style methods.
    JavaScript Tutorial Playlist
    • 🏆 JavaScript Tutorial ...
    Follow us on Facebook
    / yahooobaba
    Follow us on Twitter
    / yahooobaba
    #javascript #webdevelopment #webdesign

КОМЕНТАРІ • 150

  • @ajaygoel7889
    @ajaygoel7889 5 років тому +20

    You are doing a tremendous job. God bless you. I dont comment regularly. But your videos forced me to comment, Simply superb

    • @YahooBaba
      @YahooBaba  5 років тому +4

      Thanks Ajay for appreciating my work :)

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

    Best ever channel for JavaScript and Web Development tutorials.

    • @YahooBaba
      @YahooBaba  2 роки тому +2

      Glad you like them!

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

      @@YahooBaba Sir Please make a videos lecture on React JS

  • @abduljalil4528
    @abduljalil4528 5 років тому +3

    thanks bro...i am your regular student and following your classes...

  • @mr.hacker....6266
    @mr.hacker....6266 2 роки тому +4

    Thanks Sir for Providing Quality Content for Students.... 👌👍👌
    Free Of Cost...😊

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

      Your most welcome :)

  • @mrankushtechnical
    @mrankushtechnical 3 роки тому +2

    className method SE existing classes remove ho Jati hai...

    • @YahooBaba
      @YahooBaba  3 роки тому +1

      Uske liye doosra method aata hai ClassList.
      www.w3schools.com/howto/howto_js_remove_class.asp

    • @mrankushtechnical
      @mrankushtechnical 3 роки тому

      @@YahooBaba you have discussed this already sir , 😀
      But sir className method SE to purani classes remove ho Jayegi agar usme nayi classes assign krenge to Ku ki wo as a string kaam karega..

    • @twi4458
      @twi4458 3 роки тому

      @@mrankushtechnical Acha aisa hota kya?

    • @twi4458
      @twi4458 3 роки тому

      @@mrankushtechnical Ha bhai aisa ho rha h✨

    • @mrankushtechnical
      @mrankushtechnical 3 роки тому

      @@twi4458 yes, Ku ki wo as a variable consider hota hai.

  • @englishspeaking2.023
    @englishspeaking2.023 5 місяців тому

    He is an Amazing Teacher ❤❤

  • @gurejalectures
    @gurejalectures 5 років тому +1

    Bro aik sy zayada css properties apply krny k liyea kya command ho g?

  • @shahwazhydernaqvi9179
    @shahwazhydernaqvi9179 3 роки тому

    sir apka andaz bahot achcha hai
    Apse request hai React per Bhi video banaiye

  • @prashantdoijode1836
    @prashantdoijode1836 4 роки тому

    Way of teaching is Superb

  • @MTTRex
    @MTTRex 3 роки тому

    Sir it's mean tutorial get vallu and set valu class ...... ka jo (get.attributer,setAttribute,Attribute ) inko hum classNmae,style,classList.add,classlist.remove se hum prathithapan karsakte he!!!!!

  • @akshayzade8441
    @akshayzade8441 4 роки тому +3

    Sir video is great with all this knowledge
    but are these stuff really important for the project?
    because i feel directly changing the css is simple and best option

    • @YahooBaba
      @YahooBaba  4 роки тому +1

      Akshay If you want the website visitor change the style itself means dynamically on click something then we uses Javascript.

    • @akshayzade8441
      @akshayzade8441 4 роки тому

      @@YahooBaba - Ohhhhh YES GOT IT
      I have seen websites which changes content dynamically
      ThankYou

    • @maxmarios1508
      @maxmarios1508 4 роки тому +1

      @@akshayzade8441 hello brother i am also new in this field ..please give me your mobile number or whatsap i need your help

  • @priyanshubhardwaj2158
    @priyanshubhardwaj2158 4 роки тому +3

    Is it necessary to provide the CSS styling in HTML file itself or else we can also target the CSS styling from the CSS files?

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

      u can use external css it will also work :)

  • @viveknagar5032
    @viveknagar5032 5 років тому

    Sir Ek Question Hai agr mujhe GetElementsByClassName se Bhot Sari Class's Select Karni ho to kaise karunga kuki mai try kar raha hu to bus ek hee ho rahi hai mujhe sab ko select karke unka innerHTML Change kar na h ek Sath kaise ho payega ye ?

  • @mdhasiburrahmannafiz9984
    @mdhasiburrahmannafiz9984 4 роки тому +4

    I just love thissss..
    You are great Yahoo Baba..
    You deserve millions of subscribers ❤

  • @AhsanBhatti98
    @AhsanBhatti98 5 років тому +1

    Thanks bro.You just solve my problems.

    • @YahooBaba
      @YahooBaba  5 років тому +1

      YourWelcome Ahsan :)

  • @raidislam9010
    @raidislam9010 4 роки тому

    just query purpose I am using (classList and className ) to add class into dom and also I am testing a string method to use this classList or className for example // var element = document.querySelector('#header').className.toUpperCase(); my #header class get Uppercase but I want to set uppercase my inner text ist possible to use className.toUpperCase , I am just asking cause when I add classList or className put a dot sign then show so many string method that's why I am just use it.

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

    Sir isme hum css ki different file ko target kr skte h
    Hum isme inline css target kr rhe h
    External css target kr sakte hai

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

      Inline css toh aap isi videos se dekh kar kar sakte hain.
      External CSS ko target nahi kar sakte.

  • @VeerpalKaur-uv9dv
    @VeerpalKaur-uv9dv 4 роки тому

    Sir jaise aapka pichhli video mein chl nhi rha tha console mein...Mera bhi nhi chl rha jab console mein type karti hoo tabhi kaam karte hai ye methods...plz bta do kaise theek karna hai

  • @faizkhatri5701
    @faizkhatri5701 4 роки тому +1

    Sir agar hamne ek div banaya hai jiska class humne container rakha hai.
    To agar hame us container ki width js se excess karni ho to kar sakte hai????
    Agar ha to kaise??

    • @YahooBaba
      @YahooBaba  4 роки тому +2

      document.getElementsByClassName("container")[0].offsetWidth;

    • @faizkhatri5701
      @faizkhatri5701 4 роки тому

      Sir clintwidth and offsetwidth me kya difference hai..

    • @YahooBaba
      @YahooBaba  4 роки тому +3

      @@faizkhatri5701 offsetwidth = width + leftborder-width + rightborder-width and clientwidth = width without border

    • @faizkhatri5701
      @faizkhatri5701 4 роки тому

      @@YahooBaba thanks.. 👍

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

    I don't know why ur channel subscriber is so less because u deserve million subscribers 😭

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

      Thanks for appreciating my work :)

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

    thanx bro.... i was stuck in this

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

    thanks for amazing element video

  • @umairahmed282
    @umairahmed282 4 роки тому

    please tell me the plugins you are using that shows suggestions beneath on javascript..please reply

  • @junedshekh313
    @junedshekh313 2 роки тому +3

    Again it would have been better if you have shared these html/css files so that we can practice along with you. Right now topics are much complex and unfortunately we don't have the source files to practice with.

    • @YahooBaba
      @YahooBaba  2 роки тому +3

      Get it from our website www.yahoobaba.net

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

      @@YahooBaba Thanks

  • @aliisrar9676
    @aliisrar9676 3 роки тому +1

    great teacher thank you so much sir

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

    how can i change both the para to " akif" ?
    Lorem ipsum dolor sit amet consectetur adipisicing elit. Nostrum eligendi id aliquam
    Lorem ipsum dolor sit amet consectetur adipisicing elit. Nostrum eligendi id aliquam


    let a;
    a = document.querySelectorAll("#head .para").innerText = "akif"
    when i put this ..
    a = document.querySelectorAll("#head .para")[0].innerText = "akif"//it changes the first para to akif but not second.
    i want to change both the para to akif using this..need help

  • @razamustafa7283
    @razamustafa7283 4 роки тому

    sir ek help ha mia cms based responsive web banana chata hn to uskay liye kn kn si video start karu dhekna step by step.

  • @rupendrakumar128
    @rupendrakumar128 5 років тому

    Thanku brother ur class very helpful please carry on

    • @YahooBaba
      @YahooBaba  5 років тому +1

      Your welcome Rupendra :)

  • @niteshdimri6517
    @niteshdimri6517 3 роки тому +1

    Sir, please make some project on javascript, it will very beneficial for us

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

    thanks sir for pro level content👌👍

  • @princethakur8246
    @princethakur8246 3 роки тому

    Hi im watching ur all videos and practicing daily but I have a problem regarding this method I used this method in java script but it does not works it shows an error of cannot read property but when I use same method in console section it works so plz help me how I solve this problem

    • @YahooBaba
      @YahooBaba  3 роки тому

      Send me your code file with this comment at my email id : hello@yahoobaba.net
      I will check it.

  • @wolverine_d_king9422
    @wolverine_d_king9422 3 роки тому

    I have one doubt. Why we should use css in javascript when we can do it in simple css file only. Means what is the point of using it there

    • @YahooBaba
      @YahooBaba  3 роки тому +2

      Hello Sagnik, Javascript is a Event based programming language. By using events you can use CSS on HTML elements like onclick, ondblclick, onresize, onscroll etc. but you can't do this event based css in CSS only.

  • @tavneetsinghkhurana8432
    @tavneetsinghkhurana8432 4 роки тому

    sir isme css file ko head mai lagana hai yaa phir script tag ke andar

  • @sunainasaini3722
    @sunainasaini3722 3 роки тому

    Sir uncaught typeerror aa rha hai check kr ke bta skte ho Kya problem hai plz sir
    Code =
    var style;
    document.querySelectorAll(".sty").style.backgroundColor="black";
    Console.log(style);
    Plzz sir check kr ke bta do Kya glti hai ??

    • @YahooBaba
      @YahooBaba  3 роки тому +1

      3 line lihki hai aur teeno lines mein galti hai.Send me your complete code file of html, javascript at my email id : hello@yahoobaba.net

    • @sunainasaini3722
      @sunainasaini3722 3 роки тому

      @@YahooBaba sir Maine aapko email krdi file plzzz check kr ke bta do

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

    Outstanding sir

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

    dear sir you are requst to make playlist on c# csharp🙏

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

      Can't possible this year because few other courses will coming soon like Laravel, React, Flutter

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

      @@YahooBaba ok bro

  • @prashantdoijode1836
    @prashantdoijode1836 4 роки тому

    Please Prepare Video's for AngularJs and Advance JavaScript.

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

    i am trying to get style to print on console its keep showing the error
    Uncaught TypeError: Cannot read properties of null (reading 'style')
    i am using the same code as you doing. but in visual studio its not even showing the style property in options.
    var element;
    element = document.querySelector("#header").style.backgroudColor;
    console.log(element);

  • @abidislamictutor
    @abidislamictutor 3 роки тому

    sir ye jo ap ne layout wala document bnaya hai plz is k liye bhi video bna den ya is ka code de den to hmary liye bht asani ho jaye g plzzz

    • @YahooBaba
      @YahooBaba  3 роки тому +1

      Layout ka code idhar samjhaya hua hai : ua-cam.com/video/2a5fSQxG5b4/v-deo.html

    • @abidislamictutor
      @abidislamictutor 3 роки тому

      @@YahooBaba ok mn ne aj hi ap ka reply prhne se pehle hi wo video dekh ke bna liya hai 😅😅

  • @sdajmathulla6893
    @sdajmathulla6893 3 роки тому

    your reaylly osm bhai

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

    Helpful thanks🌹

  • @ThisAmit
    @ThisAmit 3 роки тому

    Sir please reply, why it is not targeting the external css file?

    • @YahooBaba
      @YahooBaba  3 роки тому

      Do you want to modify anything in external css file with javascript ? If yes then it can't possible with JS to modify any file except JSON or XML files.

  • @jsscn
    @jsscn 5 років тому +1

    Ye CSS Karne keliye kyun js Ka mdad le hum CSS men jakar bhi to koi bhi style change Kar sakte hai phir JS kyun?

    • @jsscn
      @jsscn 5 років тому +1

      Reply Soon Sir

    • @YahooBaba
      @YahooBaba  5 років тому +1

      JS se CSS hum kisi EVENT pe laga sakte hai jaise (Click) pe, right click pe, keypress pe etc. CSS se hum koi event nahi add karsakte hai.

  • @prashantdoijode1836
    @prashantdoijode1836 4 роки тому

    As you explained (document.querySelector("#header").className or other...properties, not working, if we add document.querySelector("#header")[0].className then it's working.
    )

  • @SunilKumar-yd9bz
    @SunilKumar-yd9bz 5 місяців тому +1

    Thanks!

    • @YahooBaba
      @YahooBaba  5 місяців тому +1

      Your most welcome 🙏

  • @urbanreader722
    @urbanreader722 3 роки тому

    Good video sir

  • @Fantasycricketsport
    @Fantasycricketsport 4 роки тому

    Bro Jaise hum innsab main class Ka name KHI CSS change kr rhe h inka koi itna use h bhi website banane main kyuki class name toh CSS pe Jake bhi kr skte h or koi kyu ek new folder banayega js Ka or code likh ke change krega or bs inka role bta do Jo yh change kr rhe or or Flipkart or movies site main inka koi role hoga please rply krna purane message Ka bhi nhi Kiya apne or koi bhi reply kr skta h iss Message ka

    • @YahooBaba
      @YahooBaba  4 роки тому

      Dear mujhe lagta hai aapko JS ka asli use samajh nahi aaya hai. Dekho JS jo hai wo ek EVENT based programming hai. Aap CSS ki file se koi event pe css nahi laga sakte jaise onclick, ondoubleclick, onscroll, onresize etc. Aapko agar kisi EVENT pe CSS lagani hai tabhi aap Javascript ka use karenge. Flipkart ka aap jo name le rahe ho uspar toh har page mein iska use ho rha hai. Uske home page pe jo Carousel laga hua hai wo iska sabse bada example hai, uska dropdown mega menu bhi isi se bana hai aur bhi bhut se example hai.

    • @Fantasycricketsport
      @Fantasycricketsport 4 роки тому

      @@YahooBaba k bro aab smjh Aya

  • @BodoDailyUpdate
    @BodoDailyUpdate 4 роки тому

    Helpful video

  • @VeerpalKaur-uv9dv
    @VeerpalKaur-uv9dv 4 роки тому

    Please make a video on developer toolbar of chrome

  • @khbipu2977
    @khbipu2977 4 роки тому

    best js tutorial

  • @zafarhussain8273
    @zafarhussain8273 4 роки тому

    sir how to change the value from css file . becz in real project we dont use inline css.

    • @YahooBaba
      @YahooBaba  4 роки тому

      No we can't change the value of CSS file with Javascript. We uses Javascript to change CSS value only for temporary bases not permanent.

    • @zafarhussain8273
      @zafarhussain8273 4 роки тому

      @@YahooBaba ok you mean we can only change it on browser not in css file . thnks sir

  • @Aditya35654
    @Aditya35654 4 роки тому +2

    Sir when you will do your face reveal 😋😋😋😋😋😋

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

    But i used external CSS Stylesheet and its not targeting the required selectors

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

      For that you have to use (addClass) method of JS. Next video

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

    sir not able to find color.css file in the source code

  • @Shreyashrajput762
    @Shreyashrajput762 3 роки тому

    Badhai ho Sir video ka 2nd birth day hai

  • @debashischand287
    @debashischand287 4 роки тому

    className ka add remove() nehi hota he classList ke jese
    ?

  • @aliisrar9676
    @aliisrar9676 3 роки тому

    ALLAH Bless You

  • @mm-xb8oi
    @mm-xb8oi 4 роки тому

    Sir ,javascript css dom mere computer me run nhi ho raha hai kya Karu

    • @YahooBaba
      @YahooBaba  4 роки тому +1

      Javascript ka aapke computer se kuch lena dena nahi hai. Aapke code mein he kuch problem hogi. Aap apna code file mere email id pe bhej dejiye : hello@yahooobaba.net

    • @mm-xb8oi
      @mm-xb8oi 4 роки тому

      @@YahooBaba Sir mere system me problem thi,Maine same code alag
      System me ki to code chal gaya,thank you sir for a wonderful tutorial,please make a tutorial on react js

  • @GautamKumar-yv7li
    @GautamKumar-yv7li 3 роки тому +2

    sir please provide the source code of this front page for practicing please

  • @whatstime566
    @whatstime566 4 роки тому

    sir dom bht tough hai. why??? koi source btaeyee plzzzz

    • @YahooBaba
      @YahooBaba  4 роки тому

      Nahi dost yeh toh bhut easy hai

    • @whatstime566
      @whatstime566 4 роки тому

      @@YahooBaba thanks sir ,

  • @istiakahammad7074
    @istiakahammad7074 4 роки тому

    var style;
    style = document.querySelector(".home_main").style.border;
    console.log(style)
    sir moje show kar rahe hai.
    html= .
    css = .home_main{
    height: 600px;
    background-color: #5d6d7e ;
    border: 2px solid red;
    /* background-attachment: fixed; */
    }

    • @YahooBaba
      @YahooBaba  4 роки тому

      Yeh bilkul sahi deekha raha hai. Ab aap bataye ki aap kya karna chahte ho ?

    • @istiakahammad7074
      @istiakahammad7074 4 роки тому

      @@YahooBaba sir mai nehi samja.

    • @istiakahammad7074
      @istiakahammad7074 4 роки тому

      @@YahooBaba Sir.,If you make some practical project, than our all problem will have solved.

    • @YahooBaba
      @YahooBaba  4 роки тому

      Maine toh kuch samjhaya he nahi. Main toh yeh puch rha hun ki aap kya karna chahte ho ? means kya output chahte ho ?

    • @istiakahammad7074
      @istiakahammad7074 4 роки тому

      @@YahooBaba sir mai ab es problem ko solve kar diya.Thanks

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

    Yahoo Baba
    296K subscribers

  • @championclub3698
    @championclub3698 3 роки тому

    Sir why are you not providing source code any specific reason ?

    • @YahooBaba
      @YahooBaba  3 роки тому

      Dear all source code is available on our website : yahoobaba.net

  • @gurejalectures
    @gurejalectures 5 років тому +1

    document .getElementById("demo") .style .cssText = "margin-left:100px;background-color:red"; document .getElementById("demo") .setAttribute("style","margin-left:100px; background-color:red");
    Ye theak ha

    • @YahooBaba
      @YahooBaba  5 років тому

      Yes both commands are correct.

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

    thanks65

  • @atishayjain2205
    @atishayjain2205 4 роки тому

    Sir app bhot acha padhate ho but honestly speaking this language is a total MESS, it has some unnecessary rules to memorize. Like background color ke beech "-" hogya ya esse kai rules jo har waqt yad rkhna bhot mushkil hota hai

  • @MrTecnical-s9i
    @MrTecnical-s9i 2 місяці тому

    Bro not work in vs code 😔

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

    06:00 min

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

    Consol error are showing all time

  • @shubhamverma865
    @shubhamverma865 3 роки тому

    Sir can u send me this ppt plz 🙏

  • @yadgarelectronics8232
    @yadgarelectronics8232 3 роки тому

    voice not match with code 1 mint video delay