Do you close quotations of all HTML attributes?

Last updated by Tiago Araújo [SSW] 3 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.

<div class="info>

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

<div class="info">

Figure: Good code - 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 Cogan
We open source.Loving SSW Rules? Star us on GitHub. Star
Stand by... we're migrating this site to TinaCMS