/    Sign up×
Community /Pin to ProfileBookmark

Stupid question…

Can you have two of the same types of tags (eg 2 <p> tags) that have the same class attribute, or would you have to use the id attribute?

Thanks

PS I’m very very very new to this

to post a comment
CSS

4 Comments(s)

Copy linkTweet thisAlerts:
@SiddanSep 13.2005 — yes you can have the same style to as many as you like... just as long use the the class... ID is only to use with one
Copy linkTweet thisAlerts:
@FunkymonkeyauthorSep 13.2005 — Id can only be used with one type of tag is that right?
Copy linkTweet thisAlerts:
@SiddanSep 13.2005 — right.. otherwise it will be a conflict
Copy linkTweet thisAlerts:
@ray326Sep 13.2005 — It's more constrictive than "only one type of tag", it's "only once per page."
×

Success!

Help @Funkymonkey spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 6.17,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @nearjob,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,
)...