title: How to read HTML attribute value in java?
body: <p>My question is just very similar to this question
  <a href="https://stackoverflow.com/questions/4138754/getting-an-attribute-value-in-xml-element">Getting an attribute value in xml element</a></p>
  
  <p>But the file is in Html not xml. The first answer given works for xml file but not html.</p>
  
  <pre><code>&lt;form action="action_page.php"&gt;
    First name:&lt;br&gt;
    &lt;input type="text" name="fistname" value="Mickey" /&gt;
    &lt;br&gt;
    Last name:&lt;br&gt;
    &lt;input type="text" name="lastname" value="Mouse" /&gt;
    &lt;br&gt;&lt;br&gt;
    &lt;input type="submit" value="Submit"&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>I have to read values inside name attribute. Thanks in advance. This question is different from the link or any other asked on StackOverflow. I have checked.</p>