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.