esaumur Posted October 2, 2006 Share Posted October 2, 2006 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 More sharing options...
aspnetguy Posted October 2, 2006 Share Posted October 2, 2006 HTML does not require a </option> but allows you to put if you want, but XHTML requires the </option>This isn't an error. Link to comment Share on other sites More sharing options...
esaumur Posted October 3, 2006 Author Share Posted October 3, 2006 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 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