html5 - How does content in an a-element affects semantics, screen readers and search engines? -


let's have list of articles on preview page of blog. want whole area of each entry clickable. in html5 possible solution valid markup:

 <a href="details/mypost">     <article>         <header>             <h1>my post</h1>         </header>          <p>this teaser. read more here …</p>     </article> </a> 

my questions are:

  • is semantically link or article or somehow both regarding w3 defintion?
  • how content read search engines , screen readers? link or treat article?

semantically, have link contains article. a element doesn’t change meaning of descendants.

(it might make more sense include link in article, e.g., <article><a>…</a></article>.)

there no reason assume search engines should have problem (but discussing off-topic on so; might on-topic on webmasters.)

how screen readers read depends on specific screen reader , version.

some years ago, the paciello group/steve faulkner made test screen readers, documented on test page. minor issues found: voiceover repeated text (which resulted more general bug), , jaws/nvda/window-eyes treated single link separate links.


Comments

Popular posts from this blog

javascript - Jquery show_hide, what to add in order to make the page scroll to the bottom of the hidden field once button is clicked -

javascript - Highcharts multi-color line -

javascript - Enter key does not work in search box -