HTML Tutorial for Beginners 13 - The div Tag

  Рет қаралды 275,633

Net Ninja

Net Ninja

Күн бұрын

Yo Ninjas! In this HTML lesson we're going to take our coding skills up a notch and introduce the mighty DIV tag!! This is a versatile HTML tag that can help to organise your code and provide useful when we style our pages in CSS!
Beware ninjas - do not be too gung-ho with the div tag and use it everywhere! There are newer, HTML5 semantic tags which we can use in conjunction with our div tags to make our pages even better! Look out for my HTML5 course in the future :).

Пікірлер: 132
@ClaraSais
@ClaraSais 4 жыл бұрын
That’s great - I’m just learning HTML and CSS, trying to get my head around DIV tags. It’s so much easier for me to learn by visual rather than just reading instructions. Thanks
@firsttimegamingfirsttimega428
@firsttimegamingfirsttimega428 3 жыл бұрын
me 2 mate.
@and_still.
@and_still. 2 жыл бұрын
So where are you now in your journey of learning did you got any job
@mrbfortuin
@mrbfortuin 2 жыл бұрын
hey i just saw your comment now... how has the coding being going for you after 2yrs?
@mrbfortuin
@mrbfortuin 2 жыл бұрын
hey i just saw your comment now... how has the coding being going for you after 2yrs?
@nahomdesta1237
@nahomdesta1237 Жыл бұрын
Same here
@ellenniles660
@ellenniles660 3 жыл бұрын
Thank you very much for a quick, yet detailed listing of why div tags matter. -Dividing sections for organizational clarity -For use in CSS to come -Semantics and naming convention separation
@sankaranarayanan901
@sankaranarayanan901 11 ай бұрын
Thanks for summarizing it.
@ellenniles660
@ellenniles660 11 ай бұрын
@@sankaranarayanan901 Glad you found my summary notes helpful 😊
@HarikaShivva
@HarikaShivva 2 ай бұрын
Wow, i cannot believe a video that is posted 8 years ago is sooo easy to understand and clear, really good explanation ! (2024 btw)
@RameenFallschirmjager
@RameenFallschirmjager 3 жыл бұрын
"I'm here back in the index file exactly where I left it off last time" - a Ninja poem!
@vaishnavikollimarla6635
@vaishnavikollimarla6635 6 жыл бұрын
It is good but want to have a look of output
@sakthivel-oy4cg
@sakthivel-oy4cg 4 жыл бұрын
exactly
@voronaizlissabona
@voronaizlissabona 4 жыл бұрын
because on this stage, nothing is visually chaged on the website he is creating. As he said, inserting divs by itself will not produce any visual effect on a website...only adding to it a CSS option will produce an effect so you can see it.
@user-jy9tg5lg5n
@user-jy9tg5lg5n 4 жыл бұрын
@@voronaizlissabona That is right.
@najda9237
@najda9237 3 жыл бұрын
I would comment the same.
@teebz4811
@teebz4811 2 жыл бұрын
And what's , and then used for?
@simpsot_
@simpsot_ 7 жыл бұрын
i like how you even go into what keybinds you make...great tutorials man
@NetNinja
@NetNinja 7 жыл бұрын
Thanks, glad you like :)
@nompumelelongoma5833
@nompumelelongoma5833 4 жыл бұрын
i love it , but if would've worked better for me if i saw the end results
@anasanam6446
@anasanam6446 2 жыл бұрын
He said there would be no visual effect but it will come in handy when working with CSS and it makes it easier for u to come look at it again
@xigong3009
@xigong3009 2 жыл бұрын
My notes: div creates divisions of the contents in HTML. This will come handy when combined with "class" and "id"
@beepboopgpt1439
@beepboopgpt1439 6 жыл бұрын
Great help to this confusing tag.
@pink221
@pink221 2 жыл бұрын
Thank you Net Ninja! It is refreshing to see a video so clear and straight to the point.
@larryqcumber3705
@larryqcumber3705 6 жыл бұрын
Hi i've been following this toturial and i can easily understand it. Great toturials! Keep it up
@justchris846
@justchris846 7 жыл бұрын
Shawn, Excellent tutorials! If you haven't or haven't considered it, you should do tutorials on languages Such As Java, C++, and C#. as detailed as you get in these web series, you'd undoubtedly amass quite the following for anyone wanting to learn programming. Java would be an excellent place to start. Thanks for these tutorials bro!
@rarestaiden185
@rarestaiden185 5 жыл бұрын
spoiler alert he dose
@beenmicrophone5817
@beenmicrophone5817 5 жыл бұрын
@@rarestaiden185 spoiler alert, u smell like farts
@Furkanh66
@Furkanh66 3 жыл бұрын
@@beenmicrophone5817 Spoiler alert, you are toxic
@beenmicrophone5817
@beenmicrophone5817 3 жыл бұрын
@@Furkanh66 spoiler alert you spoiled ur pants
@Furkanh66
@Furkanh66 3 жыл бұрын
@@rahel7443 spoiler alert: You broke the streak. thank you
@ClaraSais
@ClaraSais 4 жыл бұрын
Why and how do you indent code please?
@homerthompson6028
@homerthompson6028 4 жыл бұрын
Hi I'm new to html but... shouldn't the contact info go in the foot instead of the bottom of the body?
@bh-doublel1764
@bh-doublel1764 4 жыл бұрын
Hi I have a very important question : why don't you use , , tags for split up your page in different sections? Does div tag has no semantical meaning? ... Thank you for your answer
@xfire3778
@xfire3778 3 жыл бұрын
BH-DoubleL you’re welcome
@Munchkie
@Munchkie 2 жыл бұрын
You can use that instead of divs. People use divs for grouping content, therefore it's easier to style it because of usage of div tag. I THINK. IM UNSURE. These videos are not explaining at start when to know to use them. I heard its easier but why? I dont know why people use divs instead of semantic tags. BEause semantic tags are more efficient instead of using div's and giving class names. I guess because there are limited semantic tags. so, they use divs as replacement maybe.
@TheBlueMahoe
@TheBlueMahoe 4 жыл бұрын
@netnija, now that i am near the end of the videos ,can you recommend some basic HTML tutorials and exercises I can complete and a few mini projects
@shintarojokagi946
@shintarojokagi946 4 жыл бұрын
What extension is it that shows what line you selected?
@Meet_Umar
@Meet_Umar 4 жыл бұрын
is using tag is a good practice in html5 beacuse i have heard lot about it and it is not recommended
@douggreene9669
@douggreene9669 3 жыл бұрын
Excellent explanation, thank you!!
@olanrewajuolawalewilliams1423
@olanrewajuolawalewilliams1423 2 жыл бұрын
You explainedthe $ out of this, been searching for 2days and you broke it down like 1+1 thank you. .
@deborshikashyap6745
@deborshikashyap6745 4 жыл бұрын
When u type something it sounds like u r hitting the table
@karunapandey555
@karunapandey555 3 жыл бұрын
Which type of code editor do you use ? :)
@thegiverr
@thegiverr 4 жыл бұрын
What is your recording application? I use OBS Studio and I want to use transition effect like this, from this tab to that tab. My OS is Windows 10
@dianaawino
@dianaawino 2 жыл бұрын
Thanks so much for this straight forward explanation👌👌💥💥
@okoyeemeka9815
@okoyeemeka9815 9 ай бұрын
Thank you very much. Still watching in 2023
@NetNinja
@NetNinja 8 ай бұрын
@moorland6735
@moorland6735 5 жыл бұрын
2:41 he didn't indent line 47. The OCD in me is killing me.
@ClaraSais
@ClaraSais 4 жыл бұрын
Moorland Hi! New to coding, why and how do you apply indents please?
@fatenissa5189
@fatenissa5189 5 жыл бұрын
Can you please add tutorials explaining in it html 5 and css 3 Thank you alot
@gavin_almeida
@gavin_almeida 2 жыл бұрын
This was such a good explanantion! Thank you!
@guardian218
@guardian218 2 жыл бұрын
Is using the 'div' tag about the same as using the 'section' tag?
@amazingproduct5018
@amazingproduct5018 3 жыл бұрын
Thank bro.This information really helpful ! keep it up man !
@gioestrada4652
@gioestrada4652 2 жыл бұрын
Thanks for the tutorial. You explained it well.
@effortlesscoding6108
@effortlesscoding6108 2 жыл бұрын
VERY INFORMATIVE AND EDUCATIONAL. SUBSCRIBED AND WAITING FOR MORE.
@laurendayan8494
@laurendayan8494 6 жыл бұрын
Why didn't you tab the About Us?
@cal9653
@cal9653 6 жыл бұрын
He just didn't realise he hadn't!
@iLoveTurtlesHaha
@iLoveTurtlesHaha 5 жыл бұрын
Tab is only for us humans to read code better. The browser doesn't care about this. Like the prev commenter stated, he could have simply missed this.
@prathish3169
@prathish3169 6 ай бұрын
Thank you bro im more confused while coming around div but your video Gave me clear and sharp understanding 👏👍
@NetNinja
@NetNinja 6 ай бұрын
Awesome, thanks Prathish!
@jacquelinewalker6357
@jacquelinewalker6357 2 жыл бұрын
so glad your not using fancy words. now i understand
@irvinargon
@irvinargon 7 жыл бұрын
Great vid
@phillipmakris7345
@phillipmakris7345 5 жыл бұрын
i still dont get divs. They dont effect the structure of the html, they dont style, you can just skip a few lines to show different sections of code.....so why do we need divs?????
@PilaPlanet
@PilaPlanet 5 жыл бұрын
Not sure if you know CSS but you can use DIV tags to style a certain portion of your website instead of your whole page. Let's say you have a paragraph on your home page that you want the text to be PURPLE. You will use a DIV with an ID tag to distinguish that specific paragraph without changing all other paragraphs you have. I hope that helps.
@williamparrish2436
@williamparrish2436 3 жыл бұрын
Divs are the most important tag that exist. They are odorless, colorless, nothing but form. But form and structure are all you need. Every other tag is like a div tag but restricted in some way. Divs are free of restriction. Anything you can do with a normal tag, you can do with a div (speaking about block elements, but also inline too). The question you really want to ask is, how do I use divs when building software UIs. And the answer is, since everything in the UI is made of squares. down to the pixel, and divs can be controlled down to the pixel, with divs you can control EVERYTHING you see in the UI. I think because of the history of HTML, CSS, and JS people get confused about the tools of HTML and why they are used. All those other tags that everyone shows you when you first start learning? Use those to build websites that display information. But do you want to create software and just happens to have a UI using HTML, CSS, and JS? Do you want to do full stack JS? Then use divs. That is the difference in the simplest way I can think to describe. All those old tags that everyone drags out and fills videos on are useful for writing and copy creation. But the web has CHANGED. It and the tech that created it can now be used to build software. And using divs, classes, event listeners, and DOM scripting is how that is done.
@fft2020
@fft2020 5 жыл бұрын
so... basically the DIV tag has absolutely no purpose except confuse everyone...
@mohamedfadaly7223
@mohamedfadaly7223 5 жыл бұрын
Seems it will be useful when including CSS, to avoid confusion of what a certain CSS belongs to, it's better to create groups inside an HTML hence the DIV tag, still learning through too.
@mouadouan
@mouadouan 5 жыл бұрын
u ll need divs when it comes to CSS. when u apply some style to a div it affects the whole block, so imagine having some blocks with different styles .. that actually add some structure ! there's also the Nav tags, check them too :)
@AprilFaith
@AprilFaith 6 жыл бұрын
thank you!!
@EmmainthePNW
@EmmainthePNW 6 жыл бұрын
Very helpful thank you
@mohamedahmed996
@mohamedahmed996 Жыл бұрын
Have been on the grind for 2 weeks now. I will update you guys periodically to update you on my journey.
@clueloss5373
@clueloss5373 5 жыл бұрын
very good, Im only 12 and starting out to code thank you alot!
@happyemoji6553
@happyemoji6553 5 жыл бұрын
only 12? are you sure? 12 year olds don't say "I'm only 12" because they don't think they're very young and they don't use comas or punctuation in general.
@happyemoji6553
@happyemoji6553 5 жыл бұрын
I'm only 29. How does that sound?
@clueloss5373
@clueloss5373 5 жыл бұрын
13 now
@clueloss5373
@clueloss5373 5 жыл бұрын
@@happyemoji6553 They do?
@happyemoji6553
@happyemoji6553 5 жыл бұрын
Not Matrix no they don’t
@huzaifamemon9956
@huzaifamemon9956 6 жыл бұрын
what will happen if i didn't give a tag
@felixwang9648
@felixwang9648 5 жыл бұрын
If you dont add a tag but add no css, it wont affect anything
@IbnAnwarAli
@IbnAnwarAli 4 жыл бұрын
From my practice declaring class and id without div tag worked and usable in css, for example when you declare the class in h1, it still functions as it does with div tag
@TheBearCoder
@TheBearCoder 2 жыл бұрын
Thank you for this amazing video :)
@michaelmiletich3326
@michaelmiletich3326 2 жыл бұрын
I needed this!!! Thank you!
@TeckbuildsInfotech
@TeckbuildsInfotech 3 ай бұрын
Thank you 🙏
@xcload-learningofficial9266
@xcload-learningofficial9266 3 жыл бұрын
I've been coding for about a day & I'm really trying to get average
@alinaciobotaru7030
@alinaciobotaru7030 2 жыл бұрын
Thank you! It was useful 👍
@gooo1762
@gooo1762 4 ай бұрын
Thanks!
@ivanyosifov2629
@ivanyosifov2629 5 жыл бұрын
Where is the HTML5 course? Can't seem to find it!
@juboraj365
@juboraj365 4 жыл бұрын
With respect please !
@davidallsopp4030
@davidallsopp4030 4 жыл бұрын
Excellent video!
@chansolkim3609
@chansolkim3609 3 жыл бұрын
Thx bro it's help me a lot 🙏🏻
@EMR80
@EMR80 5 жыл бұрын
Is there another reason to use div tags? I read somewhere, you can also use divs to position content as well. That was confusing to me because, I was wondering why is this div nested in side of another div? OMG! Did a Light bulb, just go off in my head? Or some brain cells grow back.
@EMR80
@EMR80 5 жыл бұрын
Can someone Clarify this to me? Layout is so hard for me to understand?
@griffinbastion
@griffinbastion 5 жыл бұрын
@@EMR80 within css you can manipulate the actual look of the website and if you give div an id it will automatically turn all content to that style
@richardbassey4916
@richardbassey4916 Жыл бұрын
I wish I knew that div just meant division. Now it seems a whole lot easier to read code cos I know
@theinternet999
@theinternet999 7 ай бұрын
reLearn html, see u (myself) again in 4 years.
@kristaa8745
@kristaa8745 5 жыл бұрын
thankyou
@matthewp9414
@matthewp9414 3 жыл бұрын
Thank you!
@vunderstudios
@vunderstudios 5 жыл бұрын
thanks
@hydrusyyen
@hydrusyyen 4 жыл бұрын
Please show results every changes sir.
@jerrybarr259
@jerrybarr259 3 жыл бұрын
Great video cheers
@fritzrojales
@fritzrojales Жыл бұрын
what app or website do you use to code?
@DamianSzajnowski
@DamianSzajnowski Жыл бұрын
Brackets, watch the playlist in order, he explains that.
@fritzrojales
@fritzrojales Жыл бұрын
@@DamianSzajnowski thanks
@stigmanmagros4952
@stigmanmagros4952 5 жыл бұрын
Where is this html5 course xd
@mariamzayed91
@mariamzayed91 5 жыл бұрын
💙💙💙
@cyclicwarrior2570
@cyclicwarrior2570 5 жыл бұрын
I will subscribe to the videos sure
@NetNinja
@NetNinja 5 жыл бұрын
Thanks!
@miikoa
@miikoa Жыл бұрын
very helpful. Thank you
@NetNinja
@NetNinja Жыл бұрын
Thanks Miiko, glad it was helpful!
@boblewis1287
@boblewis1287 2 жыл бұрын
TY
@aliaydemir7309
@aliaydemir7309 2 жыл бұрын
can someone explane i still dont understand
@PieterJacob
@PieterJacob Жыл бұрын
OCD started to kick in at line 47…
@valencefootball9740
@valencefootball9740 3 жыл бұрын
BRACKETS?!
@odam2975
@odam2975 4 жыл бұрын
#thx
@vipergun1383
@vipergun1383 4 жыл бұрын
thats not a good way if u dont show example
@dygcchjghcugfh662
@dygcchjghcugfh662 2 жыл бұрын
I'm sorry for watching this the intro scary movie
@markton2192
@markton2192 3 жыл бұрын
What the h my name is div
@goldie12577
@goldie12577 3 жыл бұрын
Great but no output
@netskater4454
@netskater4454 3 жыл бұрын
Output not needed because nothing has changed. Div is used to organized the code so later on, you can choose to style/edit it with CSS.
@someless
@someless 2 ай бұрын
This man, shouldn't be a teacher😢😢
@gajularakesh7576
@gajularakesh7576 3 жыл бұрын
nothing......
@s.padhmapriya_8thwonder_153
@s.padhmapriya_8thwonder_153 3 жыл бұрын
lots of doubt uncleard, atleast u have to show the output(waste of making this video).please learn to make output mr.youtuber
@oldguy8177able
@oldguy8177able 5 жыл бұрын
rubbish
@iLoveTurtlesHaha
@iLoveTurtlesHaha 5 жыл бұрын
Your feedback is not very helpful as it gives no basis on what you find wrong. As a person getting into development, you need to be more intelligent than this or you will fail in this industry. No one is able to help you when you cannot form a coherent sentence to express your ideas.
@Dailydoseofreddit.
@Dailydoseofreddit. 4 жыл бұрын
really? try it making a tutorial and please let me see how good it is by sending it to arav.narula08@gmail.com
@marcelo25758
@marcelo25758 2 жыл бұрын
Thank you!
HTML Tutorial for Beginners 14 - ID's and Classes
8:14
Net Ninja
Рет қаралды 81 М.
Why & When to Use Semantic HTML Elements over Divs
12:01
ByteGrad
Рет қаралды 80 М.
I Built a Shelter House For myself and Сat🐱📦🏠
00:35
TooTool
Рет қаралды 31 МЛН
Please be kind🙏
00:34
ISSEI / いっせい
Рет қаралды 32 МЛН
Introducing Divs and controlling them with classes and ids
15:19
Learn HTML in 1 hour 🌎
1:00:00
Bro Code
Рет қаралды 1,8 МЛН
Wordpress vs coding - why devs SHOULD learn Wordpress
11:03
SuperSimpleDev
Рет қаралды 278 М.
What is a DIV?  |  HTML Basics #1
3:57
Jacob Broughton
Рет қаралды 21 М.
Learn Flexbox CSS in 8 minutes
8:16
Slaying The Dragon
Рет қаралды 1,4 МЛН
HTML Tutorial for Beginners: HTML Crash Course
1:09:34
Programming with Mosh
Рет қаралды 8 МЛН
Learn CSS Position In 9 Minutes
9:26
Web Dev Simplified
Рет қаралды 1,9 МЛН
I Built a Shelter House For myself and Сat🐱📦🏠
00:35
TooTool
Рет қаралды 31 МЛН