Hema Posted June 8, 2021 Share Posted June 8, 2021 why doesn't the <option> element has an end tag when it's added between the <datalist> element Link to comment Share on other sites More sharing options...
dsonesuk Posted June 8, 2021 Share Posted June 8, 2021 https://developer.mozilla.org/en-US/docs/Web/HTML/Element/option Tag omission The start tag is mandatory. The end tag is optional if this element is immediately followed by another <option> element or an <optgroup>, or if the parent element has no more content. 1 Link to comment Share on other sites More sharing options...
Hema Posted June 9, 2021 Author Share Posted June 9, 2021 thank you so much🙏 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now