1 (edited by kei 2025-04-06 00:14:15)

Topic: w3 validator question on juicebox-pro version v1.5.1

Dear Steven,

I use Juicebox pro for a while and I like it.

The question I have is that when I validate a gallery (e.g. myvoyages.nl/galleries/g-crete4-knoss/) with  validator.w3.org I get numerous messages saying:
"Trailing slash on void elements has no effect and interacts badly with unquoted attribute values"

e.g. in the line:
<img src="images/2011-knossos-peacock.jpg" title="peacock" alt="Crete ancient Minoan Palace of Knossos" />

Will the automatic generated slashes on the end of the img-elements have an effect on Google SEO or on other situations?

greetings
Willem de Kei

Re: w3 validator question on juicebox-pro version v1.5.1

The "trailing slash on void elements" messages are listed on the W3C Markup Validation site as "Info" (rather than "Warning" or "Error"). As such, the messages are just informational and should not cause any problems.
Trailing slashes on void elements are optional in HTML 5 and can, indeed, interact badly with unquoted attribute values but Juicebox does not use any unquoted attribute values (all attribute values in the code generated by Juicebox-Pro are quoted) so the trailing slashes are fine (although unnecessary) in this scenario.
I cannot be 100% sure how Google's SEO crawling and indexing works but as the trailing slashes are valid HTML 5, there should not be any problems with SEO or anything else.

Re: w3 validator question on juicebox-pro version v1.5.1

Thank you for your quick answer and clear explanation.

greetings
willem de Kei