Small validation tip Small validation tip
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

Small validation tip

Started by flapane, March 11, 2015, 09:10:37 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

flapane

I've just noticed that changing
border="0"
to
style="border:0"
in line 3007 of functions.inc.php, fixes a few w3c validation warnings, at least when using HTML5.
QuoteThe border attribute is obsolete. Consider specifying img { border: 0; } in CSS instead

The same goes for line 5567, 4161, or also line 3188 in themes.inc.php (valign attribute).

There are a few things here and there (ie. table width, and icon borders) that can be fixed by using CSS and adding classes in theme.php.
Not that w3c validation is crucial, but it could be worth taking a look at it. :)
Flapane
www.flapane.com

Gallery
www.gallery.flapane.com