The Apache Haus Forum

Advanced search  

News:

Welcome to Apache Haus Distribution Forum

Pages: [1]   Go Down

Author Topic: HTLM Checker finds errors in index.html  (Read 678 times)

rr908

  • Newbie
  • *
  • Offline Offline
  • Posts: 2
HTLM Checker finds errors in index.html
« on: January 24, 2020, 01:43:45 AM »

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!
Logged

mario

  • Administrator
  • Member Elite
  • *****
  • Offline Offline
  • Posts: 598
Re: HTLM Checker finds errors in index.html
« Reply #1 on: January 24, 2020, 09:40:39 AM »

That might be an option.
Logged

Gregg

  • Administrator
  • Member Elite
  • *****
  • Offline Offline
  • Posts: 870
Re: HTLM Checker finds errors in index.html
« Reply #2 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!
Logged

mario

  • Administrator
  • Member Elite
  • *****
  • Offline Offline
  • Posts: 598
Re: HTLM Checker finds errors in index.html
« Reply #3 on: January 26, 2020, 06:01:41 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
Logged

Gregg

  • Administrator
  • Member Elite
  • *****
  • Offline Offline
  • Posts: 870
Re: HTLM Checker finds errors in index.html
« Reply #4 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.
Quote
If 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?

Logged

Gregg

  • Administrator
  • Member Elite
  • *****
  • Offline Offline
  • Posts: 870
Re: HTLM Checker finds errors in index.html
« Reply #5 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.
Logged

rr908

  • Newbie
  • *
  • Offline Offline
  • Posts: 2
Re: HTLM Checker finds errors in index.html
« Reply #6 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. :)
Logged
Pages: [1]   Go Up
 

Sitemap 1 2 3 4 5 6 7 8 9 10 11 12 13