title: href attribute for lxml.html
body: <p>according to this <a href="https://stackoverflow.com/questions/22469785/value-attribute-for-lxml-html#22469878">answer</a>:</p>
  
  <pre><code>&gt;&gt;&gt; from lxml.html import fromstring
  &gt;&gt;&gt; s = """&lt;input type="hidden" name="question" value="1234"&gt;"""
  &gt;&gt;&gt; doc = fromstring(s)
  &gt;&gt;&gt; doc.value
  '1234'
  &gt;&gt;&gt; doc.name
  'question'
  </code></pre>
  
  <p>I tried to get both the link and the text from this code:</p>
  
  <pre><code>from lxml.html import fromstring
  s = '&lt;a href="http://a.com" rel="bookmark"&gt;bla bla bla&lt;/a&gt;'
  doc = fromstring(s)
  print (doc.href)
  print (doc.text_content())
  </code></pre>
  
  <p>It gives a <code>AttributeError:'HtmlElement' object has no attribute 'href'</code></p>
  
  <p>Im new in lxml. Actually what was the problem?</p>
  
  <p>How can i have both the link (a.com) and the text (bla bla bla) as strings from this code?</p>