HTML and CSS Reference
In-Depth Information
The <mark> element is designed to highlight words inside a section of content that
don't require emphasis in their meaning; for example, they aren't important key-
words that need <strong> or technical terms that would typically be pronounced in
an alternate voice. But they do require highlighting to indicate their significance in
another context. A very good example is highlighting search terms in a list of search
results, or tags on a site, or particularly useful parts of a set of quotes contained
within some research documents. For example, if you were using a music search
application, you might want to mark up a results page like this (see mark-example.
html in the chapter2 code download folder):
<h1>Results for search term <mark>love</mark>:</h1>
a l u d s
p <mark>love</mark></a> by The Beatles</li>
a > l
p tear us apart</a> by Joy Division</li>
a , ,
p <mark>love</mark></a> by Alice in Chains</li>
For more information about <mark> , read Mike Robinson's article “Draw atten-
tion with mark” (
Search WWH ::

Custom Search