The Apache Haus Forum

Forum Topics => Apache 2.4 => Topic started by: rr908 on January 24, 2020, 01:43:45 AM

Title: HTLM Checker finds errors in index.html
Post by: rr908 on January 24, 2020, 01:43:45 AM
Out of curiosity, I ran NU HTML Checker  ( https://validator.w3.org/nu/ (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!
Title: Re: HTLM Checker finds errors in index.html
Post by: mario on January 24, 2020, 09:40:39 AM
That might be an option.
Title: Re: HTLM Checker finds errors in index.html
Post by: Gregg on January 24, 2020, 07:39:52 PM
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!
Title: Re: HTLM Checker finds errors in index.html
Post by: mario on January 26, 2020, 06:01:41 PM
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
Title: Re: HTLM Checker finds errors in index.html
Post by: Gregg on January 27, 2020, 11:04:34 AM
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?

Title: Re: HTLM Checker finds errors in index.html
Post by: Gregg on January 29, 2020, 12:58:32 AM
With very minor modification it's HTML/4.01 compliant.
https://validator.w3.org/check?uri=https%3A%2F%2Fwww.apachehaus.net%2Ftemp%2Ftest2.html;verbose=1

That test only allows html 5.
Title: Re: HTLM Checker finds errors in index.html
Post by: rr908 on May 09, 2020, 08:19:16 PM
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. :)