Home
Do you remember to close quotations of all your HTML attributes?
  v1.0 Posted at 13/08/2016 6:50 AM by Tiago Araujo
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 Co​de Auditor to check for this rule. ​


Related rules

    Do you feel this rule needs an update?

    If you want to be notified when this rule is updated, please enter your email address:

    Comments:

    Note: Social Media login for Yotpo is not working in IE or Safari, please use Chrome. We are waiting for Yotpo to fix it.