HTLM Checker finds errors in index.html

Started by rr908, January 24, 2020, 01:43:45 AM

Previous topic - Next topic

rr908

Out of curiosity, I ran NU HTML Checker  ( https://validator.w3.org/nu/ ) against the file httpd-2.4.41-o111c-x64-vc15-r2\Apache24\htdocs\index.html and it found almost 30 errors.
Should this be updated before being sent out with the next version of Apache? Thanks!

mario


Gregg

You are supposed to replace that file with your website, what's it really matter?

I suppose we can always go to the out-of-compiler index.html page that just shows

It Works!

mario

Quote from: Gregg on January 24, 2020, 07:39:52 PM
You are supposed to replace that file with your website

Well google still shows some websites with the not replaced file (in years)  ;D

Gregg

True! I have googled and seen that.
That's why I did away with the version number on it, sort of.

I do believe that page has always had this on it.
QuoteIf you are the web server administrator:

You may now add content to the directory /htdocs. Note that until you do so, people visiting your website will see this page, and not your content. To prevent this page from ever being used, replace the existing /htdocs/index.html with one of your own.

Can't say I didn't warn them.

But then again, even the default 'It Works!' page has errors by that test.

Warning: Consider adding a lang attribute to the html start tag to declare the language of this document.
Error: The character encoding was not declared. Proceeding using windows-1252.
Error: Start tag seen without seeing a doctype first. Expected <!DOCTYPE html>.
Error: Element head is missing a required instance of child element title.

So the question then becomes where does this end?


Gregg


rr908

Sorry to bother you: The index.html file in download httpd-2.4.43-o111g-x64-vc15.zip has two minor errors that are flagged by the 4.01 syntax checker:
Line 60: <br/> should read <br>
Line 64:  </html  should read </html>
I appreciate your hard work in keeping Apache Haus distributions great quality. :)