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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T23:51:35+00:00 2026-05-21T23:51:35+00:00

In my HTML I was curious if it was semantically correct to use unique

  • 0

In my HTML I was curious if it was semantically correct to use unique identifiers such as <toys> rather than an <h1>. For example:

I wanted to have:

<toys class="grid_4 push_2">&nbsp;</toys>

With the CSS:

toys {
  background: url("toys.png") no-repeat scroll 0 0 transparent;
  width: 181px;
  height: 93px;
  margin-top: -8px;
}

I currently have:

<h1 class="grid_4 push_2">&nbsp;</h1>

With the CSS:

h1.push_2 {
  background: url("toys.png") no-repeat scroll 0 0 transparent;
  width: 181px;
  height: 93px;
  margin-top: -8px;
}

Is the use of unique identifiers like <toys> semantically correct?

  • 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-21T23:51:36+00:00Added an answer on May 21, 2026 at 11:51 pm

    It is best to avoid using custom tags, as you never know when those tags may become standardized, and have special usage in the future.

    The best thing to do for your example, if you want to avoid using the header tags, is the following:

    <div class="toys grid_4 push_2">&nbsp</div>
    
    .toys {
        background: url("toys.png") no-repeat scroll 0 0 transparent;
        width: 181px;
        height: 93px;
        margin-top: -8px;
    }
    

    In addition:

    If you do not use standard html tags when designing pages, they will not appear in any organized manner when styles are disabled. This is not a problem, going forward, but if for any reason you needed to view a list of “toys” without styles, you had be out of luck unless you use <ul> or <ol> with <li> tags.

    UPDATE:

    As Flimzy pointed out in the comments, custom HTML elements now have their own W3C specification. However, they are not yet fully supported.

    • Specification: https://www.w3.org/TR/custom-elements/
    • Support: http://caniuse.com/#feat=custom-elements
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Just curious - apart from its ubiquitous use in specifying the presentation of HTML
I have a rather curious problem, using the XElement load method to load in
Just curious, I have this function: setInterval( function(){ sendAjax('search', eInput, function(responseText){ $(#txtResp).html(responseText); }) },
I have the following (simplified) HTML structure <td> <DIV class=t-numerictextbox> <DIV class=t-formatted-value>$0.00</DIV> <INPUT id=MyObj_PropertyName
I'm curious if this is possible at all since a select * from html
Html.TextBox(ParentPassword, , new { @class = required }) what the gosh darned heck is
HTML Javascript question to get the selected value of a input-select I can use
html code meta tag description, it is generated dynamically and we have quotes in
Html looks like: <div class=ticker> <div class=news-heading>Latest News:</div> <span class=active_ticker><a href=#> 1] Lorem ipsum
I am curious about the security of PHP on an HTML webpage where PHP

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.