brown2005 Posted August 7, 2008 Share Posted August 7, 2008 Hi, i am designing my website in the above and have an error with just putting <input /> i need to but something around it.. do i put <p> or <span> or something else? thanks Quote Link to comment Share on other sites More sharing options...
EvanAgee Posted August 7, 2008 Share Posted August 7, 2008 The problem isn't that you need to put something around it, it's that your tag is empty and has no attributes. The <input> tag has necessary attribtues in order for it to be considered valid. More info here: http://www.w3schools.com/TAGS/tag_input.asp Quote Link to comment Share on other sites More sharing options...
brown2005 Posted August 7, 2008 Author Share Posted August 7, 2008 http://validator.w3.org/check?uri=http%3A%2F%2Fwww.fantasy-comps.com%2Findex%2Findex.php%3Fpage%3Dhome&charset=%28detect+automatically%29&doctype=Inline&group=0 exactly what i did.... if i put the <p><input></p> it works fine.. without the <p> its a no no Quote Link to comment Share on other sites More sharing options...
haku Posted August 7, 2008 Share Posted August 7, 2008 That's correct. You need to put inputs in a block level element. A <p> or a <div> will do the trick. Quote Link to comment 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.