Asked 2 years ago
20 May 2022
Views 953
jqueryLearner

jqueryLearner posted

html validator Errror : Element option without attribute label must not be empty.

i get the following error for the w3c validator test :


Error: Element option without attribute label must not be empty.
From line 749, column 142; to line 749, column 150
lt="en" /></option>?     


how to solve this problem with html tag?
andy

andy
answered May 20 '22 00:00

put some text in between <option></option> or you can put &nbsp; in between <option></option>

<option>[other html tag]&nbsp;</option>

other html tage not define as text so it showing error : Element option without attribute label must not be empty.
Post Answer