How should boolean attributes be written? [duplicate]
问题 This question already has answers here : What values can appear in the “selected” attribute of the “option” tag? (8 answers) Closed 5 years ago . I've been reading some articles about HTML, XHTML, etc. In most of them (i.e. My preferred syntax style) say that boolean attributes should be written without any value, like this: <input type="text" required> They even say that it is wrong to use this attributes like this: <input type="text" required="required"> Some of this articles link W3 which