title: How to pass a value from html to css file
body: <p>I am trying to pass a value from my html into my css file to display the tank value in a percentage. Both current html and css below</p>
  
  <ul>
  <li>Without the use of anything other than html and css</li>
  </ul>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-css lang-css prettyprint-override"><code>#tank-container {
    width: 120px;
    height: 120px;
    position: relative;
    background-color: clear;
    border-radius: 120px;
    border: 1px solid black;
    float : left;
  }
  
  #tank-content {
    height: attr(tank-content); /* edit this */
    width: 100%;
    position: absolute;
    bottom: 0;
    right: 0;
    background-color: green;
    border-bottom-right-radius: 120px;
    border-bottom-left-radius: 120px;
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;div id="tank-container"&gt;
    &lt;div id="tank-content"&gt;
       &lt;p tank-content="50%"&gt;&lt;/p&gt;
    &lt;/div&gt;
  &lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>]<a href="https://i.stack.imgur.com/AN6pQ.png" rel="nofollow noreferrer">1</a></p>