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 4240318
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T03:08:57+00:00 2026-05-21T03:08:57+00:00

From a standpoint of using XHTML 1.0 Strict as DOCTYPE — would the input

  • 0

From a standpoint of using XHTML 1.0 Strict as DOCTYPE — would the input tag in XHTML be considered tabular data?

And if not, could someone please give me some good advise on valid XHTML (Strict 1.0) code that I could use in combination with MySQL and PHP? What I need to do is have an input field to the right of another input field (BUT, the right input field is not always in need of being printed on the page), so currently I’ve only been able to come up with this:

<table>
    <tr>
        <td><input type="text" value="First column"></td>
        <td>...</td>
        <td>...</td>
    </tr>
    <?php if(!empty($column2)){ echo '<tr><td><input type="text" value="Second column"></td></tr>'; } ?>
</table>

So, any other ideas? I’m thankful for any suggestions you may have!

EDIT I should also mention, that I need to have captions above each column (not each input field, but let’s say each tr, looking from my example).

  • 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. Editorial Team
    Editorial Team
    2026-05-21T03:08:57+00:00Added an answer on May 21, 2026 at 3:08 am

    Your concerns about an input being tabular data or not should not impact your desire for XHTML 1.0 Strict valid markup.

    Whether or not an input is tabular or not is a matter of semantics, not validation. Don’t get me wrong, semantics are important — the markup used should describe the content it contains. However, semantics are largely unrelated to whether or not code will validate.

    For an input, the requirements to validate is that it (1) be inside a <form> tag and (2) be inside a block-level element such as a <p> or <table> or any other block level element.

    Another concern to address is accessibility — both tables and forms have many accessibility challenges for screen readers and keyboard control. The way a screen reader parses a table may not be how you intended the content to be digested, so the user may end up hearing items read to them out of order, and thus your page will become non-sensical to them. Using keyboard controls to tab between form elements may also be affected by the markup used, since tables may require elements to be placed in the markup in a different order than you intend the user to digest them in the page.

    Personally, I do not believe that forms are tabular data, and do not use tables when creating the markup for them. Generally, I use unordered lists. A generic example may be:

    <form>
      <fieldset>
        <ul>
          <li>
            <label for="item">Item 1</label>
            <input type="text" name="item" id="item" />
          </li>
          ...
        </ul>
      </fieldset>
    </form>
    

    I hope that helps.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Are pipes considered dangerous to use in Windows, from a security standpoint?
Using Active Directory / Windows Integrated authentication is a given. From a development standpoint,
I'm writing this question from the standpoint of an ASP.NET application. However I realize
I'm asking this question purely from a usability standpoint ! Should a website expand/stretch
One of the biggest issues I have, from a UI standpoint, when building a
From what information I could find, they both solve the same problems - more
From a security standpoint, what is the best solution to handle application errors with
For a web application database, from a security standpoint only , what are arguments
I am using FORM authentication, together with Realm. I would like to know how
I am attempting to pull some information from my tnsnames file using regex. I

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.