(Mastodon && unknown)

  • the_tech_beast@lemmy.ml
    link
    fedilink
    arrow-up
    5
    ·
    3 years ago

    I tried to learn CSS and I got confused. Like I couldn’t understand the difference between div id and div class.

    I dropped learning CSS😂😂 This makes me think - Am I that stupid?

    • seahorse@lemmy.ml
      link
      fedilink
      arrow-up
      7
      ·
      3 years ago

      Someone correct me if I’m wrong, but id should be used for a unique element that doesn’t exist anywhere else on the page whereas class is common among more than one element on the page.

    • soronixa@lemmy.ml
      link
      fedilink
      arrow-up
      3
      ·
      3 years ago

      you’re not missing on anything, CSS and JS are bloat anyway, embrace pure html, it looks a lot better!

      /s