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

  • SEARCH
  • Home
  • 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 7017117
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T22:52:23+00:00 2026-05-27T22:52:23+00:00

So I have a form and I’ll have error messages associated with each input/element.

  • 0

So I have a form and I’ll have error messages associated with each input/element.
I’ve come up with this use for the <aside> tag and was wondering what people thought:

    <section class="fieldrow" id="rowJobTitle">

        <label for="txtJobTitle" id="lblJobTitle">
            <span>Job title:</span>
        </label>

        <input type="text" id="txtJobTitle" name="txtJobTitle">

        <aside id="errJobTitle" class="errormessage">
            <span role="alert">Please tell us your job title.</span>
        </aside>

    </section>

Then I’ll be using CSS to show or hide the <aside> errors with a little JS to change this.

I know I could just use the span, and be done with it, but a span tag has no semantic value, and all the (short and vague) info I’ve read on <aside> seems to say there’s no problem with this, but I was hoping that I could either get some confirmation, or someone who’s tried this before and found a good reason not to.

Thanks, Si.

  • 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-27T22:52:24+00:00Added an answer on May 27, 2026 at 10:52 pm

    The <aside> tag is supported in all major browsers.

    There are, however, potentially more elegant ways to do this, and <aside> is not particularly semantic for what you mean. From the HTML5 specs:

    The aside element represents a section of a page that consists of
    content that is tangentially related to the content around the aside
    element, and which could be considered separate from that content.
    Such sections are often represented as sidebars in printed typography.

    Your error is not really separate from the content, so it’s a fairly inappropriate choice.

    You should look at how Twitter Bootstrap does in-line form errors.

    All that said, this is semantics, and therefore inherently subjective. If it makes sense to you and it works, why not use it?

    EDIT

    Upon reading Rob’s link, <aside> looks even more inappropriate than I thought. Since <aside> is not a sub-element of the <input>, there is no reason a parser would think it related to that <input>. I would avoid its usage in this context.

    MDN gives some use cases for this, and yours doesn’t fit:

    they often contains side explanation like a glossary definition, more
    loosely related stuff like advertisements, the biography of the
    author, or in web-applications, profile information or related blog
    links.

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

Sidebar

Related Questions

I have form like this: <input type='text' name='people' id='namepeople'> <input type='hidden' name='idpeople' id='idpeople'> <input
I have form like this: <form method=POST> <p> Nazwa kategorii: <br /> <input name=NazwaKat
I have form who validate user input, I use PHP, Javascript and AJAX. I
I have form elements like this: <input type='text' id='person_1_name'> <input type='text' id='person_2_name'> <input type='text'
i have form action file in another directory but some file send to this
I have form with one input for email and two submit buttons to subscribe
I have: form.input :duration, as: select, collection: {} I need: <option value= data-price=XXX></option> Rails
I have form with checkboxes loaded from database (I use entity field type). Checkboxes
I have form fields which are checkboxes as below : <input id=abirrules@gmail.com type=checkbox checked=checked
I have form with input 's. When it's opened (via jQuery UI: Dialog)... cursor

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.