From this question/answer: Pausing in a screen reader for accessibility it seems that one shouldn't use <br />
for presentation purposes when designing a website to be accessible. I take here accessible to mean that it works well with a screen reader.
I have a footer on a webpage. The footer is just three links. So I have:
<div id="footer">
<a href="xxx">xxx</a>,
Email me: <a href="mailto:yyy">yyy</a>,
<a href="zzz">zzz</a>
</div>
My question is:
How do I best display the three links on three separate lines?
Should I just insert a <br />
after the two first </a>
, or should I enclose each line in <p> ... </p>
?
It is important that this is done in an "accessible way". I need the code to validate as XHTML 1.0 Strict.
p
ordiv
tag, and then the screen reader will separate them properly." – Trodden<p>
way is the way to go. This way you can add a different css and margin/padding to everyone if you want so. I think<br>
is semanticaly wrong at this place, but I actually read about this right before.. so I might be wrong. – Ebromargin-bottom: 5px
to your anchor tags? If your target range of browsers support css - separation of content will work for you. – Zetland<p>...</p>
? – Fiorin<a href="xxx" style="margin-bottom: 5pm;">xxx</a>,
? – Fiorin.my-anchor-tag-class {margin-bottom: 5px;}
and then apply it to alla
that you want to.<a class="my-anchor-tag-class">
– Zetland