title: Are quotation marks really necessary for attribute values in HTML tags?
body: <p>I know that an attribute value in HTML needs quotation marks allow its attribute to modify an element, but I discovered that a value without quotations still appears to have valid syntax.</p>
  
  <p>For example, both of these paragraph elements with and without quotations around the <code>style</code> value <code>color:#06c;</code> output the same blue text.</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;p style="color:#06c;"&gt;Some text&lt;/p&gt;
  &lt;p style=color:#06c;&gt;Some text&lt;/p&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>Is it really necessary to have quotation marks around values in attribute/value pairs, or is it good practice to do so? I’m just curious to see if I can save a bit of coding time by omitting them.</p>