What does the HTML5 mark label mean? What is the role of HTML5 mark tag?

Source: Internet
Author: User
This article introduces you to the mark tag in HTML5, describes some of the definitions and uses included in the HTML5 mark tag, and some of the role and instance codes of the HTML5 mark tag, which is simple to use to make the text look bright. I hope you will read it carefully.

HTML5 mark label definitions and instructions for use:

The <mark> tag defines the text with the token.

Use the <mark> tag when you need to highlight text.

HTML5 <mark> Tag Examples

Some text highlighting:

<p>do not forget to buy <mark>milk</mark> today.</p>

HTML5 Mark label highlighting text

Mark tags in HTML5 are used:

<mark></mark>

HTML5 Mark Tag's role:

With the mark tag element, you can highlight the text in your document for an eye-catching effect.

Mark Action Instance Code

<! DOCTYPE html> 

Notes for HTML5 Mark tags:

Using the strong, EM elements can also achieve this effect, it is not recommended to use strong, EM elements, because strong, EM elements of the role of emphasis on text, not just highlighting text.

Global Properties

<mark> tags support global properties to view full property sheet HTML global properties.

Event Properties

The <mark> tag supports all HTML event properties.

The difference between HTML 4.01 and HTML5

<mark> is HTML5 new label.

Browser support

Internet Explorer + +, Firefox, Opera, Chrome, and Safari support <mark> tags.

Note: Internet Explorer 8 and earlier versions do not support <mark> tags.

"Recommended"

Examples teach you how to use HTML strike tags

What does the HTML noscript tag mean? How much do you know about the use of <noscript> tags?

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.