special characters - Getting away with » in my HTML -
at new company have practice of using » in html so:
<p>» <a href="/individuals/why-washington-national">learn more</a></p>
when first came across raised eyebrow checked site in number of different browsers , didn't come across problems. @ meeting internal project our group started talking impact character having on being able submit content updates via third-party cms.
to clear not using »
... code looks above.
my preference wrap »
in span , use css style when or needed. thoughts?
the accessibility issue of »
being quotation mark aside, fine html include directly in source. in case, though, purpose seems decorative, may want consider using css pseudo-elements , generated content apply needed , keep out of html together.
html
<p class="raquo"> <a href="/individuals/why-washington-national">learn more</a> </p>
css
.raquo:before { content: '»'; }
you can use css :before
element style heart's content without having introduce needless <div>
's and, in situations, limit accessibility impact of using character.
by way, isn't semantic put <div>
inside <p>
.
Comments
Post a Comment