title: BeautifulSoup : Name error when parsing through Table
body: <p>I am new to scraping. I am trying to scrape a form with tables. I am able to scrape the whole parent tag with beautiful soup. But I am not sure how to traverse through the children tag and get the text inside them.</p>
  
  <p>here is my code </p>
  
  <pre><code>soup = BeautifulSoup(htmltext, "html.parser")
  tables = soup.find('td',attrs={'class':'title_heading'})
  for table in tables:
      print(table)
      form_name = table.td.center.strong.u.text *--ERROR---*
  </code></pre>
  
  <p>The above code prints the everything inside the <code>&lt;td&gt;</code> tag. The error occurs when i try to traverse through the children tag.</p>
  
  <pre><code>File "E:\Study_naveen\python\scrape.py", line 23, in &lt;module&gt;
  form_name = table.td.center.strong.u.text
  AttributeError: 'NoneType' object has no attribute 'center'
  </code></pre>
  
  <p>Here is my html </p>
  
  <pre><code>&lt;td width="615" class="title_heading"&gt;&lt;center&gt;
  &lt;strong&gt;&lt;u&gt; ONLINE REGISTRATION FORM&lt;/u&gt;&lt;/strong&gt;
  &lt;br&gt;&lt;br&gt;
  &lt;strong&gt;Blah&lt;br&gt;
  123456789-&lt;br&gt;
  blah blah&lt;br&gt;
  phone - 123456789
  999999999&lt;br&gt;
  Email : something@gmail.com.&lt;/strong&gt;
  </code></pre>
  
  <p>I want to get the "Online resgistration form" text inside . How do i go about this ?</p>