Scraping HTML by Class in VBA
<p>I have a html code as shown</p>

<p><div class="snippet" data-lang="js" data-hide="false">
<div class="snippet-code">
<pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;div class="property-title visible-xs"&gt;
                                        &lt;a href="/property/473902/Office-Lot"&gt;
                                            &lt;h2&gt;&lt;b&gt; 2nd Floor, Block D5, Solaris Dutamas, No. 1, Jalan Dutamas 1, 50480, Kuala Lumpur&lt;/b&gt;&lt;/h2&gt;
                                        &lt;/a&gt;
                                    &lt;/div&gt;
                                    &lt;p style="color: #0071ee;"&gt;Office Lot&lt;/p&gt;
                                    &lt;h4&gt;&lt;b&gt;RM 880,000&lt;/b&gt;&lt;/h4&gt;
                                    &lt;div&gt;
                                        &lt;table&gt;
                                        &lt;!-- &lt;tr&gt;&lt;td&gt;Office Lot&lt;/td&gt;&lt;/tr&gt; --&gt;
                                            &lt;tr&gt;
                                                &lt;td&gt;Property Code&lt;/td&gt;&lt;td&gt;:&lt;/td&gt;&lt;td&gt;PB473902&lt;/td&gt;
                                            &lt;/tr&gt;
                                                                                            &lt;tr&gt;
                                                    &lt;td&gt;Auction Date&lt;/td&gt;&lt;td&gt;:&lt;/td&gt;&lt;td&gt;2016-02-26&lt;/td&gt;
                                                &lt;/tr&gt;
                                                                                        &lt;tr&gt;
                                                &lt;td&gt;Built up  &lt;/td&gt;&lt;td&gt;:&lt;/td&gt;&lt;td&gt;754 sq.ft  &lt;/td&gt;
                                            &lt;/tr&gt;
                                                                                            &lt;tr&gt;
                                                    &lt;td&gt;Tenure&lt;/td&gt;&lt;td&gt;:&lt;/td&gt;&lt;td&gt;Freehold&lt;/td&gt;
                                                &lt;/tr&gt;</code></pre>
</div>
</div>
</p>

<p>and I used the following code to extract the details "2nd Floor, Block D5,...."</p>

<p>objIE1.Document.getElementsByClassName("property-title visible-xs").getElementsByTagName ("a")</p>

<p>but it don't seem to get the result I need. Please help.</p>

<p>The html code shown is in multiple form.                 </p>