cgi-bin: Remove font tags with no effect, and style tags

The font tag is deprecated, so clean up html by removing
font tags that have no effect.

For font tags that have an effect, move the styling to
the tag controlling the text output.

The aim is to get one step further towards validating html.
This commit is contained in:
Alf Høgemark
2014-02-22 11:59:55 +01:00
parent 582fa15555
commit 8b40eca59e
3 changed files with 12 additions and 11 deletions

View File

@@ -206,9 +206,9 @@ sub diskbox {
if ( $status[1]=~/standby/){
my $ftime = localtime((stat("/var/run/hddshutdown-$disk"))[9]);
print"<b>Disk $disk status:<font color='#FF0000'>".$status[1]."</font></b> ($Lang::tr{'since'} $ftime)";
print"<b>Disk $disk status:<span style='color:#FF0000'>".$status[1]."</b> ($Lang::tr{'since'} $ftime)";
}else{
print"<b>Disk $disk status:<font color='#00FF00'>".$status[1]."</font></b>";
print"<b>Disk $disk status:<span style='color:#00FF00'>".$status[1]."</b>";
}
}