Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 157061
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T10:26:12+00:00 2026-05-11T10:26:12+00:00

Really 2 questions. Why is it that these bits of code dont validate to

  • 0

Really 2 questions. Why is it that these bits of code dont validate to XHTML 1.0 Strict. XHTML 1.0 Strict is a project requirement.

Line 2 causes the problem

document type does not allow element ‘input’ here; missing one of ‘p’, ‘h1’, ‘h2’, ‘h3’, ‘h4’, ‘h5’, ‘h6’, ‘div’, ‘pre’, ‘address’, ‘fieldset’, ‘ins’, ‘del’ start-tag.

<form enctype='multipart/form-data' action='upload.php' method='post'> <input type='hidden' name='max_file_size' value='1048576' /> <table><tr><td><b>Image location: </b></td><td><input type='file' name='file' size='30'/></td></tr> <tr><td><b>Caption: </b></td><td><input type='text' name='caption' size='30'/></td></tr> <tr><td><input name='submit' type='submit' value='Upload' /></td><td>*(png, jpeg, jpg and gif files &lt; 1mb)</td></tr></table> </form> 

And for line 2 and 3

document type does not allow element ‘input’ here; missing one of ‘p’, ‘h1’, ‘h2’, ‘h3’, ‘h4’, ‘h5’, ‘h6’, ‘div’, ‘pre’, ‘address’, ‘fieldset’, ‘ins’, ‘del’ start-tag.

<form action='#'>     <input type='text' size='30' name='query'  value='' onkeypress='return disableEnterKey(event)' />     <input type='button' name='searchButton' value='Search' onclick='loadResults(this.form)' /> </form> 
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-11T10:26:13+00:00Added an answer on May 11, 2026 at 10:26 am

    You need to put your form inputs in a <fieldset> or other block tag. <input> elements are inline form elements, and inline elements may not appear in a block context. Try

    <fieldset>    <input ... /> <fieldset> 
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've seen many questions about this, but i've never really got the answer that
Really my question has more to do with the server-side scrubbing of html that's
This is a (hopefully) really simple question - I have been told recently that
This is a perennial question for me that I've never really resolved so I'd
First off, let me preface this question by stating that I'm really a pretty
First let me say that I really feel directionless on this question. I am
I've some questions .. and I really need your help. I have an application.
I have an application that was developed for Linux x86 32 bits. There are
I posted this question: https://stackoverflow.com/questions/418597/java-and-net-for-php-programmer and the answers I was given didn't really help
Really simple question - how do I do a search to find all records

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.