Semantic html for contact block
From semantic perspective which tags should be used for blocks like phone: xxxxxxx ?
One of these? Something else?
This happens in context of contacts page if it makes any difference.
4 Replies
also consider an aria-label attribute with the phone number and spaces between the single digits. That would make it easier for screenreaders
Right, I forgot about anchor. And nice to know about address.
What about title for this field? Which tag is better for this?
Anchor elements are inline so you don’t need a title element. If you want one then just use bold
phone number:
before the anchor element