title: CSS psuedo-element content: attr(type)?
body: <p>I just want a rule that acts like so:</p>
  
  <pre><code>div:before {
      content: "div";
  }
  span:before {
      content: "span";
  }
  a:before {
      content: "a";
  }
  </code></pre>
  
  <p>but I want it to be generic for all element types, not just a div.</p>
  
  <p>I want this...</p>
  
  <pre><code>*:before {
      content: attr(tagname); 
  }
  </code></pre>
  
  <p>But <code>tagname</code> is not an attribute. Is there any way to get the element's type as a string in CSS?</p>