김버그님 HTML&CSS 강의를 듣다 생긴 질문과 이에 대한 김버그님의 답변을 정리해보았다!
나는 span 태그를 텍스트의 일부분을 그룹핑할 때만 사용하였는데, 김버그님은 짧은 텍스트를 p태그가 아닌 span 태그를 사용하셔서 이유에 대한 질문을 남겼다!
<td>
<div class="inbox-actions">
<div class="inbox-checkbox">
<input type="checkbox" id="inbox-1">
<label for="inbox-1" class="sr-only">Select this email</label>
</div>
<button type="button" class="inbox-star">
<span class="sr-only">Add to favorites</span>
</button>
</div>
</td>
위 코드에서 td에 직접 class를 추가하지 않고 div로 다시 묶어준 이유가 궁금했다!