HTML 5

In some future build of WD say 38 could wd start writing files in html5? Currently it looks like an early version of html 4. Font tags went out with html 4.1 and have long since been replaced with CSS., center has been discontinued. even align=center is deprecated in CSS 3 requiring all font, alignment, positioning, color, styling etc to be controlled by styles. HTML should be written in lower case, not capital letters.

Example the head of july2109.htm I have tried fixing them but WD puts them back this way…


<HTML><HEAD><META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1"/>
<TITLE>Daily Report</TITLE></HEAD><BODY>
<BODY BACKGROUND="" bgproperties="fixed">
<CENTER><FONT COLOR="yes" SIZE=+2><B>Daily report for  July 2019</FONT></B></CENTER>
<PRE>
<FONT COLOR="#3333FF" SIZE=+2 style="font-family: Arial"><B>Averages\Extremes for day :01</B></font>
------------------------------------------------------------
<FONT COLOR="#0000FF" style="font-family: Fixedsys">


Same file fixed with HTML tidy converting it to html5


<!DOCTYPE html>
<html lang="en">
   <head>
    <meta charset="UTF-8"/>
    <meta name="viewport" content="width=device-width, initial-scale=1.0"/>  
   <link rel="stylesheet" href="weatherstyle.css" title="Default"/>  
  <title>Daily Report</title>
  <style type="text/css">
  span.c7 {color: #0000FF; font-family: Fixedsys}
  a.c6 {font-size: 100%}
  span.c5 {color: #0000FF}
  span.c4 {color: #3333FF}
  span.c3 {color: #FF0000}
  span.c2 {color: #3333FF; font-family: Arial; font-size: 144%; font-weight: bold}
  div.c1 {text-align: center}
  </style>
</head>
<body>
  <div class="c1">
    <b>Daily report for July 2019</b>
  </div>
  <pre>
<span class="c2">Averages\Extremes for day :01</span>
------------------------------------------------------------
<span class="c7">


I could improve that, yes, but will it really make that much of a noticable difference to that web page?

Yes, at some point they will drop support for deprecated html elements, it will simplify your code. though it was a learning curve for me most of what was good practice in html 4 is no longer… I think if a page is coded as html5 center tag will not work and probably fonts, they will not validate. I was curious https://weather.scottsworld.info/July2019.htm

https://validator.w3.org/nu/?useragent=Validator.nu%2FLV+http%3A%2F%2Fvalidator.w3.org%2Fservices&acceptlanguage=&doc=https%3A%2F%2Fweather.scottsworld.info%2FJuly2019.htm

Warning: Using windows-1252 instead of the declared encoding iso-8859-1.

At line 1, column 85

Error: Legacy encoding windows-1252 used. Documents must use UTF-8.

https://weather.scottsworld.info/July2019.htm

Error: Start tag seen without seeing a doctype first. Expected <!DOCTYPE html>.

From line 1, column 1; to line 1, column 6

<HTML><HEAD>

Error: Bad value text/html; charset=iso-8859-1 for attribute content on element meta: charset= must be followed by utf-8.

From line 1, column 13; to line 1, column 85

TML><HEAD><META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1"/>↩<TITL

Error: Start tag body seen but an element of the same type was already open.

From line 3, column 1; to line 3, column 41

AD><BODY>↩<BODY BACKGROUND="" bgproperties="fixed">↩<CENT

Fatal Error: Cannot recover after last error. Any further errors will be ignored.

From line 3, column 1; to line 3, column 41

AD><BODY>↩<BODY BACKGROUND="" bgproperties="fixed">↩<CENT