boolean하면 conditional statement에서 true나 false 따지는거 아니야?
Boolean attributes
밑에는 그런 내용이 아니네. 전혀 관련 없는 내용이라 머리에 안들어오는데.. 도와주라.
Boolean attributes
You'll sometimes see attributes written without values — this is perfectly allowed. These are called boolean attributes, and they can only have one value, which is generally the same as the attribute name. As an example, take the disabled attribute, which you can assign to form input elements if you want them to be disabled (greyed out) so the user can't enter any data in them.
--------------------------
As shorthand, it is perfectly allowable to write this as follows (we've also included a non-disabled form input element for reference, to give you more of an idea what is going on):
--------------------------
Both will give you an output as follows:
----------------------------------
disabled 속성같이 특수한 속성은 존재 자체만으로 영향을 미친다는거 같은데
굳이 속성의 값을 넣을 필요가 없이
그거랑 boolean이랑 무슨 연관이 있는거?
굳이 boolean으로 생각하자면, 태그에 속성이 존재하면 true, 속성이 없으면 false 라고 생각하라는거 같음
boolean은 true false 맞고 html에서 불 속성이란 속성을 명시적으로 적어줄수 있지만 없을경우 disabled 로 표기된다 이정도로 정리된다 니는 불이라는 개념을 알고있는데 html에서는 불 속성을 저렇게 정의했다 이말인데 그냥 그렇구나해라
그냥 그렇구나!
ㄳ