title: How to get the id & title of a DIV element, using pure JavaScript
body: <p>I have an element:</p>
  <pre><code>&lt;div id=&quot;Form&quot; title=&quot;Disability Form&lt;/div&gt;
  </code></pre>
  <p>I am trying to get both the id and the title, formatted as such:</p>
  <pre><code>id: Form
  title: Disability Form 
  </code></pre>
  <p>I'm also trying to use pure Javascript. This is what I have been playing with so far:</p>
  <pre><code>var x = document.getElementsByTagName(&quot;div&quot;);
  
  for(i=0; i&lt;= x.length; i++)
  {
     console.log(x[i].innerText);
  }
  </code></pre>
  <p>Does anyone know how to proceed?</p>