Hema Posted June 8, 2021 Posted June 8, 2021 why doesn't the <option> element has an end tag when it's added between the <datalist> element
dsonesuk Posted June 8, 2021 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
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