I share Facebook and Line with onclick function:
<a href="javascript:void(0);" onclick="window.open('http://www.facebook.com/share.php?u='.concat(encodeURIComponent(location.href)), '', 'menubar=no,toolbar=no,resizable=no,scrollbars=yes,height=700,width=550')" title="Facebook Share" aria-label="Facebook Share">
<a href="javascript:void(0);" onclick="window.open('http://line.naver.jp/R/msg/text/?Page title%0A'.concat(encodeURIComponent(location.href)),'Share with Line', config='height=700,width=550')" title="Line Share" aria-label="Line Share">
Google Lighthouse result:
Search engines may use
hrefattributes on links to crawl websites. Ensure that thehrefattribute of anchor elements links to an appropriate destination, so more pages of the site can be discovered.
So I couldn't use <a> element, if want to open link with new window?