Slevin.Horse
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
Gollum@feddit.org to Programmer Humor@programming.dev · 9 days ago

Me waiting for the AI to close the tag for me

feddit.org

message-square
22
link
fedilink
35

Me waiting for the AI to close the tag for me

feddit.org

Gollum@feddit.org to Programmer Humor@programming.dev · 9 days ago
message-square
22
link
fedilink
  • marcos@lemmy.world
    link
    fedilink
    arrow-up
    0
    arrow-down
    1
    ·
    9 days ago

    Why do you have a class that says “button”?

    • notarobot@lemmy.zip
      link
      fedilink
      arrow-up
      1
      ·
      8 days ago

      Because it’s a meme. Not prod code

    • SatyrSack@lemmy.sdf.org
      link
      fedilink
      arrow-up
      1
      ·
      9 days ago

      That is an example of a basic Bootstrap button

      https://getbootstrap.com/docs/4.0/components/buttons/

    • Eager Eagle@lemmy.world
      link
      fedilink
      English
      arrow-up
      1
      ·
      9 days ago

      for styling, probably

      • marcos@lemmy.world
        link
        fedilink
        arrow-up
        0
        arrow-down
        1
        ·
        9 days ago

        There’s nothing stopping you from styling buttons.

        • passepartout@feddit.org
          link
          fedilink
          arrow-up
          1
          ·
          9 days ago

          Yes, but element selectors based on the tag name alone are considered bad practise. Especially in bigger HTML sites. Even more so if you use a JS library / framework or some broad browser stylesheet underneath, or you use the same stylesheet in several places.

          Also, a div or img tag can be a button with its own event listener as well. That may be asking for trouble as well, but I’ve been there (not proud of it).

Programmer Humor@programming.dev

programmer_humor@programming.dev

Subscribe from Remote Instance

Create a post
You are not logged in. However you can subscribe from another Fediverse account, for example Lemmy or Mastodon. To do this, paste the following into the search field of your instance: !programmer_humor@programming.dev

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

  • Keep content in english
  • No advertisements
  • Posts must be related to programming or programmer topics
Visibility: Public
globe

This community can be federated to other instances and be posted/commented in by their users.

  • 1.64K users / day
  • 5.05K users / week
  • 5.32K users / month
  • 5.34K users / 6 months
  • 1 local subscriber
  • 26.8K subscribers
  • 134 Posts
  • 1.8K Comments
  • Modlog
  • mods:
  • adr1an@programming.dev
  • Feyter@programming.dev
  • BurningTurtle@programming.dev
  • Pierre-Yves Lapersonne@programming.dev
  • BE: 0.19.13
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org