<!doctype html>
<html lang="ko">
<head>
<meta charset="utf-8">
<title>HTML</title>
</head>
<body>
<p>
<label for="jb-input-text">Input - Text</label>
<input type="text" id="jb-input-text">
</p>
<p>
<label for="jb-input-checkbox">Input - Checkbox</label>
<input type="checkbox" id="jb-input-checkbox">
</p>
</body>
</html>
input 등 양식을 label로 감싸면, id와 for가 없이도 같은 결과를 얻을 수 있습니다.
<!doctype html>
<html lang="ko">
<head>
<meta charset="utf-8">
<title>HTML</title>
</head>
<body>
<p>
<label>Input - Text
<input type="text">
</label>
</p>
<p>
<label>Input - Checkbox
<input type="checkbox">
</label>
</p>
</body>
</html>