Do you close quotations of all your HTML attributes?

Last updated by Brook Jeynes [SSW] 9 months ago.See history

Make sure there are equivalent closing quotations for HTML attributes. A small mistake of missing a quotation could lead to undesired results on a web page.

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

Figure: Bad code - Can you spot 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.

We open source. Powered by GitHub