id,class,name区别_html/css_WEB-ITnose

WBOY
Release: 2016-06-24 11:23:23
Original
878 people have browsed it

id,class,name区别

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

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

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

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

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
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!