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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T15:35:38+00:00 2026-06-14T15:35:38+00:00

I was wondering if I can create a custom HTML tag with the same

  • 0

I was wondering if I can create a custom HTML tag with the same functionality of Facebook’s Open Graph meta tags for my site.

I was thinking of something like this:

<mysite title="My website title" description="Some description" 
    image="http://mysite.com/image.png">

And then use PHP to fetch this data (I can already do this with meta-tags).

Some points:

  • I use HTML5, are there any syntax problems using this method?

  • Google+ uses something like this: g:plusone

  • 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-14T15:35:39+00:00Added an answer on June 14, 2026 at 3:35 pm

    Marat Tanalin is right, in HTML5 you are not allowed to “invent” elements/attributes/values that are not specified. Alohci gives a nice example why that is the reason.

    mmmshuddup notes, that you could use XHTML5. However, I think it would be allowed in that case, if you extend the vocabulary formally correct. It’s XML, after all. It couldn’t be a polyglot (X)HTML5 document anymore, though.

    I think there may be a (X)HTML5 solution that could work for you (depends on your specific use case, though): the data-* attribute:

    <div data-title="My website title" data-description="Some description" data-image="http://mysite.com/image.png">…</div>
    

    You can “invent” attributes that start with data- followed by a string you are free to define.

    Another possible (more complex) way might be to use microdata with an existing vocabulary that suits your needs (if you can’t find one, you could create one yourself). I would only go this way if the (meta)data you want to provide is valuable for others.

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

Sidebar

Related Questions

I am trying to create a custom wpf control, I'm wondering how I can
hi i was just wondering how you can create you own custom file upload
I'm wondering how I can create a custom pop-up like the one in the
was wondering how can I create a sub drop down box upon selecting a
I am wondering how I can create an outer glow effect outside a UIView
I was wondering if I can create a project in eclipse or for the
I was wondering, when you create an object you can often set multiple attributes
I have custom JSP tags that generate some HTML content, along with some javascript
For some time now I've been wondering whether I could create a custom template
I was wondering if anyone can help me understand how exactly to create different

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.