TyMcClendon Posted July 11, 2011 Share Posted July 11, 2011 Hi Everyone!I'm getting some validation errors which I'm not understanding.Please view the errors of my site:http://validator.w3.org/check?uri=ht...clendon.com%2Ftymcclendon.comTransitional is good, but I want it strict!Thank you.Ty Link to comment Share on other sites More sharing options...
Ingolme Posted July 11, 2011 Share Posted July 11, 2011 A form cannot have text or inline elements as direct descendents. You have to enclose them in a block element like any of the ones mentioned in the validation error. Link to comment Share on other sites More sharing options...
TyMcClendon Posted July 12, 2011 Author Share Posted July 12, 2011 Thank you for your solution.I wrapped the contents of the form within a <fieldset>, and the errors went away. :)There is 1 error left, which I am unable to fix.It is complaining about the target="_blank" attribute.What is wrong with this?Thanks again,Ty Link to comment Share on other sites More sharing options...
Ingolme Posted July 12, 2011 Share Posted July 12, 2011 Thank you for your solution.I wrapped the contents of the form within a <fieldset>, and the errors went away. :)There is 1 error left, which I am unable to fix.It is complaining about the target="_blank" attribute.What is wrong with this?Thanks again,TyThe target attribute is deprecated. According to the W3C, opening in a new window or not should be the user's choice. Link to comment Share on other sites More sharing options...
whh-kevinw Posted July 13, 2011 Share Posted July 13, 2011 As Ingolme said, it is marked due to being deprecated, but it will still work. I haven't changed it off my site yet and it still functions properly in all browsers, just something to keep in mind in the future. Link to comment Share on other sites More sharing options...
Ingolme Posted July 13, 2011 Share Posted July 13, 2011 If you wish to use the target attribute you should stick with a Transitional DOCTYPE. Why would you want a Strict one if your page works better with Transitional? Link to comment Share on other sites More sharing options...
jeffman Posted July 13, 2011 Share Posted July 13, 2011 FWIW, the seniors on this board consistently jump all over posts that recommend the violation of standards. It really doesn't matter if the violation "works" or not. It's just the mood of the board. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.