A brief discussion on tags in HTML

高洛峰
Release: 2017-02-11 14:35:51
Original
1070 people have browsed it

The following editor will bring you a brief discussion of tags in HTML. The editor thinks it’s pretty good, so I’ll share it with you now and give it as a reference. Let’s follow the editor and take a look

0. What is a tag

##XML/HTML Code Copy the content to the clipboard

<input type="checkbox"  checked /><a href="http:www.php.cn" title="123" id="lol">提示</a>
Copy after login

The checked, id, href, and title here are tags

1.Boolean tag

Checked is used as an example.

It is applied when it exists. It is used to mark the status.

If there is a change mark, the value of getAttribute is always checked. If there is no getAttribute, The value is undefined.

The value is operated by setAttribute and removeAttribute, which will be applied to the attribute checked. 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. The data tag

has been titled For example

The value of the attribute title is always consistent with the value of the tag title

Assigning a value to the attribute title will affect the existence (from scratch) and value of the tag title

The above article briefly discussing the tags in HTML is all the content shared by the editor. I hope it can give you a reference, and I hope you will support the PHP Chinese website.

For more articles about tags in HTML, please pay attention to the PHP Chinese website!

Related labels:
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