Home > Web Front-end > HTML Tutorial > Tags in HTML-Earth-Escape Tornado

Tags in HTML-Earth-Escape Tornado

WBOY
Release: 2016-08-22 10:13:54
Original
1659 people have browsed it

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>
Copy after login

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

source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template