Welcome to WebmasterWorld Guest from 220.127.116.11
Forum Moderators: not2easy
idcan be the target for a hyperlink. So you can do
nameattribute has been dropped.
idmust be unique on a page, and should carry some semantic meaning (ie, as something you might conceivably link to). A
classis more generic, denoting a set of element of the "same" sort.
To further clearify your excellent explanation: just think about the names...
ID = identifier... class = group...
Every person has some form of unique ID, a drivers licence or passport or whatever, and it works the same way on Web pages.
ID = unique
class = group, no matter if there's one or a few thousand elements in the group
border:thin black groove;