Rules

Secret ingredients to quality software

Edit
Info

Do you remember to close quotations of all your HTML attributes?

Last updated by Tiago Araujo on 12 Aug 2016 08:50 pm (almost 5 years ago) See History

It is always better to make sure there are equivalent closing quotations for HTML attributes. A small mistake of missing a quotation could lead to undesired results on the web page.

<span style="font-size:12pt; background: #ccc;>

Figure: Bad code - Can you see the missing quote? Code Auditor can

<span style="font-size:12pt; background: #ccc;">

Figure: All OK

As you can see from the above example, just missing a quotation makes the whole layout of the text different. So be very careful that you make sure you have closed all opening quotations of attributes with equivalent closing quotations.

We have a program called SSW Code Auditor to check for this rule.

Adam CoganAdam Cogan

We open source. This page is on GitHub