In HTML, "-" "-"

Source: Internet
Author: User

In HTML, "-" "-"

0. What is a tag?

<Input type = "checkbox" checked/>
<A href = "http: www.baidu.com" title = "123" id = "lol"> prompt </a>

Here, checked, id, href, and title are tags.

1. boolean mark

Checked as an Example

An application is used to mark the status,

If the tag is changed, the value of getAttribute always causes checked. The value of getAttribute does not exist because it is undefined,

If you use setAttribute or removAttribute to perform this operation, the value of the property checked is applied to the property checked. The value of the property checked is true or false.

Assigning values to attribute checked does not affect the mark checked.

2. DATA tag

The title is used as an example.

The attribute title value is always the same as the title value.

The assignment of attribute title affects the existence (from none to existence) and value of the tag title.

 

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.