Why & When to Use Semantic HTML Elements over Divs

แชร์
ฝัง
  • เผยแพร่เมื่อ 26 ส.ค. 2024
  • 👉 NEW React & Next.js Course: bytegrad.com/c...
    Hi, I'm Wesley. I'm a brand ambassador for Kinde (paid sponsorship).
    👉 Add auth to your app FAST: bit.ly/3QOe1Bh
    👉 NEW React & Next.js Course: bytegrad.com/c...
    👉 Professional JavaScript Course: bytegrad.com/c...
    👉 Professional CSS Course: bytegrad.com/c...
    👉 Discord: all my courses have a private Discord where I actively participate
    🔔 Email newsletter (BIG update soon): email.bytegrad...
    0:00 Solution
    #webdevelopment #coding #programming

ความคิดเห็น • 60

  • @mikeandrewfernandez9797
    @mikeandrewfernandez9797 ปีที่แล้ว +35

    I was confused by the difference between article and sections until I found this video. Awesome content! 👍

  • @itsjiraheta
    @itsjiraheta 10 หลายเดือนก่อน +16

    I have worked in soft dev (mainly in mobile) for over a decade. I used to work a long, long, loooonggg time ago on websites. They have gotten more complex, to say the least, and are in their own category nowadays with so many things to consider. Thank you for the explanation and the level of detail. Def got me as a sub! keep up the great work.

  • @1015AK
    @1015AK ปีที่แล้ว +13

    I use sections to create sections of content on the page and then if I need to divide up the section for styling I use a div for that

  • @joaovitorschmidt6194
    @joaovitorschmidt6194 ปีที่แล้ว +7

    your way of teaching is very good, english isn't my first language, I understand like 70% of the words and still understand you, even with reaaaaly basic knowledge of programming. Thank you so much for your content, keep it up.

  • @SL4UGHT3R
    @SL4UGHT3R หลายเดือนก่อน +1

    One of the greatest video that explain semantic tags in depth and briefly at the same time.

  • @MichalRutz
    @MichalRutz ปีที่แล้ว +11

    A very clear and professional introduction. thanks!

  • @kauheaa
    @kauheaa 6 หลายเดือนก่อน +1

    Had been reading about web accessibility and sematic tags all day and was looking for an explanation on the distinction between section and article, this provided answer to that and some other questions as well. Thank you!

  • @alialrahem9817
    @alialrahem9817 3 หลายเดือนก่อน +1

    I did study this material on focus on SoloLearn and really clear to know the structure here you explain in detail thank you for posting this video very clear and consistent

  • @ISoHEoBASSIST
    @ISoHEoBASSIST 4 หลายเดือนก่อน +8

    "I'm under the impression that semantic HTML is one of those things that everybody sells as a super important good practice, but nobody really ever ends up using. Am I wrong?

    • @onlytrends2916
      @onlytrends2916 2 หลายเดือนก่อน +1

      You are actually right, my brother is a developer and in his company everyone uses only div thats all

    • @ISoHEoBASSIST
      @ISoHEoBASSIST 2 หลายเดือนก่อน

      @@onlytrends2916 thanks for the piece of knowledge!

    • @user-gu2ep9hu9d
      @user-gu2ep9hu9d หลายเดือนก่อน +1

      Segmentic base on my understanding was not always available untill html5 I guess

  • @RichReflectionz
    @RichReflectionz 11 หลายเดือนก่อน +2

    I was confused about sections and articles till you explained it, thanks

  • @lavendercode
    @lavendercode ปีที่แล้ว +5

    Thank you! This explanation and examples helped me understand the tags. Well done!

  • @whoozie
    @whoozie 5 หลายเดือนก่อน +2

    thanks for the overall explanation with the examples, this was what I wanted!!!

  • @evanmico
    @evanmico 8 หลายเดือนก่อน +4

    1:36 From what I understand, a element isn't for "the most important links on a page", but rather it just specifies a grouping of links on the page. It is NOT uncommon to have them in the footer. The important thing is that *if you have multiple elements you need to label them.* This is done using an attribute called aria-label="" or aria-labelledby="" with an h tag child containing an id set equal to the value in aria-labelledby="". Dave Gray did a nice explanation of this particular topic here: th-cam.com/video/kX3TfdUqpuU/w-d-xo.htmlsi=nqgp6qUcEy9_5bkq&t=450

  • @gfred3234
    @gfred3234 4 หลายเดือนก่อน +1

    I like to use div in my sections as nested... because I separate contents inside the section and better to toggle for styling

  • @savvyonchain
    @savvyonchain 9 หลายเดือนก่อน +1

    I think we can still use a nav element in the footer section. We just have to use an arial-label to specify what section they belong to.

  • @igu642
    @igu642 10 หลายเดือนก่อน +1

    i thought html is easy but when i trying to do project in my own then i finded what the heck how to use this things i thought nuh developing is not for me but when i watch your video i am happy now

  • @Bablu078-0
    @Bablu078-0 ปีที่แล้ว

    I am from India love you from heart ❤️
    Really your example and explanation are very actually very good
    From hear ❤️

  • @DarkD33p
    @DarkD33p 7 หลายเดือนก่อน

    Finally a clear explanation on the subject. Thank you very much.

  • @Wood-Whispers-shorts
    @Wood-Whispers-shorts หลายเดือนก่อน +1

    `15 minutes ago I was not be able to use them in the right place now I can use them in the right place I really want to say thanks from the bottom of my heart 😊

  • @amandamcberth3160
    @amandamcberth3160 3 หลายเดือนก่อน +1

    That was a good explanation of html

  • @Globalview308
    @Globalview308 2 หลายเดือนก่อน

    Now I understand what it's meant and how to apply... Thanks

  • @WimpLo123
    @WimpLo123 27 วันที่ผ่านมา

    Div stands for division, not divider. 😊 1:05

  • @djt6fan
    @djt6fan ปีที่แล้ว +8

    Appreciate the effort. Any idea when you will be releasing the web design course, or the React course? I'd be interested in those.

    • @ByteGrad
      @ByteGrad  ปีที่แล้ว +1

      React course will be published next month, definitely make sure to be subscribed to the email newsletter 😉

  • @humphrey4930
    @humphrey4930 7 หลายเดือนก่อน +1

    Thank you, I understand it a bit better. Nice Content

  • @RaghadJohani
    @RaghadJohani 9 หลายเดือนก่อน +1

    I love this kind of videos, insightful, and fun to watch. Thanks.

  • @heavenlyhighlights-em4cl
    @heavenlyhighlights-em4cl 8 หลายเดือนก่อน +1

    Great Explanation . Earned a Subscriber..

  • @shinjiikari4629
    @shinjiikari4629 2 หลายเดือนก่อน +1

    I feel dumb for not knowing or ever figured out by myself that div was short for divider

  • @vanezamanlangit7989
    @vanezamanlangit7989 ปีที่แล้ว +2

    Thank you! You're very helpful.

  • @Alyosha922
    @Alyosha922 2 หลายเดือนก่อน +1

    thanks bro

  • @sehitgoker5073
    @sehitgoker5073 ปีที่แล้ว +1

    good stuff mate, was clear and helpfull.

  • @chemaalonso7931
    @chemaalonso7931 5 หลายเดือนก่อน

    I ALWAYS use article and inside sections I tjink is more semantic surround a whole article and divide the article in sections because you can have for example an article about cats and inside sections like food, sex, ages, dead, etc.. that has no sense if you pu it out of the article but if you put put the whole article has meaning, and i use header even in a section and articles i use footer too inside articles and even aside and navs if i got some links inside that article in the aside, you can mix it elements and it is good

  • @tataruovidiu9305
    @tataruovidiu9305 3 หลายเดือนก่อน +1

    thanks!

  • @TsTheSeason
    @TsTheSeason 7 หลายเดือนก่อน +1

    Hey thanks so much for the great content!

  • @lauraudechukwu2899
    @lauraudechukwu2899 ปีที่แล้ว +1

    this is really helpful and easy to understand. I have a question though, what are screen readears/accessibility mean?

    • @CristopherAreche
      @CristopherAreche ปีที่แล้ว +4

      Screen readers are a feature that some phones and computers use to read and help blind people.

  • @tambeegbeayuk1836
    @tambeegbeayuk1836 4 หลายเดือนก่อน +1

    This Is the best video ever🎉🎉

  • @mks-h
    @mks-h ปีที่แล้ว +2

    Good video, thanks

  • @arafathossain3778
    @arafathossain3778 ปีที่แล้ว +2

    Very helpful

  • @kakyoin4535
    @kakyoin4535 ปีที่แล้ว +3

    thank you!

  • @ahmedghallab5342
    @ahmedghallab5342 18 วันที่ผ่านมา

    شكرا Thanks

  • @RoboticsDevelopment
    @RoboticsDevelopment 11 หลายเดือนก่อน +2

    Subscribed!

  • @BK-iu6ow
    @BK-iu6ow ปีที่แล้ว

    What’s the best way to set up html in the head and body, that will make it mobile friendly or screen friendly where if screen is bigger it still comes out the same

    • @hetoverseo3887
      @hetoverseo3887 ปีที่แล้ว

      Use min(), max(), create a style for mobile first then add media queries with min-width to style content when the screen gets bigger.

  • @sadam_khan
    @sadam_khan 16 วันที่ผ่านมา

    04:00 it is raining here as well.
    22:28 August 10, 2024

  • @user-om2zq2je9w
    @user-om2zq2je9w 6 หลายเดือนก่อน +1

    большое спасибо мне очень понравился данный урок а вам, не так ли?

  • @AlThePal78
    @AlThePal78 9 หลายเดือนก่อน

    why did stripe put the stuff in a div that is confusing though

  • @SoulSovereignty
    @SoulSovereignty ปีที่แล้ว

    My #1 interest is knowing how to quickly create my own site "template" for a small Svelte or React project. For the former (Svelte) perhaps that means using Pico CSS and...flexbox for layout? For the latter (React)...I'm not sure (Tailwind is generally for larger projects, and is flexbox sufficient, or bootstrap overkill?). Do you have either videos or coursework that cover this "mastery of making a site template/layout"? I suppose just a video/course that shows how easily(?) flexbox replaces bootstrap layout? As for styling, I'm not excited about a CSS deep-dive because...as stated...I only have small projects and I don't want to take a ton of time to learn all the intricacies of CSS if something like Pico CSS will suffice.

    • @ByteGrad
      @ByteGrad  ปีที่แล้ว

      Hi, I highly recommend you check out my CSS-course. Flexbox is king but you need to know CSS grid too, everything else is just an abstraction built on top of plain CSS (easy to learn once you’ve mastered CSS itself)

  • @user-rq2ek3he9w
    @user-rq2ek3he9w 5 หลายเดือนก่อน +1

    good stuff

  • @epicturnip
    @epicturnip ปีที่แล้ว

    What theme is this?

  • @edgarspujats8282
    @edgarspujats8282 ปีที่แล้ว

    I really likes the video but shouldn't section include atleast one heading?

  • @mobilejo1
    @mobilejo1 7 หลายเดือนก่อน

    you de esser is working hard asf

  • @DOODOOMAN118
    @DOODOOMAN118 5 หลายเดือนก่อน +3

    To be honest, this shit right here is why I wanted to quit lol. I got so frustrated

  • @toastedclosure2770
    @toastedclosure2770 ปีที่แล้ว

    u forgot to mention details, dialog, summary and data

  • @lucialuciferion6720
    @lucialuciferion6720 6 หลายเดือนก่อน +1

    I hear a Dutch accent :)

  • @You_n_mee
    @You_n_mee 6 หลายเดือนก่อน

    what is that sound in the background? so annoying