title: Why HTML use class or id attributes and not . or # attributes?
body: <p>I was wondering why HTML / HTML5 is using class and id attributes like:</p>
  
  <pre><code>&lt;div class="my_class" id="my_id"&gt;&lt;/div&gt;
  </code></pre>
  
  <p>and not:</p>
  
  <pre><code>&lt;div .my_class #my_id&gt;&lt;/div&gt;
  </code></pre>
  
  <p>like in css.</p>
  
  <p>It's way shorter, way easier and it's understandable by everyone.</p>
  
  <p>There should be a good reason but I can't find it.</p>