TheFilmGod Posted March 14, 2007 Share Posted March 14, 2007 A validator says that it is improper to use: </input> . It says that it is invalid. Why? Quote Link to comment https://forums.phpfreaks.com/topic/42602-solved-input-tag/ Share on other sites More sharing options...
AndyB Posted March 14, 2007 Share Posted March 14, 2007 It says it's invalid because ... it's invalid. The real valid version is like this: <input type="text" name="test" /> Quote Link to comment https://forums.phpfreaks.com/topic/42602-solved-input-tag/#findComment-206744 Share on other sites More sharing options...
wildteen88 Posted March 16, 2007 Share Posted March 16, 2007 Also </input> has never existed. insert tags (and a few other tags, such as br, hr etc) do not have a matching closing tag. If you are using XHTML then you do as AndyB suggested. However if you are using HTML then you don't need to have the (space)/ before closing the tag. Quote Link to comment https://forums.phpfreaks.com/topic/42602-solved-input-tag/#findComment-208963 Share on other sites More sharing options...
HIV Posted March 18, 2007 Share Posted March 18, 2007 yes, for exampe img or br tag Quote Link to comment https://forums.phpfreaks.com/topic/42602-solved-input-tag/#findComment-210131 Share on other sites More sharing options...
TheFilmGod Posted March 19, 2007 Author Share Posted March 19, 2007 Thanks! I tried it out and it validated that piece of code. I guess you learn something new. - Actually the code error was from google adsense "gasp!" Quote Link to comment https://forums.phpfreaks.com/topic/42602-solved-input-tag/#findComment-210305 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.