Sam Brown wrote:
--- [EMAIL PROTECTED] wrote:
i have a page with text that i
want highlighted. i
currently have the text in "<a>text</a>" and styled
with css. what is
the best practice, semantically, to achieve this, as
<strong> is not
what i want, because i don't want someone to get
yelled at by their
screen reader. i guess what i am looking to do is
emphasize the text so
it will stand out on the page and be treated the
same by a screen
reader. is this what the <em> tag is for?
Without knowing more about the context, I think a
<span> tag would be appropriate. As usually, give the
tag a meaningful class name that describes the text
being highlighted and use that consistently, and then
style the tag in CSS as needed:
<span class="errormsg">You have an error in your form
input.</span>
<style>
span.errormsg { color: red; }
</style>
Do you have any specific examples?
-Sam
in a monologue i am listing book titles and i have them styled bold
(css) in an "<a>" tag. (i.e., nag hammadi library, the holy qur'an, the
dead sea scrolls, etc.)
does this help? i haven't put the page up, but i can if you'd like.
dwain
--
Dwain Alford
[EMAIL PROTECTED]
http://www.alforddesigngroup.com
"The artist may use any form which his expression demands;
for his inner impulse must find suitable expression."
Wassily Kandinsky, "Concerning The Spiritual In Art"
******************************************************
The discussion list for http://webstandardsgroup.org/
See http://webstandardsgroup.org/mail/guidelines.cfm
for some hints on posting to the list & getting help
******************************************************