Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

errors in header/footer

1 view
Skip to first unread message

Dale

unread,
Oct 22, 2022, 5:11:40 PM10/22/22
to
Hi,

WAS THIS ALWAYS WRONG OR DID THE CHECKER JUST START LOOKING FOR IT?

https://www.dalekelly.org/

I haven't changed the header/footer for the years of my page.

The error seems to be the "/" before the ">" at the end of each link

I have an HTML checker in the footer of my pages:

<a href="https://validator.w3.org/check?uri=referer"><img
src="https://www.w3.org/Icons/valid-html401" alt="Valid HTML 4.01
Strict" height="31" width="88"></a>

For some reason it just checks the main page and gives me that same
error for all.

This are the links I get errors on ...

in HEADER ...

<meta property="og:type" content="website" />
<meta property="og:url" content="https://www.dalekelly.org/" />
<meta property="og:description" content="A place for me to share my
thoughts." />
<meta property="og:title" content="Dale's Website" />
<meta property="og:image"
content="https://www.dalekelly.org/images/shave_haircut.png" />


in FOOTER ...

<a href="https://jigsaw.w3.org/css-validator/check/referer"><img
style="border:0;width:88px;height:31px"
src="https://jigsaw.w3.org/css-validator/images/vcss-blue" alt="Valid
CSS!" /></a>


I haven't changed the header/footer for the years of my page.

The error seems to be the "/" before the ">" at the end of each link


You can check the page by clicking on the checker image on the bottom of
the page ...

https://www.dalekelly.org/

Or use this code ...

<a href="https://validator.w3.org/check?uri=referer"><img
src="https://www.w3.org/Icons/valid-html401" alt="Valid HTML 4.01
Strict" height="31" width="88"></a>


WAS THIS ALWAYS WRONG OR DID THE CHECKER JUST START LOOKING FOR IT?



--
Mystery? -> https://www.dalekelly.org/

David E. Ross

unread,
Oct 22, 2022, 5:35:08 PM10/22/22
to
Somehow, you repeated your message. I snipped the duplicate part.

Yes, the checkers for HTML, CSS, and Atom and RSS feeds are occasionally
updated and improved.

The virgule (/) indicates the end of an element. However, an end tag is
prohibited for the src elemen. In my hand-crafted (no tool) Web pages,
I only indicate ends where it is generally required; and I use explicit
end tags (e.g., </ul>, </a>) rather than merely a virgule.

--
David E. Ross
<http://www.rossde.com/>

Beyond Meat and other such vegetarian meat substitutes
represent the ultimate in ultra-processed foods. Real
meat is natural. Beyond Meat is definitely not.

JJ

unread,
Oct 22, 2022, 6:14:24 PM10/22/22
to
On Sat, 22 Oct 2022 14:34:54 -0700, David E. Ross wrote:
>
> The virgule (/) indicates the end of an element. However, an end tag is
> prohibited for the src elemen.

It's ironic isn't it, when a specification is not consistent.

Dale

unread,
Oct 22, 2022, 6:25:07 PM10/22/22
to
Thank You !!!!

I think I will edit one page and see how it goes.

John-Paul Stewart

unread,
Oct 22, 2022, 7:14:04 PM10/22/22
to
The trailing slash as shown in <meta ... /> and <img ... /> (etc.) is
XHTML syntax rather than HTML 4.01 Strict, which is what the OP
specified he's using.

In XML and XHTML, you need either a separate closing tag (e.g.,
<p>...</p>) or the "self-closing" <img ... /> syntax. Every element
must be closed one way or the other, unlike plain HTML.

Dale

unread,
Oct 22, 2022, 7:53:25 PM10/22/22
to
I chose "HTML 4.01 Strict" for some kind of overall compatibility
reasons. Forget them for the most part. Looks like I got the wrong
reasons. But this checker error just started lately.

Back then I couldn't find a higher standard for the checker.

I'll put an upgrade to XHTML? on the way.

https://www.w3schools.com/html/html_xhtml.asp

David E. Ross

unread,
Oct 22, 2022, 9:53:31 PM10/22/22
to
Do NOT go to XHTML. The W3C advised against it some time ago. Instead,
try HTML 5.

--
David E. Ross
<http://www.rossde.com/>

Donald Trump demands that he be declared the winner of
the 2020 presidential election. Otherwise, he demands
that the election be rerun immediately.

What has he been smoking?

David E. Ross

unread,
Oct 22, 2022, 9:54:51 PM10/22/22
to
Oops! I meant img element, not the "src elemen".

