Home > Q&A > body text
What is the difference between "id" and "class"?
天蓬老师2020-07-17 19:42:05
id is the unique element identifier of the page, and class is the identifier of the first-class element of the page.
But the uniqueness of the id requires the developer to ensure it, and the browser does not check it