Jump to content

Option tag specs wrong at W3Schools


esaumur

Recommended Posts

On the page, http://www.w3schools.com/tags/tag_option.asp, there is an error;Under 'Differences Between HTML and XHTML' it says; In HTML the <option> tag has no end tag. In XHTML the <option> tag must be properly closed.But in the example it shows that the option tag has both an end tag and content. I believe the correct content for the 'Differences Between HTML and XHTML' on this page is '[NONE]'.Where do I need to send this message in order to get that changed?Cheers,Eric

Link to comment
Share on other sites

HTML does not require a </option> but allows you to put if you want, but XHTML requires the </option>This isn't an error.
You are of course completely correct. :) I checked and the following code does validate;<select id="s"> <option /> <option /> <option /></select>Crazy but valid.Sorry for the incorrect complaint.Cheers,Eric
Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...