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".
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>
Output result:
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!