HTML 양식이 있습니다. 필드의 일부는 과감하게 표시해야합니다. 원칙적으로 이것이 HTML이 아닌 CSS에 들어가야합니까? 어떻게 할 건데?굵은 글씨로 필수 입력란 표시
input:required{
font-weight:bold;
}
물론이 : 내 머리 위로의
<form action="doit" id="doit" method="post">
<label>
Name
<input id="name" name="name" type="text" />
</label>
<label>
Phone number
<input id="phone" name="phone" type="text" />
</label>
<label>
Year
<input id="year" name="year" type="text" />
</label>
</form>
완벽한 HTML5가 아닌 답변, CSS 기반 답변. +1 – Singular1ty