I'm developing a SPA using Ionic, and for performance, UX, and indexing reasons I'd like to use <span>
tags instead of <a>
tags, as the latter doesn't work very well with Ionic's stack-based navigation system (it causes a page reload). I.e. instead of this:
<a href="faqs">FAQ</a>
I'd like to use this:
<span onclick="openPage('FaqsPage')" rel="dofollow">FAQ</span>
Will the dofollow
value work as expected? I.e. will Google (and potentially other) crawlers know to follow this link as part of my site, even though it is a span
rather than an a
tag?
<a href="#" (click)="$event.preventDefault(); openPage('FaqsPage')">FAQ</a>