Why & When to Use Semantic HTML Elements over Divs

Sdílet
Vložit
  • čas přidán 16. 12. 2022
  • 👉 NEW React & Next.js Course: bytegrad.com/courses/professi...
    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/courses/professi...
    👉 Professional JavaScript Course: bytegrad.com/courses/professi...
    👉 Professional CSS Course: bytegrad.com/courses/professi...
    👉 Discord: all my courses have a private Discord where I actively participate
    🔔 Email newsletter (BIG update soon): email.bytegrad.com
    0:00 Solution
    #webdevelopment #coding #programming
  • Věda a technologie

Komentáře • 53

  • @mikeandrewfernandez9797
    @mikeandrewfernandez9797 Před rokem +30

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

  • @itsjiraheta
    @itsjiraheta Před 7 měsíci +15

    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.

  • @MichalRutz
    @MichalRutz Před rokem +11

    A very clear and professional introduction. thanks!

  • @joaovitorschmidt6194
    @joaovitorschmidt6194 Před 9 měsíci +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.

  • @throbicon
    @throbicon Před 10 měsíci +4

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

  • @kauheaa
    @kauheaa Před 4 měsíci +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!

  • @RaghadJohani
    @RaghadJohani Před 7 měsíci +1

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

  • @whoozie
    @whoozie Před 2 měsíci +2

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

  • @RichReflectionz
    @RichReflectionz Před 8 měsíci +2

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

  • @DarkD33p
    @DarkD33p Před 4 měsíci

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

  • @alialrahem9817
    @alialrahem9817 Před 25 dny +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

  • @sehitgoker5073
    @sehitgoker5073 Před 10 měsíci +1

    good stuff mate, was clear and helpfull.

  • @1015AK
    @1015AK Před 10 měsíci +9

    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

  • @vanezamanlangit7989
    @vanezamanlangit7989 Před rokem +2

    Thank you! You're very helpful.

  • @zahid9652
    @zahid9652 Před 9 měsíci

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

  • @evanmico
    @evanmico Před 5 měsíci +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: czcams.com/video/kX3TfdUqpuU/video.htmlsi=nqgp6qUcEy9_5bkq&t=450

  • @heavenlyhighlights-em4cl
    @heavenlyhighlights-em4cl Před 5 měsíci +1

    Great Explanation . Earned a Subscriber..

  • @humphrey4930
    @humphrey4930 Před 4 měsíci +1

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

  • @mks-h
    @mks-h Před rokem +2

    Good video, thanks

  • @TsTheSeason
    @TsTheSeason Před 4 měsíci +1

    Hey thanks so much for the great content!

  • @arafathossain3778
    @arafathossain3778 Před rokem +2

    Very helpful

  • @kakyoin4535
    @kakyoin4535 Před rokem +3

    thank you!

  • @savvyonchain
    @savvyonchain Před 6 měsíci +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.

  • @djt6fan
    @djt6fan Před rokem +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  Před rokem +1

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

  • @ahmedajah7808
    @ahmedajah7808 Před 2 dny

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

  • @gfred3234
    @gfred3234 Před měsícem +1

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

  • @igu642
    @igu642 Před 8 měsíci +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

  • @RoboticsDevelopment
    @RoboticsDevelopment Před 8 měsíci +2

    Subscribed!

  • @tambeegbeayuk1836
    @tambeegbeayuk1836 Před 2 měsíci +1

    This Is the best video ever🎉🎉

  • @amandamcberth3160
    @amandamcberth3160 Před 13 dny +1

    That was a good explanation of html

  • @lauraudechukwu2899
    @lauraudechukwu2899 Před 11 měsíci +1

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

    • @cristopherguillen4435
      @cristopherguillen4435 Před 10 měsíci +4

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

  • @Alyosha922
    @Alyosha922 Před 8 dny +1

    thanks bro

  • @user-rq2ek3he9w
    @user-rq2ek3he9w Před 3 měsíci +1

    good stuff

  • @tataruovidiu9305
    @tataruovidiu9305 Před 28 dny +1

    thanks!

  • @SoulSovereignty
    @SoulSovereignty Před rokem

    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  Před rokem

      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)

  • @ISoHEoBASSIST
    @ISoHEoBASSIST Před měsícem +4

    "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 Před 9 dny +1

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

    • @ISoHEoBASSIST
      @ISoHEoBASSIST Před 9 dny

      @@onlytrends2916 thanks for the piece of knowledge!

  • @epicturnip
    @epicturnip Před 11 měsíci

    What theme is this?

  • @BK-iu6ow
    @BK-iu6ow Před 10 měsíci

    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 Před 9 měsíci

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

  • @chemaalonso7931
    @chemaalonso7931 Před 2 měsíci

    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

  • @mobilejo1
    @mobilejo1 Před 4 měsíci

    you de esser is working hard asf

  • @AlThePal78
    @AlThePal78 Před 6 měsíci

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

  • @edgarspujats8282
    @edgarspujats8282 Před 11 měsíci

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

  • @user-om2zq2je9w
    @user-om2zq2je9w Před 4 měsíci +1

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

  • @lucialuciferion6720
    @lucialuciferion6720 Před 3 měsíci +1

    I hear a Dutch accent :)

  • @toastedclosure2770
    @toastedclosure2770 Před 9 měsíci

    u forgot to mention details, dialog, summary and data

  • @AdmiralFatcock
    @AdmiralFatcock Před 3 měsíci +3

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

  • @You_n_mee
    @You_n_mee Před 3 měsíci

    what is that sound in the background? so annoying