vb.net中GetAttribute("")是怎么用的

刚刚自学的GetAttribute,对于这样一段html代码

 <a class="J_Ajax num icon-tag" href="url" data-url="pager" data-key="s" data-value="44" trace="srp_bottom_pagedown" data-spm-anchor-id="a230r.1.0.0">
              <span>下一页</span>
              <span class="icon icon-btn-next-2"></span>
            </a>
                    我想提取下这个网页中下一页的网址,但是提取失败,代码如下:有一些网页是可以提取的,我对比了下,觉得应该是GetAttribute("title")中title的问题,只要把它换了就行了,但是不知道应该换成什么,我试了<span>不行,可能要用的html的知识,但是我不是很懂,请问下GetAttribute后面都能放什么,就我这个问题应该怎么改呢
 If i.GetAttribute("title") = "下一页" Then

                MessageBox.Show(i.GetAttribute("href"))

                If Len(i.GetAttribute("href")) > 30 Then '判断是否为下一页的超链接

                    Me.WebBrowser1.Navigate(i.GetAttribute("href"))

                    Exit For

                End If

你的i是a对象还是span?getAttribute获取到的你这个dom对象的属性,如

 <a title="下一页"

这个title,如果这个对象没有title属性或者是a的子对象span肯定是获取不到的,而且如果span对象,调用innerHTML得到span中的内容,不是getAttribute