Home > Web Front-end > HTML Tutorial > id,class,name区别 - 地球小子

id,class,name区别 - 地球小子

WBOY
Release: 2016-05-21 08:54:38
Original
1693 people have browsed it

id,class,name区别

id:标签唯一标识,好比我们身份证号码,具有唯一性。JS常用document,getGlementBy(id).

class:标签的类别,可重复使用,CSS常用。

name:标签的名称,与from表单配合使用提交数据后台。

id,class一般是页面使用,name一般是后台交互使用。

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