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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T20:04:18+00:00 2026-06-13T20:04:18+00:00

I am trying to validate my HTML5 document with the W3C validation service. I

  • 0

I am trying to validate my HTML5 document with the W3C validation service. I am using the fancybox jQuery plugin for simple light boxes and image galleries. In order to differentiate between each image gallery I am using the rel tag.

When I validate my page I get the following error:

Bad value gallery for attribute rel on element a: Not an absolute IRI. The string gallery is not a registered keyword or absolute URL.

Here is my code:

<div class="portItem">
    <div class="thumbs">
        <div class="items">
        <img src="images/rsl.jpg" class="col" alt="A website for R.S.Lynch and Company"/>
        <div class="caption">
            <a class="fancybox" rel="gallery1" href="images/rs1.jpg">R.S.Lynch & Company</a>
            <div class="hidden">
            <a class="fancybox" rel="gallery1" href="images/rs2.jpg"></a>
            <a class="fancybox" rel="gallery1" href="images/rs3.jpg"></a>
            <a class="fancybox" rel="gallery1" href="images/rs4.jpg"></a>
            <a class="fancybox" rel="gallery1" href="images/rs5.jpg"></a>
            </div>
        </div>
        </div>
    </div>
</div>

Is there a way to achieve this result?

  • 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-13T20:04:21+00:00Added an answer on June 13, 2026 at 8:04 pm

    I’d suggest using data-family attribute here, like this:

    <a class="fancybox" data-gallery="1" href="images/rs1.jpg">R.S.Lynch & Company</a>
    <a class="fancybox" data-gallery="1" href="images/rs2.jpg">...</a>
    <a class="fancybox" data-gallery="1" href="images/rs3.jpg">...</a>
    <a class="fancybox" data-gallery="1" href="images/rs4.jpg">...</a>
    <a class="fancybox" data-gallery="1" href="images/rs5.jpg">...</a>
    

    … as this type of attribute was designed specifically for attaching some data to DOM elements. It’s more semantic than using class, in my opinion.

    You can easily access these values with $('some selector').data('gallery') syntax.

    As for rel attribute, it looks like in HTML5 it’s restricted to the set of predefined attributes, and is used to define more high-level relationships between documents.

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

Sidebar

Related Questions

I am trying to validate using jquery validation and the error messages displayed it
I'm trying to use jQuery validation plugin to validate a few form fields by
I'm trying to use HTML5 to validate a number input. I am using jQuery
i'm trying to validate a form using jquery, ajax and json using codeigniter's validation,
I'm trying to get a site to validate as HTML5 on the W3C Markup
i'm trying to validate an html page using jquery, but nothing happens. it's a
I am trying to validate a form with the jquery-validate plugin. The html page
I'm trying to validate a simple XML file against an XML schema using the
I am trying to learn the jQuery validation plugin, so I created the simplest
Ive been trying to validate an html5 document with the following 2 lines in

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.