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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T14:29:34+00:00 2026-06-06T14:29:34+00:00

I need to be able to define the fact that a board game tile

  • 0

I need to be able to define the fact that a board game tile like this one has a city on the top edge, roads on the left and bottom edge, and grass on the right edge.

How can I do this? From what I’ve read about HTML5 custom data attributes they seem like a viable option (e.g., “data-left=’road’…”), but I am hoping to receive confirmation from someone with more coding experience before getting too far into the project. Any thoughts?

  • 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-06T14:29:36+00:00Added an answer on June 6, 2026 at 2:29 pm

    You can use custom attributes like toske said, but I would recommend that you create a data object model representation (using JSON) of your scenario and them process this model to render your interface.

    Edit: Here is an example. The data is the tiles array that contains some objects that represents each tile. I used jQuery, but you can use the JavaScript library that you want. I recomment that you learn jQuery if you don’t know how to use it. It’s a very powerfull and simple library.

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

Sidebar

Related Questions

I'd like to be able to define an inline anonymous selector that a selector
I need to allow my users to be able to define formulas which will
So, I need to be able to parse xml files that could include namespace
I need to be able to define a drop down list in my cshtml.
I need to be able to define two nodes with the same name but
I need to be able to define an attribute with a prefix in a
In C# I need to be able to define a method but have it
I like how Java has a Map where you can define the types of
I would like to be able to define and use a custom type in
Users of the website need to able to store images in their area ,

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.