Home Web Front-end HTML Tutorial id,class,name区别_html/css_WEB-ITnose

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

Jun 24, 2016 am 11:23 AM

id,class,name区别

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

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

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

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

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

Hot Article Tags

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

Fix event ID 55, 50, 98, 140 disk error in event viewer Fix event ID 55, 50, 98, 140 disk error in event viewer Mar 19, 2024 am 09:43 AM

Fix event ID 55, 50, 98, 140 disk error in event viewer

This Apple ID is not yet in use in the iTunes Store: Fix This Apple ID is not yet in use in the iTunes Store: Fix Jun 10, 2024 pm 05:42 PM

This Apple ID is not yet in use in the iTunes Store: Fix

Where can I find Alibaba ID? Where can I find Alibaba ID? Mar 08, 2024 pm 09:49 PM

Where can I find Alibaba ID?

How to use classes and methods in Python How to use classes and methods in Python Apr 21, 2023 pm 02:28 PM

How to use classes and methods in Python

Event ID 4660: Object deleted [Fix] Event ID 4660: Object deleted [Fix] Jul 03, 2023 am 08:13 AM

Event ID 4660: Object deleted [Fix]

Where to check Tencent Video ID Where to check Tencent Video ID Feb 24, 2024 pm 06:25 PM

Where to check Tencent Video ID

Replace the class name of an element using jQuery Replace the class name of an element using jQuery Feb 24, 2024 pm 11:03 PM

Replace the class name of an element using jQuery

What does class mean in python? What does class mean in python? May 21, 2019 pm 05:10 PM

What does class mean in python?

See all articles