--
David E. Ross
<http://www.rossde.com/>

Dale

unread,
Oct 22, 2022, 10:15:44 PM10/22/22
to
Thank You !!!!

Dale

unread,
Oct 23, 2022, 8:38:00 AM10/23/22
to
Removed the virgules (/) in question on my index.html

https://www.dalekelly.org/

No errors now.

One of the reason for the "meta property" tags was for other social
media. Checked and they worked.

Noticed that if I run the checker placed on other pages, it checks
index.html. Would like the checker code to check each page I have the
checker on.

Here is the checker code that is on each page ...

<a href="https://validator.w3.org/check?uri=referer"><img
src="https://www.w3.org/Icons/valid-html401" alt="Valid HTML 4.01
Strict" height="31" width="88"></a>

This is a new error also. As you said, the checkers for HTML, CSS, and
Atom and RSS feeds are occasionally updated and improved.

How can I edit the checker so it checks the page it is on, not always
index.html? If not how do I edit it specifically for each page?

Jukka K. Korpela

unread,
Oct 23, 2022, 8:58:07 AM10/23/22
to
David E. Ross wrote:

> Yes, the checkers for HTML, CSS, and Atom and RSS feeds are occasionally
> updated and improved.

And so is the HTML specification, “living HTML”, making it pointless to
proclaim validity. A document that is valid now may become invalid any
moment when the specification is changed.

> The virgule (/) indicates the end of an element.

No it does not. Or, well, in SGML-based HTML it did in theory, but this
was never implemented.

> However, an end tag is
> prohibited for the src elemen.

There is no src element.

In the markup

<img src="..." alt="..." />

the slash (solidus) “/” before “>” is XHTML syntax, making the img tag
act both as an opening tag and a closing tag. This was never valid in
HTML 4.01, though it was tolerated by browsers.

The page https://www.dalekelly.org/ declares <!DOCTYPE html>, thereby
referring to “living HTML” as defined at
https://html.spec.whatwg.org/multipage/
Yet it shows an image proclaiming HTML 4.01, which is a much older
specification.

“Valid HTML” icons were always worse than useless, and this is even more
so now. So I will not help in fixing the link (making the “referer”
thing work). The only sensible thing to do with the “validity” icon and
link is to remove them.

Yucca, https://jkorpela.fi



Dale

unread,
Oct 23, 2022, 12:40:33 PM10/23/22
to
Thank You !!!!

Its on the list for editing. Image tags first.

John-Paul Stewart

unread,
Oct 23, 2022, 3:41:23 PM10/23/22
to
On 2022-10-23 08:37, Dale wrote:
>
> Noticed that if I run the checker placed on other pages, it checks
> index.html. Would like the checker code to check each page I have the
> checker on.
>
> Here is the checker code that is on each page ...
>
> <a href="https://validator.w3.org/check?uri=referer"><img
> src="https://www.w3.org/Icons/valid-html401" alt="Valid HTML 4.01
> Strict" height="31" width="88"></a>
>
> This is a new error also.

This isn't so much a change in the way the checker works, but a change
in how browsers send the "referer" header. It used to be that they'd
send a full URL (e.g., http://www.example.com/foo.html). Now, for
privacy reasons, they'll typically only send the domain (e.g.,
http://www.example.com/) as the referer.

Thus when the checker tries to check the referer URL, it is only seeing
the domain part that was sent by the browser rather than the full URL of
the page in question. That's why it always checks your index.html no
matter what page the link was on.

See https://en.wikipedia.org/wiki/HTTP_referer#Referrer_hiding for more
info on the topic.

AFAIK, the only way you'll be able to ensure the link on each page
checks that specific page is to edit it manually to specify the full URL
of that page instead of "referer" after the "check?uri=" part. You'll
also have to percent-encode the target URL as described at
https://en.wikipedia.org/wiki/Percent-encoding when creating the links.

Dale

unread,
Oct 23, 2022, 4:31:59 PM10/23/22
to
On 10/22/2022 5:11 PM, Dale wrote:
>

I get these thing on the checker page ...

About this checker • Report an issue • Version: 22.10.17

"Version: 22.10.17" is around 5 days before my error post

Here is "About this checker"

https://validator.w3.org/nu/about.html

Here is "Report an issue"

https://validator.w3.org/nu/about.html#issues

Gives me some study.

Dale

unread,
Oct 23, 2022, 4:34:15 PM10/23/22
to
Thank You !!!!

Some nice study there.
0 new messages