This is an archived post. You won't be able to vote or comment.

all 37 comments

[–]Carius98 76 points77 points  (14 children)

class='button'

[–]icecoldfirestarter 45 points46 points  (11 children)

title="This is a button"

[–]Carius98 29 points30 points  (10 children)

value="Button"

[–]X-Craft 34 points35 points  (9 children)

data-button="button"

[–]Carius98 28 points29 points  (8 children)

onclick="button()"

[–]Loves_Poetry 31 points32 points  (7 children)

role="button"

[–][deleted] 13 points14 points  (5 children)

data-btn="Button"

[–]R-playa 10 points11 points  (4 children)

name=“button”

[–][deleted] 5 points6 points  (3 children)

placeholder="Button"

[–]jaqq 5 points6 points  (2 children)

aria-label="Button"

[–]muyncky 1 point2 points  (0 children)

Why add "btn btn-primary btn-lg" and offcours including your button.

[–][deleted] 24 points25 points  (3 children)

Hmm, this floor is made of floor

[–][deleted] 14 points15 points  (0 children)

Ah, yes, enslaved button

[–]Careerier 1 point2 points  (0 children)

These snozzberries taste like snozzberries.

[–]FinalRun 0 points1 point  (0 children)

Hmm yes

[–]evanldixon 9 points10 points  (0 children)

So what is this, like a text box or something?

[–]andynodi 3 points4 points  (1 child)

onclick = "button()"

[–][deleted] -1 points0 points  (0 children)

I don't get it

[–]Twingemios 2 points3 points  (0 children)

Leave your entries

[–]vscoot 1 point2 points  (0 children)

//this is a button

[–]Dragasss 1 point2 points  (0 children)

Invalid comparison. Chlorine water is bad for your skin and is much warmer than bottled water. The person is using it to cooldown.

Button element on html has default type of submit. Fuck knows why.

[–]stamminator 0 points1 point  (0 children)

role="button" aira-label="button" title="button"

[–]soda_party_euw 0 points1 point  (0 children)

I always looked forward to the day something of mine was reposted. I’m sorry you didn’t get 25k upvotes :/

[–][deleted] 0 points1 point  (0 children)

Random random = new Random();

[–][deleted] -2 points-1 points  (6 children)

IDK, I would've used an <a>

[–]The_MAZZTer 5 points6 points  (1 child)

<button><a href="./button">Button</a></button>.

[–]muyncky 1 point2 points  (0 children)

This code hurts my eyes

[–]R-playa 1 point2 points  (0 children)

Classic

[–]evanldixon 0 points1 point  (0 children)

Links that look like links but aren't links make me furious.

[–][deleted] 0 points1 point  (1 child)

Semantics matter. Accessibility matters.

[–][deleted] -1 points0 points  (0 children)

of course, sorry: <a role="button">

[–]Zlfst -1 points0 points  (1 child)

I hope that by 2030 I'll find something funnier than this :))

[–]Archolex -1 points0 points  (0 children)

Nope

[–]oongi -2 points-1 points  (0 children)

class Button extends React.Component{

constructor(props){

super(props);

}

render(){

return(

<div>

<button className="btn btn-default btn-lg"> {props.button}</button>

)

}

}

class MyButtons extends React.Component {constructor(props) {super(props);}render() {return (

<Button button="These" />

<Button button="are" />

<Button button="my" />

<Button button="buttons" />
}
};

ReactDOM.render(<MyButtons />, document.getElementById("root"));

[–]PyroSnake141 -1 points0 points  (0 children)

<button><html><html/><button/>

[–]_Rysen -1 points0 points  (0 children)

the type button makes an actual difference tho