What is the usage of mark in html5

WBOY
Release: 2021-12-31 09:33:35
Original
2753 people have browsed it

In HTML5, the mark tag is used to define text with marks. It is often used when text needs to be highlighted. It indicates the content that needs to be highlighted on the page. The syntax is " that needs to be highlighted." Text content".

What is the usage of mark in html5

The operating environment of this tutorial: Windows 10 system, HTML5 version, Dell G3 computer.

What is the usage of mark in html5

tag defines text with marks.

Please use the tag when you need to highlight text. The

mark element represents content that needs to be highlighted or highlighted on the page. It also often appears in search results, such as highlighting keywords in search results.

The example is as follows:

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>
<body>
<p>需要<mark>高亮</mark>显示的文本</p>
</body>
</html>
Copy after login

Output result:

What is the usage of mark in html5

Recommended tutorial: "html video tutorial

The above is the detailed content of What is the usage of mark in html5. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!