What is DOM

  Рет қаралды 175,924

Hitesh Choudhary

Hitesh Choudhary

Күн бұрын

Welcome to a youtube channel dedicated to programming and coding related tutorials. We talk about tech, write code, discuss about cloud and devops. That’s what we do all day, all year. We roll out a lot of series and videos on our channel.
All the learning resources such as code files, documentations, articles and community discussions are available on our website:
chaicode.com/
You can find our discord link, github link etc on the above website.
Twitter/X link: x.com/hiteshdo...
Discord link: hitesh.ai/discord
Learn React with 10 projects: • Let's learn react from...
Learn Docker: • A practical guide on D...
Learn Kubernetes: • Complete Kubernetes Co...
How does a browser works: • How does a browser wor...
How nodejs works: • How node JS works | En...
Learn Redux-toolkit: • Learn Redux Toolkit in...
Learn NextJS: • Nextjs Full stack course
Learn Typescript: • Why to learn Typescript
Learn Javascript: • Welcome to new JavaScr...
Learn React Native: • React Native Mastery: ...
Learn Zustand: • React state management...
Learn Golang: • How to get started wit...

Пікірлер: 170
@nicholasprod2012
@nicholasprod2012 6 жыл бұрын
Explained DOM in 10 minutes what a udemy course did in 2 hours. Thank you.
@KasperMcKay
@KasperMcKay 4 жыл бұрын
You too bro?
@siddiquahanjum1347
@siddiquahanjum1347 4 жыл бұрын
totaly true man
@haroldcjennettiii
@haroldcjennettiii 4 жыл бұрын
Came here to say the same thing.
@golden4593
@golden4593 4 жыл бұрын
Hmm I always take courses off udemy and never had a problem with the instructors explanation
@WeebsWorld
@WeebsWorld 3 жыл бұрын
Lol, you haven't even used Udemy I guess, because the Teacher there explained it in 7 mints. You wanna appreciate people go for it but don't defame others.
@nugget-u2u
@nugget-u2u 5 жыл бұрын
the greatest guy is who can explain a hard concept clear and simple
@feiyucai5494
@feiyucai5494 5 жыл бұрын
7:38 It clearly said document.documentURL is undefined from line 1 on myscript.js...
@alexandreboyon2871
@alexandreboyon2871 5 жыл бұрын
"console.log(document.documentURI);" should work! With an uppercase 'i', not an L
@wovilearn5747
@wovilearn5747 4 жыл бұрын
Use "document.URL" instead
@34521ful
@34521ful 6 жыл бұрын
I really like your teaching style, you actually spend time explaining it in a really simple manner with many examples for reassurance. Great job, keep up the good work mate.
@Mrs4alonangel
@Mrs4alonangel 3 жыл бұрын
Thanks for the video but just a little fix about the part you tried to print the url actually printed undefined. For printing - console.log(document.URL); or console.log(document.URI);
@2013DNA
@2013DNA 5 жыл бұрын
..explained DOM in less than 5 minutes and did not make my head spin..lol Thank you so much!
@shubhamkumarsingh8224
@shubhamkumarsingh8224 6 жыл бұрын
Waow .... so simple ... so easy to learn it ..........thank u ..again.. sir .....
@shpendsermaxhaj7062
@shpendsermaxhaj7062 5 жыл бұрын
Liked, subbed, and thanks a lot. This solved my question, which was: Why we do have to use DOM when we can directly go to HTML or the particular element and change it. But as I've seen on this video, it's just an easier way to manage, manipulate, see your structure, so it's like a management tool. This video solved my question.
@codigosencillo8981
@codigosencillo8981 5 жыл бұрын
In simple words is a tree based on nodes, each node is an element.
@geekyboy7725
@geekyboy7725 6 жыл бұрын
It's so simple but sounds scary
@mahmoodkashmiri
@mahmoodkashmiri 6 жыл бұрын
Oh yes! Wait is finally over... There we go DOM THANKS sir for amazing content
@tkssharma
@tkssharma 4 жыл бұрын
Watch 1000+ Tech Videos from My channel talking about Everything in Javascript Here is the playlist for React JS kzbin.info/www/bejne/kIjUl3R6mJJjgZo
@sudeepmahato4967
@sudeepmahato4967 6 жыл бұрын
I was struggling to understand DOM from last 6 months, but this video made me understand DOM within 10 mins. Nice way to explanation. It would be helpful if you uploads full courses videos like react js or node js or angular in udemy or udacity.
@HiteshCodeLab
@HiteshCodeLab 6 жыл бұрын
Available here courses.learncodeonline.in
@Steve-pm1zy
@Steve-pm1zy 4 жыл бұрын
You have no idea of how much this video helped me! Everyone else be sounding like Einstein. Thank you for such a simple explanation
@sathyamadhavan
@sathyamadhavan 3 жыл бұрын
Amazing Hitesh, explained it in very simple example, thank you.
@saurabhkanswal7954
@saurabhkanswal7954 6 жыл бұрын
Hey hitesh congratulations for this milestone. I am happy for you💛 your 3546th subscriber
@ayushmanbt
@ayushmanbt 6 жыл бұрын
Before I was struggling with understanding dom.. But you made this easy to understand.
@shauryaverma8780
@shauryaverma8780 5 жыл бұрын
@2:52 you can use window key + z to use word wrap
@NewLondonMarshall
@NewLondonMarshall 3 жыл бұрын
He's on a mac though unfortunately!
@IsabelZamudio97
@IsabelZamudio97 4 жыл бұрын
Your explanations are to the point and helpful. Thank You!
@srujan099
@srujan099 4 жыл бұрын
my whole doubts in DOM are cleared in 10 min 💥❤️
@aliuyank7377
@aliuyank7377 2 жыл бұрын
this man is a legendary king.
@abhijitthorat9296
@abhijitthorat9296 6 жыл бұрын
You make teaching and learning easy bro.. 😘
@Bisibletoanyoneonyoutube
@Bisibletoanyoneonyoutube 4 жыл бұрын
Mr. Hitesh why this video is not included in you js playlist???
@waynewalgenbach3322
@waynewalgenbach3322 5 жыл бұрын
my fav youtube friend :D You Awesome ! looked all over and read the same, still confusing explanations. still like "I DONT GET IT" ... BUT then i found you! DONE! :D strait to the point and CLEAR AND SIMPLE. takes a simple thing and explains it. YOUR THE MAN
@samuelmatheson9655
@samuelmatheson9655 4 жыл бұрын
//which is better const pannel = dcoument.getElementById('pannel'); function showpannel(){ pannel.style.display="block" } //or is it better to just function showpannel(){ dcoument.getElementById('pannel').style.display="block" }
@kirthikas4940
@kirthikas4940 4 жыл бұрын
Well Explained. Thanks. What is virtual DOM?
@barbobrien2097
@barbobrien2097 5 жыл бұрын
how can i get drop-down hints? very useful
@DeepakKumar-uo5zu
@DeepakKumar-uo5zu 6 жыл бұрын
hi hitesh where is your second video related to dom pls provide a link
@alex19991014
@alex19991014 4 жыл бұрын
That's very clear! Thank you!
@itsinthewater6531
@itsinthewater6531 4 жыл бұрын
Great video. Do you have a tutorial on how to fix page speed error - Avoid an excessive DOM size - For non-techies.
@satyapradeep5812
@satyapradeep5812 5 жыл бұрын
Hi Hitesh, Can you make ReactJs and NodeJs Videos also
@shipraagrahari3774
@shipraagrahari3774 6 жыл бұрын
Hiii Hitesh...you are doing fabulous job, I do like all your videos they all are relevant and helps me in lots of projects but do you any website or channel where we can discuss some of the issues we get. Like right now I am getting issue in one of my project built on angular and I need help to resolve that issue as soon as possible.
@HiteshCodeLab
@HiteshCodeLab 6 жыл бұрын
I usually prefer to take entire projects because to resolve such issues, I need to understand entire way of your code writing style and then fix it. This is like double work. But surely you can ping me at fb.com/HiteshChoudharyPage
@shipraagrahari3774
@shipraagrahari3774 6 жыл бұрын
Hitesh Choudhary Ok no issues... thanks for replying...n keep posting videos like this, you are very good at it.👍
@sangtran545
@sangtran545 5 жыл бұрын
Thank you for your simple explanation
@pavantejavydhik7354
@pavantejavydhik7354 6 жыл бұрын
hey Hitesh a big thumbs up! in 18 min you hit 180+ views . the only potential is your tendency to teach is our great motivation for Lear code, thanks much for contribution, pls keep encouraging .
@MegaSpiderpunk
@MegaSpiderpunk 4 жыл бұрын
My dude. You just earned a subscriber today.
@KingUnity22
@KingUnity22 3 жыл бұрын
Thanks for the explanation.
@Mike-vj8do
@Mike-vj8do 2 жыл бұрын
If i'm on a website and click a button, the html never actually changed right? Even if i click a button right? Thank you for your help!
@VarshaSingh-ye9qv
@VarshaSingh-ye9qv 5 жыл бұрын
Fabulous explanation. Thanks :)
@diveekkumar2590
@diveekkumar2590 2 жыл бұрын
Hello Sir, add this video in playlist its missing over there...!
@dev_casper
@dev_casper 6 жыл бұрын
Dear.. Which software do you use for coding.. Im I guess , sublime?
@DheerajRijhwani
@DheerajRijhwani 6 жыл бұрын
A video on AJAX.
@BilalKhan-do1xg
@BilalKhan-do1xg 4 жыл бұрын
which IDE you were using
@BilalKhan-do1xg
@BilalKhan-do1xg 4 жыл бұрын
@@Divinecalls hello sir, I have a question not about the on discussion topic, well , I am welling to work on web board project including canvas and shape as well, would you recommend me any awesome APIs/library which gonna me easily....
@BilalKhan-do1xg
@BilalKhan-do1xg 4 жыл бұрын
@@Divinecalls I tried both in my project while didn't work well, a moment ago someone told me to look for shv.js api What about svg.js you have any experience with in ?
@grandhegopichand4374
@grandhegopichand4374 6 жыл бұрын
Is this similar to stax..?
@bojiun1377
@bojiun1377 4 жыл бұрын
What does that 'model' mean?
@aceoneeve1562
@aceoneeve1562 5 жыл бұрын
sir , I hate CS for my life until i found you Salute sir ,
@priyanandinijain9467
@priyanandinijain9467 4 жыл бұрын
Thanku sir for great explaination.
@sabrinamitra8612
@sabrinamitra8612 3 жыл бұрын
Great video! Thanks!
@slowedandreverbgirl
@slowedandreverbgirl 4 жыл бұрын
I only knew document.getElementById() before this tutorial. Never knew we can do this much with "document". Thank you, Hitesh. This really helped.
@СлучващотоСеВБългария
@СлучващотоСеВБългария 5 жыл бұрын
Finally an indian with understandable english, amazing keep going 👌👌👌
@harynka5706
@harynka5706 5 жыл бұрын
Thank you a lot! I've found this video after hours of trying to understand this concept. Now it seems clear.
@tkssharma
@tkssharma 4 жыл бұрын
Watch 1000+ Tech Videos from My channel talking about Everything in Javascript Here is the playlist for React JS kzbin.info/www/bejne/kIjUl3R6mJJjgZo
@adamliberov9639
@adamliberov9639 6 жыл бұрын
It's helped me alot, thanks...
@牛岱
@牛岱 6 жыл бұрын
you can type js code in the console directly, so you don't have to write "console.log(...)" in
@simonllovefootball
@simonllovefootball 4 жыл бұрын
how does the keyword "Document" know to refer to index.html?
@stefanogpixels
@stefanogpixels 3 жыл бұрын
So this make sense, but when are you gonna use them? Still confused
@nayandey9112
@nayandey9112 6 жыл бұрын
It seems clear to me now.Thanks a lot
@zubair_borkala
@zubair_borkala 3 жыл бұрын
In short, The HTML DOM is a standard for how to get, change, add, or delete HTML elements
@AkhileshKumar-mw2kq
@AkhileshKumar-mw2kq 4 жыл бұрын
can someone please tell which script editor is that?
@sumitsharma8747
@sumitsharma8747 6 жыл бұрын
Thanks for the amazing js series ... This is the most easy way to understand DOM please continue the same.
@tkssharma
@tkssharma 4 жыл бұрын
Watch 1000+ Tech Videos from My channel talking about Everything in Javascript Here is the playlist for React JS kzbin.info/www/bejne/kIjUl3R6mJJjgZo
@hamzafaysal909
@hamzafaysal909 6 жыл бұрын
why this video is not include in the JS playlist?
@KidsPoems274
@KidsPoems274 3 жыл бұрын
NIce Explanation
@niketanchandarana
@niketanchandarana 6 жыл бұрын
is it compulsory to use "document" word in console.log()?..sir🤔
@Akshay-Raut
@Akshay-Raut 6 жыл бұрын
Niketan Chandarana if you intend to do some DOM manipulation using vanilla JavaScript then yes.
@niketanchandarana
@niketanchandarana 6 жыл бұрын
AKshay Raut... Thanks for the answer 😊
@musicforsoul123
@musicforsoul123 4 жыл бұрын
Thank God I got this video.... I was so confused! !!
@MrDavid123w
@MrDavid123w 5 жыл бұрын
Thanks for the simple answer
@kmr_chan
@kmr_chan 6 жыл бұрын
Loved your video ...awesome
@BangMaster96
@BangMaster96 5 жыл бұрын
I just hate textbooks now, KZbin has provided so much free and easy to understand tutorials, textbooks fail to explain so many easy concepts to students. A simple example is better than a thousand words in a textbook.
@asimshrestha1732
@asimshrestha1732 6 жыл бұрын
Sir this tutorial is so good . Sir can tell how to setup the golive and open the js file
@rajchhatrala5988
@rajchhatrala5988 6 жыл бұрын
which text editor do you use
@DheerajRijhwani
@DheerajRijhwani 6 жыл бұрын
Raj Chhatrala VS Code
@rajchhatrala5988
@rajchhatrala5988 6 жыл бұрын
Dheeraj Rijhwani Is it free, how can I download it.
@c-mmon2257
@c-mmon2257 3 жыл бұрын
"How you are structuring the web elements that your Document Object Model"
@skhossain4116
@skhossain4116 5 жыл бұрын
So in simple words: *How you structuring your web elements that is called DOM.*
@skhossain4116
@skhossain4116 5 жыл бұрын
@@bobbymidha3901 Really ?
@bobbymidha3901
@bobbymidha3901 5 жыл бұрын
@@skhossain4116 joking
@mauriciolandos4712
@mauriciolandos4712 5 жыл бұрын
@@bobbymidha3901 did you get it right?
@soumyamandal4483
@soumyamandal4483 6 жыл бұрын
Sir,its help me a lot...please make a video abou html class,id,name,value related..
@arnabchakraborty246
@arnabchakraborty246 2 жыл бұрын
Thank You very very much sir.........
@funplace3
@funplace3 6 жыл бұрын
Which editor is this?
@disha2932
@disha2932 5 жыл бұрын
Visual Studio Code
@piushsingh6066
@piushsingh6066 4 жыл бұрын
if *title* is not a *direct child* of *HTML* tag object then how *doucment.title* works, it should be like *document.head.title*, just you shown is a *document.head*. Which means there is no parent-child relation just like tree data structure
@EXPERIMENTSHOW.
@EXPERIMENTSHOW. Жыл бұрын
thanx bro to save my time
@samosrecaipozitiva1764
@samosrecaipozitiva1764 4 жыл бұрын
this man is true hero :D
@mutaz9025
@mutaz9025 5 жыл бұрын
this is very simply more than udacity course .
@yashwardhan9014
@yashwardhan9014 5 жыл бұрын
Sir in my vscode live server is not working .What should i do?
@ShowBizJunkie
@ShowBizJunkie 4 жыл бұрын
You said ...now the script is connected... but you did not show how to connect and what to connect to?
@cubedev4838
@cubedev4838 5 жыл бұрын
Amazing explanation!!
@marcelvarela3118
@marcelvarela3118 5 жыл бұрын
Well explained!
@abhijitthorat9296
@abhijitthorat9296 6 жыл бұрын
Hey I guess you have not included this video in js series.. And there is some problem in sequence of video when we see list of js videos in your channel.. This DOM video is missing and video no 34 and 33 should be interchange
@mynkprtp
@mynkprtp 3 жыл бұрын
Document.documentURL returned undefined in ur case sir.
@aazammazaa
@aazammazaa 5 жыл бұрын
Simple and clear, Thanks :)
@Jonnhy0989
@Jonnhy0989 5 жыл бұрын
Thanks a lot! Very clear.
@joshibhargav20
@joshibhargav20 4 жыл бұрын
Thank you very much man! this is pretty helpful. Something which I was searching since long, but didn't find anywhere. You mentioned exactly what we were looking at. By the way, when I am doing audit using Google Lighthouse in Chrome Dev Tools, one of the performance audit parameter is "Avoid excessive DOM size". It mentions ideally maximum tree depth should be 32 and parent-child elements should be fewer than 60. I wanna work on this; could you guide how can I get an overview of all these DOM hierarchy?
@tkssharma
@tkssharma 4 жыл бұрын
Watch 1000+ Tech Videos from My channel talking about Everything in Javascript Here is the playlist for React JS kzbin.info/www/bejne/kIjUl3R6mJJjgZo
@balneetkaur2043
@balneetkaur2043 5 жыл бұрын
Heartiest thanks to you sir ..😇 Whenever I wanna clear my concept i always.. Prefer to watch Ur videos at first as its always very helpfull(forSure)..!!! & your way of teaching is very APPRECIABLE .. simple+unique 😊😊 .. !!
@tkssharma
@tkssharma 4 жыл бұрын
Watch 1000+ Tech Videos from My channel talking about Everything in Javascript Here is the playlist for React JS kzbin.info/www/bejne/kIjUl3R6mJJjgZo
@jessmanoj6718
@jessmanoj6718 6 жыл бұрын
Do you only wear grey t shirts? is it because u only have 1 shirt if u agree like
@shrivatsadeshpande5633
@shrivatsadeshpande5633 4 жыл бұрын
Hello sir my live server is not working.i installed it but as i clicked on "Go live" the file is not opening in my browser(my (chrome) is not opening)??? someone help me !
@ayanasanthosh3334
@ayanasanthosh3334 5 жыл бұрын
i was so confused...thank you so much
@xinranyu1684
@xinranyu1684 5 жыл бұрын
Great video!
@AW-ws5cf
@AW-ws5cf 5 жыл бұрын
thank you very much very usefull
@prabinlamsal5125
@prabinlamsal5125 2 жыл бұрын
Thanks a lot
@ajaywadhwa3398
@ajaywadhwa3398 6 жыл бұрын
Bro you have not included this video in your js playlist 😃
@mfklogsaif
@mfklogsaif 5 жыл бұрын
Excellent!
@suryasikharej5511
@suryasikharej5511 5 жыл бұрын
you are awesome sir thank you so muchhhhhhhhhh
@haythamkenway8343
@haythamkenway8343 4 жыл бұрын
I think the video is quite misleading. DOM means Object model(representation) of the Document(The Website). It is basically a medium(API) by which we can interact with a website using javascript. Because the HTML of a website is turned into javascript objects under the hood in a tree-like model. Truly speaking DOM is separate from the javascript language itself. We can see the object representation of the document object by writing console.dir(document). Google Chrome just abstracts away the complexities if we write console.log(document).
@KingUnity22
@KingUnity22 3 жыл бұрын
When you console logged the Document URL, it actually returned undefined.
@mahmoodkashmiri
@mahmoodkashmiri 6 жыл бұрын
Hair style changed!
@HiteshCodeLab
@HiteshCodeLab 6 жыл бұрын
Just like my t-shirt, I don't give much thought to looks :)
@paankouri7511
@paankouri7511 4 жыл бұрын
Great...
@shradhapatil8351
@shradhapatil8351 3 жыл бұрын
1:00 && 9:08
@EsenJolie
@EsenJolie 6 жыл бұрын
Thanks bro 🙏😌
Confusing part of THIS in javascript
9:09
Hitesh Choudhary
Рет қаралды 44 М.
JS "this" and Function References - What is it all about?
20:20
Players push long pins through a cardboard box attempting to pop the balloon!
00:31
Virtual DOM, Fibre and reconciliation
13:44
Hitesh Choudhary
Рет қаралды 30 М.
What is Model View Controller AKA MVC 🖥
9:14
Hitesh Choudhary
Рет қаралды 217 М.
What is DOM
11:24
Hitesh Choudhary
Рет қаралды 60 М.
What do programmers actually do?
9:20
Physics Girl
Рет қаралды 2,1 МЛН
Learn JSON in 10 Minutes
12:00
Web Dev Simplified
Рет қаралды 3,2 МЛН
Maps and for of loop in javascript
22:35
Hitesh Choudhary
Рет қаралды 44 М.
Learn DOM Manipulation In 18 Minutes
18:37
Web Dev Simplified
Рет қаралды 1 МЛН
PHP in 2019 - Let's talk about it
17:00
Hitesh Choudhary
Рет қаралды 377 М.
Javascript Dom Manipulation | Javascript Tutorial For Beginners
16:50
developedbyed
Рет қаралды 209 М.