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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T00:53:00+00:00 2026-06-01T00:53:00+00:00

If you had to properly choose one HTML tag to represent a price, a

  • 0

If you had to properly choose one HTML tag to represent a price, a money amount or an account balance, (e.g. 3/9/2012 - Income: 1.200,00 € or item #314159 - price: $ 31,99) then

  • which tag would you choose for the amount and why?
  • should the currency also be wrapped in its own tag or not?

I’d really like to avoid a generic inline element like <span class="income">1.200,00 €</span> or <span class="price">$ 31,99</span> but so far I’ve found no references about it.

  • 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-06-01T00:53:01+00:00Added an answer on June 1, 2026 at 12:53 am

    The HTML spec for var states:

    The var element represents a variable. This could be an actual
    variable in a mathematical expression or programming context, an
    identifier representing a constant, a function parameter, or just be a
    term used as a placeholder in prose.

    For me this means that <var> is not suitable for the prices in your examples. It depends on what you are trying to accomplish, but it seems your options are:

    1. Use microdata (ref), for example Schema.org’s offer vocabulary for a product’s price
    2. Use <b> if you’d like to draw attention to the price without indicating it’s more important (ref)
    3. Use <strong> if the price is important, such as the total price of an itemised receipt
    4. Use <span> with a class if you need an element to style the price differently, but <b> and <strong> are not appropriate
    5. If nothing above is suitable and you don’t want to style the price, don’t do anything

    From the examples you’ve given there doesn’t seem to be any need to mark up prices. If the examples are from a table to display financial information, make sure they’re in a column headed by <th scope="col">Income</th> or <th scope="col">Price</th> respectively for accessibility.

    Hope that helps!

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

Sidebar

Related Questions

I had an instance in one of my classes where I neglected to properly
I had developed an API Rest for an iPhone Game and it works properly.
I have a big problem. I had a configuration which worked properly till today.
This is not properly a question but something more like a thought I had
I had another question about this issue, but I didn't ask properly, so here
Recently I had this question , and everything worked properly until I sent it
So, I had a question about getting word count to work properly in emacs
I am new to python and django. I had django running properly in my
I’m having some strange problem with my JS program. I had this working properly
I had install zend framework on ubuntu and it was install properly. but now

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.