6. Q_ 如果你有一个搜索结果页面,你想高亮搜索的关键词。什么HTML 标签可以使用_

发布时间 2023-07-09 23:09:39作者: 虎虎生威啊
  1. Q: 如果你有一个搜索结果页面,你想高亮搜索的关键词。什么HTML 标签可以使用?

    A:<mark> 标签表现高亮文本。

    The HTML <mark> Element represents highlighted text, i.e., a run of text marked for reference purpose, due to its relevance in a particular context. For example it can be used in a page showing search results to highlight every instance of the searched for word.