Home / Articles / Programming languages / Markup languages / HTML & CSS / HTML5: making the text link for search

HTML5: making the text link for search

HTML5: making the text link for search
 
Authors: Daisy Smith
HTML5: making the text link for search
  • Currently 0 out of 5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5
Rating: 0/5 (0 votes cast)

Thank you for rating!

You have already rated this page, you can only rate it once!

Your rating has been changed, thanks for rating!

Log in or create a user account to rate this page.


If you need to mark the link so that it would be displayed as a search result then use the new tag HTML5 - <mark>.

Just place the desired text in the tag <mark>:

<p>Search for <mark>cars</mark> returned 16 matches</p>

The tag <mark> is a new tag and at the present stage is used with search queries. But it can also be applied to any, in your opinion, important text.

Note: By default the tag <mark> is displayed on a yellow background (in all browsers except IE before version 9), but this is easily corrected using CSS.


 

Read also

HTML5: adding new elements

HTML5: adding new elements

HTML5: elements article and section

HTML5: elements article and section

Post comment

basicuse.net
html5_css
106160485398655174790

Quick navigation

General navigation