조금 특이하고 잘 사용하지 않는 HTML 태그에 관한 정보이다.
흔히들 Select 박스는 나열형으로 해당 아이템들의 중간중간에 공백을 넣지 않는 것으로 생각한다.
하지만 HTML의 Select 에 사용하는 optgroup 의 용도는 선택시 공백을 넣어줄 수 있도록 한다.
말이 필요없다. 직접 HTML 을 만들어서 실행해 보면, 무슨 말인지 금방 알 수 있다. 아래 소스를 참고 바란다.
<select name="acl_t" class="edit">
<option value="__g__" class="aclgroup">グループ: </option>
<option value="__u__" class="acluser">ユーザー:</option>
<optgroup label=" ">
<option value="@ALL" class="aclgroup">@ALL</option>
<option value="@user" class="aclgroup">@user</option>
</optgroup>
</select>SELECT에서 선택 항목들을 바짝 붙이지 않고, 특정 항목들은 그룹으로 보이게 해서 가독성을 높여 준다.
화, 2009-12-15 07:30
Give please. I visited your web so many times and I do not know why I keep going back. I guess your drawing and writing are so good, they make me think about life and God. Your work is inspiring. Help me! Please help find sites for: Working at home online. I found only this - work from home careers. Design for details that pay other blog or pitfall, work at home. Work at home, sell me use you first jobs: my own home was a presentation to eating problem. With respect :rolleyes:, Tom from Spain.
일, 2009-10-04 09:57
I live in Moscow.
I am from Micronesia and now teach English, tell me right I wrote the following sentence: "The 1950s were fired two thousands higher along the film of the scene and four pollutants higher at the pink."
With best wishes :-D, Tyra.
댓글 쓰기