@@ -140,13 +140,16 @@ export default class AddStudent extends Component {
140140 < hr />
141141 < div className = "row py-3" >
142142 < div className = "col" >
143- < input type = "text" ref = { this . firstNameEl } className = "form-control form-control-sm" placeholder = "First name" required />
143+ < label htmlFor = "FirstName" > First Name</ label >
144+ < input type = "text" ref = { this . firstNameEl } id = "FirstName" className = "form-control form-control-sm" placeholder = "First name" required />
144145 </ div >
145146 < div className = "col" >
146- < input type = "text" ref = { this . middleNameEl } className = "form-control form-control-sm" placeholder = "Middle name" />
147+ < label htmlFor = "MiddleName" > Middle Name</ label >
148+ < input type = "text" ref = { this . middleNameEl } id = "MiddleName" className = "form-control form-control-sm" placeholder = "Middle name" />
147149 </ div >
148150 < div className = "col" >
149- < input type = "text" ref = { this . lastNameEl } className = "form-control form-control-sm" placeholder = "Last name" required />
151+ < label htmlFor = "LastName" > Last Name</ label >
152+ < input type = "text" ref = { this . lastNameEl } id = 'LastName' className = "form-control form-control-sm" placeholder = "Last name" required />
150153 </ div >
151154 </ div >
152155 < div className = "row" >
@@ -166,9 +169,7 @@ export default class AddStudent extends Component {
166169 </ div >
167170 </ div >
168171 </ div >
169-
170172 </ div >
171-
172173 < hr />
173174 < div className = "row" >
174175 < div className = "form-group col" >
@@ -206,18 +207,18 @@ export default class AddStudent extends Component {
206207 < label htmlFor = "InputSchool" > School</ label >
207208 < input type = "text" ref = { this . schoolEl } className = "form-control form-control-sm" id = "InputSchool" placeholder = "School" required />
208209 < hr />
209- < div >
210- < h5 > Last Year Marks / Grades</ h5 >
211- </ div >
212210 < div className = "form-group row" >
213211 < div className = "col-md-4" >
214- < input type = "text" className = "form-control form-control-sm" ref = { this . physicsEl } id = "InputPhysics" placeholder = "Physics" required />
212+ < label htmlFor = "Physics" > Physics</ label >
213+ < input type = "text" className = "form-control form-control-sm" id = 'Physics' ref = { this . physicsEl } id = "InputPhysics" placeholder = "Physics" required />
215214 </ div >
216215 < div className = "col-md-4" >
217- < input type = "text" className = "form-control form-control-sm" ref = { this . englishEl } id = "InputEnglish" placeholder = "English" required />
216+ < label htmlFor = "English" > English</ label >
217+ < input type = "text" className = "form-control form-control-sm" id = 'English' ref = { this . englishEl } id = "InputEnglish" placeholder = "English" required />
218218 </ div >
219219 < div className = "col-md-4" >
220- < input type = "text" className = "form-control form-control-sm" ref = { this . mathsEl } id = "InputMaths" placeholder = "Maths" required />
220+ < label htmlFor = "Maths" > Maths</ label >
221+ < input type = "text" className = "form-control form-control-sm" id = 'Maths' ref = { this . mathsEl } id = "InputMaths" placeholder = "Maths" required />
221222 </ div >
222223 </ div >
223224 < hr />
0 commit comments