Title: [Plugin: Lightbox Plus] rel=&quot;lightbox&quot; not valid in HTML5
Last modified: August 20, 2016

---

# [Plugin: Lightbox Plus] rel="lightbox" not valid in HTML5

 *  Resolved [constantine.johny](https://wordpress.org/support/users/constantinejohny-1/)
 * (@constantinejohny-1)
 * [14 years ago](https://wordpress.org/support/topic/plugin-lightbox-plus-rellightbox-not-valid-in-html5/)
 * Hi, when I use rel=”lightbox”, my page doesn’t validate, saying that it is not
   allowed to use this value for rel attribute.
    Is there a way to make it valid
   in HTML5? For example something like data-lightbox=”” ?
 * [http://wordpress.org/extend/plugins/lightbox-plus/](http://wordpress.org/extend/plugins/lightbox-plus/)

Viewing 9 replies - 1 through 9 (of 9 total)

 *  [lady_r0gue](https://wordpress.org/support/users/lady_r0gue/)
 * (@lady_r0gue)
 * [13 years, 9 months ago](https://wordpress.org/support/topic/plugin-lightbox-plus-rellightbox-not-valid-in-html5/#post-2740072)
 * I have the same problem… saw some documentation elsewhere that suggested changing
   all the rel= entries to class= which would seem like a neat solution – tried 
   editing various files but no joy 🙁
 *  [Shigerua](https://wordpress.org/support/users/shigerua/)
 * (@shigerua)
 * [13 years, 6 months ago](https://wordpress.org/support/topic/plugin-lightbox-plus-rellightbox-not-valid-in-html5/#post-2740103)
 * Got the same Problem.
 * Please fix this one, so that we can validate our pages again.
 * Thanks
 *  Plugin Author [Dan Zappone](https://wordpress.org/support/users/dzappone/)
 * (@dzappone)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/plugin-lightbox-plus-rellightbox-not-valid-in-html5/#post-2740126)
 * Will be in the next update. Probably a check box named _Generate Valid HTML5 
   Code_. I myself have a need for this too but buggier problems got the bulk of
   the time. Should have another update in a day or so.
 *  [hexagongirl](https://wordpress.org/support/users/hexagongirl/)
 * (@hexagongirl)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/plugin-lightbox-plus-rellightbox-not-valid-in-html5/#post-2740127)
 * Hi Dan,
 * Do you know yet when this ‘Valid HTML5 Code’ option might be available?
 * I’m hitting the same problem. I also get the following – is anyone aware whether
   this a Lightbox Plus thing, or the WP Gallery?
 * Element dl is missing a required instance of child element dd.
 * Thanks,
    Sarah
 *  [Roger Sievers](https://wordpress.org/support/users/mindblossomcreations/)
 * (@mindblossomcreations)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/plugin-lightbox-plus-rellightbox-not-valid-in-html5/#post-2740128)
 * On this note, when adding a gallery into a page/post the images “a href” dont
   have the class or rel= attached to them? I tried the beta 2.5.6 but that didnt
   help either?
 * Is this related to the new media manager?
 * [http://www.larsenindustries.com/newsite/gazebos-pergolas/](http://www.larsenindustries.com/newsite/gazebos-pergolas/)
 * wp 3.5.1
    lbs 2.5.5
 *  Plugin Author [Dan Zappone](https://wordpress.org/support/users/dzappone/)
 * (@dzappone)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/plugin-lightbox-plus-rellightbox-not-valid-in-html5/#post-2740129)
 * Should be updated in latest release (2.6). Also gallery issues should also be
   resolved for various version of WordPress.
 *  [hexagongirl](https://wordpress.org/support/users/hexagongirl/)
 * (@hexagongirl)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/plugin-lightbox-plus-rellightbox-not-valid-in-html5/#post-2740131)
 * Great, thank you! Just updated a client site, checked the ‘Valid HTML5’ option
   and the validation errors have now disappeared.
 * Now off to find out how to get rid of my ‘Element dl is missing a required instance
   of child element dd.’ errors… I think the default WP gallery is the culprit this
   time…
 *  Plugin Author [Dan Zappone](https://wordpress.org/support/users/dzappone/)
 * (@dzappone)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/plugin-lightbox-plus-rellightbox-not-valid-in-html5/#post-2740132)
 * No problem sorry it took me so long. Let me know because my gallery code is uses
   their gallery code and probably passes the same problem through.
 *  [hexagongirl](https://wordpress.org/support/users/hexagongirl/)
 * (@hexagongirl)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/plugin-lightbox-plus-rellightbox-not-valid-in-html5/#post-2740133)
 * I got as far as working out that the ‘missing dd’ error is due to not having 
   captions set for my gallery images.
 * It’s a WP gallery thing, not specific to LBP.
 * It seems a bit of a flaw to me, as there are often ocassions when clients want
   to add a gallery with no caption. You can change the containing elements that
   the gallery uses on the fly via the gallery shortcode (e.g. changing dl to div
   etc) – but this is not ideal for clients.
 * The only other way I’ve found thus far invovles re-writing the gallery completely.
 * There is an old related trac ticket here: [http://core.trac.wordpress.org/ticket/14819](http://core.trac.wordpress.org/ticket/14819),
   although not sure what the solution is given [Nacin’s comment](http://core.trac.wordpress.org/ticket/14819#comment:7).

Viewing 9 replies - 1 through 9 (of 9 total)

The topic ‘[Plugin: Lightbox Plus] rel="lightbox" not valid in HTML5’ is closed 
to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/lightbox-plus_fafafa.svg)
 * [Lightbox Plus Colorbox](https://wordpress.org/plugins/lightbox-plus/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/lightbox-plus/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/lightbox-plus/)
 * [Active Topics](https://wordpress.org/support/plugin/lightbox-plus/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/lightbox-plus/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/lightbox-plus/reviews/)

## Tags

 * [html5](https://wordpress.org/support/topic-tag/html5/)

 * 9 replies
 * 6 participants
 * Last reply from: [hexagongirl](https://wordpress.org/support/users/hexagongirl/)
 * Last activity: [13 years, 3 months ago](https://wordpress.org/support/topic/plugin-lightbox-plus-rellightbox-not-valid-in-html5/#post-2740133)
 * Status: resolved