Home > Article > Web Front-end > Tags in HTML-Earth-Escape Tornado
0.What is a mark
<span style="color: #0000ff;"><</span><span style="color: #800000;">input </span><span style="color: #ff0000;">type</span><span style="color: #0000ff;">="checkbox"</span><span style="color: #ff0000;"> checked </span><span style="color: #0000ff;">/><br><a href="http:www.baidu.com" title="123" id="lol">提示</a><br></span>
The checked, id, href and title here are tags
1.Boolean tag
Has been checked as an example
Existence is application, used to mark status,
If there is a change mark, the value of getAttribute is always checked. If there is no getAttribute, the value is undefined.
Operation of this value through setAttribute and removeAttribute will affect the attribute checked, and the value of the attribute checked is true or false.
The assignment operation to the checked attribute will not have any impact on the checked tag
2. Data labeling
The title is taken as an example
The value of the attribute title is always consistent with the value of the tag title
The assignment of the attribute title will affect the existence (from scratch) and value of the mark title